Link to home
Start Free TrialLog in
Avatar of basilhs_s
basilhs_s

asked on

powerbuilder display only windows

we have two windows w_test1 and w_test2 (w_test1 is a main and w_test2 is a response window). w_test1 has a push button on (lets call it pb_continue).  both windows have a datawindow inside them (dw_1)

what we want to do is the following
==============================

1) open w_test1 and w_test2 simultanesouly. w_test1 will receive focus while w_test2 will be a display only window. (it will be used as background for w_test1).

2) w_test2 will receive focus when pb_continue button will be pressed.

how can we do it?

we want to avoid using opensheet command.
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

any specific reason for w_test2 as response window?

change w_test2 as main and when user clicks on that button write w_test2.bringtotop = TRUE

Regards,
Sandeep
Avatar of basilhs_s
basilhs_s

ASKER

the reason that we prefer to have w_test2 as response is that its main and user clickes by mistake in a area outside it its minimized.
how can we open anyway both windows in the beginning with focus only in w_test1?
ASKER CERTIFIED SOLUTION
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks sandeep .i will check it tomorrow
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks rosh. i noticed that the windows were minimized when i clicked outside their area. i ll check want you mentioned tomorrow
solution is working perfectly with one side-effect however. if messages are going to be displayed (thru messagebox statements or thru operating system/sql-server) sometimes they do appear behind w_test2 (at least a part of them) can we do something about it?
thaks both of you