Hello all,
Recent days, I worked with GUI_MEMDEV_FadeInWindow() & GUI_MEMDEV_FadeOutWindow() and ran into some issues.
There are also some threads about them, like this:
Issue with GUI_MEMDEV_FadeInWindow
I used the codes in that page, everything worked very well.
Then I used this in my project, and did the try as following steps:
1) A toolbar to slide down (operate in one task):
Display All
2) A text to fade in & fade out (operate in another task):
Display All
3) Let the text fade in & out, then there's a black rectangle during the process.
4) If let the toolbar slide down while the text fading in & out, then the toolbar may be frozen.
You can get the details from the attachment as:
The questions are:
1) How to deal with the black rectangle?
2) Why does GUI_MEMDEV_FadeInWindow() / GUI_MEMDEV_FadeOutWindow() cause frozen?
I use emWin with FreeRTOS, using multi-task support:
1) multi-task will call emWin
2) one background task call GUI_Exec() with the interval of 1ms
3) there will be a 'live' image view behind text and its content always changing
Any advice or idea?
Thanks,
Kenmux
Recent days, I worked with GUI_MEMDEV_FadeInWindow() & GUI_MEMDEV_FadeOutWindow() and ran into some issues.
There are also some threads about them, like this:
Issue with GUI_MEMDEV_FadeInWindow
I used the codes in that page, everything worked very well.
Then I used this in my project, and did the try as following steps:
1) A toolbar to slide down (operate in one task):
C Source Code
2) A text to fade in & fade out (operate in another task):
C Source Code
- _hTextFading = TEXT_CreateEx (50, 100, 150, 30, WM_GetClientWindow (hWin),
- 0x0, 0x0, 0x880, "Message Fading");
- TEXT_SetFont (_hTextFading, GUI_FONT_20F_ASCII);
- TEXT_SetTextAlign (_hTextFading, GUI_TA_HCENTER | GUI_TA_VCENTER);
- TEXT_SetTextColor (_hTextFading, GUI_WHITE);
- WM_SetHasTrans (_hTextFading);
- WM_SetStayOnTop (_hTextFading, ON);
C Source Code
3) Let the text fade in & out, then there's a black rectangle during the process.
4) If let the toolbar slide down while the text fading in & out, then the toolbar may be frozen.
You can get the details from the attachment as:
The questions are:
1) How to deal with the black rectangle?
2) Why does GUI_MEMDEV_FadeInWindow() / GUI_MEMDEV_FadeOutWindow() cause frozen?
I use emWin with FreeRTOS, using multi-task support:
1) multi-task will call emWin
2) one background task call GUI_Exec() with the interval of 1ms
3) there will be a 'live' image view behind text and its content always changing
Any advice or idea?
Thanks,
Kenmux
The post was edited 1 time, last by kenmux ().