Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 8 Monaten, 3 Wochen
Letzter Beitrag:
vor 8 Monaten, 2 Wochen
Beteiligte Autoren:
Tor-Bjarne, Steve Hodgman, Arekusei Timakobu

RequestUpdateUI

Startbeitrag von Arekusei Timakobu am 30.11.2016 16:13

I need to update internal window from other internal window. I tried to use RequestUpdateUI but I could not achive the positive result. As they said in manul I created the procedure inside required process with parameter:


PROCEDURE AskForRefresh(SomeParam string)


When I call RequestUpdateUI the above procedure is not called, i.e. process is not executed! When I commented the above code line (with PROCEDURE) and initiate update UI with


ExecuteProcess(IW_Window,trtRequestUpdate)

the process is executed but in this case I can't pass parameters. So I am stuck.

Could you please give me some advise? What I did wrong?

Antworten:

My reading of RequestUpdateUI is that it applies to the current window, not another window.
Perhaps you could create a procedure of the IW that can be called from another window via:
IW_Window.TriggerRefresh(Some parameter) and the TriggerRefresh procedure will call the RequestUpdateUI(Some parameter)
HTH
----
Steve H

von Steve Hodgman - am 03.12.2016 04:49
Hi,

I use Internal windows, and usually have a Procedure like local_refreshYourself(wndMsg,Wparam,LParam) in the internal window and use Postmessage/event to do the magic from elsewhere.

Also in stead of posting event-numbers I discovered that you could do:


Postmessage(handle(Win_Main)."REDRAW".WparamvValue,LparamValue)
//Using text as postmsg-event, will be transfered to some internal eventno


And it seems like if you post your event to the main window you can just add one line of code in each internal window you wants updated with this event.


Event(Local_RefreshYourSelf,"*.*","REDRAW")



Cheers
Tor-Bjarne

von Tor-Bjarne - am 03.12.2016 12:13
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.