Forms 4.5 - Displaying two windows at the same time
Date: 1996/05/03
Message-ID: <DquFtp.I16_at_statcan.ca>#1/1
Terry writes ...
I'm using Windows 3.11 and Forms 4.5.6.3.3
I have three windows(WIN_A, WIN_B, WIN_C), three content
canvas(CANVAS_A, CANVAS_B, CANVAS_C), and three blocks(BLOCK_A,
BLOCK_B, BLOCK_C), so that BLOCK_A is on CANVAS_A and CANVAS_A is
associated to WIN_A.
I have push button on CANVAS_A with a when-button-pressed trigger
that contains the following code:
show_window('WIN_B'); go_item('BLOCK_B.ITEM'); show_window('WIN_C'); go_item('BLOCK_C.ITEM');
When I press the button, WIN_B and WIN_C are displayed...but WIN_B is just an empty window. It seems the content canvas CANVAS_B is not displayed. WIN_C is displayed correctly.
If I put the above code in when-new-form-instance trigger, both windows come up correctly...I'm confused. Why does it work in when-new-form-instance trigger and not in when-button-pressed or when-mouse-double-clicked?
Can you bring up two windows at the same time in a form from a when-button-pressed trigger? Can someone please help me....this problem is driving me crazy.
Could you please email any suggestions to the following address: chinter_at_statcan.ca
PGY (Opinions expressed are mine and mine alone)
################################################################Received on Fri May 03 1996 - 00:00:00 CEST
# Paul Young #
# youngpa_at_statcan.ca #
# Statistics Canada #
################################################################