Hello,
I have created a MainTask that does not use GUIBuilder - That worksperfectly
I created an App configuration Dialog Window formy app using GUIBuilder - It's called: CreateIntroPageV1_6() - That works perfectly
Now from my MainTask, this is how I call the Dialog createdwith GUIBuilder:
void MainTask(void)
-
-
WM_HWIN hDlg;
hDlg = CreateIntroPageV1_6();
--------------------
MyDialog window that in CreateIntroPageV1_6() works perfectly. All buttons and callbacks work perfectly
The questions I have are:
1) When I finish executingfrom CreateIntroPageV1_6() and want to return to myMainTask what should I do to free all memory used in CreateIntroPageV1_6()?
Will WindowManager free up the memory for me automatically upon executing "return hWin;" or should I callGUI_EndDialog(hDlg,0)?
Ifyes, where should this be called from? MainTask or CreateIntroPageV1_6()?
2)When CreateIntroPageV1_6() returns and I’m back in my MainTask, what wasdisplayed when CreateIntroPageV1_6() was executing is not erased. The only wayI can get it to erase is to call: WM_SetDesktopColor(GUI_BLACK);
Isthere a better way to do clear the screen? I tried GUI_Clear(); butthat does not work.
3)When CreateIntroPageV1_6() returns and I’m back in my MainTask my graphics inMainTask is not displaying correctly some parts of my drawings are not displaying correctly.
Sobasically, I need to understand how to exit from a GUIBuilder created routineand get back to my MainTask (that does not use Window Manager) and have thingsback to normal.
Thanks for your help
Kind regards
Seb
I have created a MainTask that does not use GUIBuilder - That worksperfectly
I created an App configuration Dialog Window formy app using GUIBuilder - It's called: CreateIntroPageV1_6() - That works perfectly
Now from my MainTask, this is how I call the Dialog createdwith GUIBuilder:
void MainTask(void)
-
-
WM_HWIN hDlg;
hDlg = CreateIntroPageV1_6();
--------------------
MyDialog window that in CreateIntroPageV1_6() works perfectly. All buttons and callbacks work perfectly
The questions I have are:
1) When I finish executingfrom CreateIntroPageV1_6() and want to return to myMainTask what should I do to free all memory used in CreateIntroPageV1_6()?
Will WindowManager free up the memory for me automatically upon executing "return hWin;" or should I callGUI_EndDialog(hDlg,0)?
Ifyes, where should this be called from? MainTask or CreateIntroPageV1_6()?
2)When CreateIntroPageV1_6() returns and I’m back in my MainTask, what wasdisplayed when CreateIntroPageV1_6() was executing is not erased. The only wayI can get it to erase is to call: WM_SetDesktopColor(GUI_BLACK);
Isthere a better way to do clear the screen? I tried GUI_Clear(); butthat does not work.
3)When CreateIntroPageV1_6() returns and I’m back in my MainTask my graphics inMainTask is not displaying correctly some parts of my drawings are not displaying correctly.
Sobasically, I need to understand how to exit from a GUIBuilder created routineand get back to my MainTask (that does not use Window Manager) and have thingsback to normal.
Thanks for your help
Kind regards
Seb