Home > database >  Consult everybody, if the judge was established which way to open the window.
Consult everybody, if the judge was established which way to open the window.

Time:09-22

A window: w_a
Open in one of two ways:
The first:
OpenWithParm (w_a apo_parm, w_parent) on the//in this way can use isvalid (w_a) to judge whether w_a exist.

The second:
The Window lw_win
OpenWithParm (lw_win apo_parm, 'w_a, w_parent)
Open Windows can't use this way isvalid (w_a) to determine whether there is. But it is more flexible. Can be set to open the window of the different background.

In w_a window, please, if you know what kind of way to open the window object is to use the above??

CodePudding user response:

Open the way to know why?

CodePudding user response:

The second:
The Window lw_win
OpenWithParm (lw_win apo_parm, 'w_a, w_parent)
Open Windows can't use this way isvalid (w_a) to determine whether there is. But it is more flexible. Can be set to open the window of the different background.
Isvalid (lw_win) try

CodePudding user response:

Declare two handles data storage, with the handle (this) to assign access to open the window handle, respectively if you want to know is that way, with the current window handle directly in the data storage to find,

CodePudding user response:

reference jshcheer reply: 3/f
statement two handles data storage, with a handle (this) to assignment respectively access to open the window handle, if you want to know is that way, with the current window handle directly in the data storage lookup,


Support a, with handle, anything well done

CodePudding user response:

Why to judge in w_a

The building up of an instance variable in w_a: long il_cpu
In the open w_a write:
 il_cpu=(CPU) 
If isvalid (w_a) then
If w_a. Il_cpu=il_cpu then
Messagebox (', 'with the first one: OpenWithParm (w_a apo_parm, w_parent) open Windows')
The else
Messagebox (', 'with the second: OpenWithParm (lw_win apo_parm,' w_a, w_parent)
Open Windows')
End the if
The else
Messagebox (', 'with the second: OpenWithParm (lw_win apo_parm,' w_a, w_parent)
Open Windows')
End the if

CodePudding user response:

Thank you, I am in the inside of the window function to judge it itself is how to open.
Processing I can do now is, if the dynamic open, open after I give the window ICON (properties), make a mark, after the judgment about the value of this attribute this to judge.

CodePudding user response:

Open with a parameter, or build a global variable,,, ha ha

If you want to pass multiple parameters to the new window, and can also use the method of transfer structure,,

CodePudding user response:

refer to 6th floor response:
thank you and I are in the inside of the window function to judge it itself is how to open.
Processing of I can do now is, if the dynamic open, open after I give the window ICON (properties), make a mark, then determine the judging the value of this attribute such.



Suggest you add a variable in the ancestors of the window, or use the window tag attributes can also

Use isvalid should also can judge the

If isvalid (w_1) then
//by the first way to open the
The else
//the second way open
end if
  • Related