Home > database >  About the original concept inherited window events
About the original concept inherited window events

Time:09-26

Consult ace
How to trigger the original concept inherited window, a window w_base, w_1 inheritance w_base window, w_2 inheritance w_base window, how in w_2 call w_1 event? thank you

CodePudding user response:

Default w_base event will automatically trigger, manual Call with Call super: clicked

CodePudding user response:

The
refer to the original poster dgcj9988 response:
your
How to trigger the original concept inherited window, a window w_base, w_1 inheritance w_base window, w_2 inheritance w_base window, how in w_2 call w_1 event? Thank you


W_2 with W_1 inheritance in w_base but are two objects that have no direct inheritance,

W_2 to invoke w_1 events can be written in w_2:
If isvalid (w_1) then w_1. Event ue_xxxx ()

CodePudding user response:

refer to the second floor wag_enu response:
refer to the original poster dgcj9988 response:
Consult ace
How to trigger the original concept inherited window, a window w_base, w_1 inheritance w_base window, w_2 inheritance w_base window, how in w_2 call w_1 event? Thank you


W_2 with W_1 inheritance in w_base but are two objects that have no direct inheritance,

W_2 to invoke w_1 events can be written in w_2:
If isvalid (w_1) the...


The top one

CodePudding user response:

Top, and learned a point 1.

Ha ha, later learn other knowledge points behind will point 1 + +,

CodePudding user response:

Or no,

CodePudding user response:

Consult ace
How to trigger the original concept inherited window, a window w_base w_base a event ue_refresh (w_base no data window)
W_1 inheritance w_base dw_master window after add a data window object, w_11 inherit w_1 again,
W_2 inheritance w_base window, w_22 again inheritance w_2,
How the w_22 call ue_refresh w_11 event?
Is after w_22 data save, w_11 window records also follow to refresh,
I use w_11. Dw_master. Retrieve not ()
Thank you very much!!

CodePudding user response:

Try: if isvalid (w_11) then w_11. Event ue_refresh ()

CodePudding user response:

Or: if isvalid (w_11) then w_11. Dw_master. Retrieve ()

CodePudding user response:

Thank you, problem solved,
If isvalid (w_11) then w_11. Dw_master. Retrieve ()

Problems appeared in the isvalid (w_11) this judgment, didn't pay attention to judgment will go wrong, because w_11 is on, nor do the debugging, judging system is not open w_11 window (is open).
The way to open w_11 window there is a problem, to do a variable to determine
W_11 lw_11
Lw_11=f_getopenedwindow (' w_11 ')//find whether open w_11 window
If IsValid (lw_11) Then
Lw_11. Dw_master. Retrieve ()
End the If

CodePudding user response:

Strong than a strong!
  • Related