B4J Question Open the minimized form after receiving data

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends, please for advice.

If I minimize Form(window) to the tray (In Windows 7),
then I can see in logs, that ASTREAM is received data,
this is OK

but I am using in astream sub:
B4X:
form.show

but the form(window) is not maximized after receiving data. The form is still in tray.

Please, how can wake up, or open, or maximize my window-form?
Thank you very much
best regards
p4ppc
 

Daestrum

Expert
Licensed User
Longtime User
You need to set iconified to false
B4X:
dim jo as javaobject = mainform  ' the form you want to restore from task bar
jo.GetFieldJO("stage").RunMethod("setIconified",Array(False))
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
I have one question yet, please.

How can I recognize the state of main form - if main form is minimized or how can I rrecognize that the parameter seticonified is FALSE.

Goal is that if is seiconified true nad mainform is minimized, then I use DAESTRUMs code.

Thank you very much
p4ppc
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…