petr4ppc Well-Known Member Licensed User Longtime User Oct 5, 2015 #1 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
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 Oct 5, 2015 #2 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
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))
petr4ppc Well-Known Member Licensed User Longtime User Oct 6, 2015 #3 DAESTRUM - Thank you very much, perfect!! Best regards, p4ppc Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Oct 6, 2015 #4 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
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
petr4ppc Well-Known Member Licensed User Longtime User Oct 6, 2015 #5 I have it B4X: jo.GetFieldJO("stage").RunMethod("isIconified", Null) Upvote 0