Hello.
How to make transparent dialog box (transparent background of client window), created by GUI_CreateDialogBox?
I used for it the functions WM_SetTransState and WM_SetHasTrans but they give no effect.
Display All
Should I do something in callback-function of FrameWindow?
I succeeded to create a window with the transparent background only via WM_CreateWindowAsChild , but I need dialog window (with key TAB).
How to make transparent dialog box (transparent background of client window), created by GUI_CreateDialogBox?
I used for it the functions WM_SetTransState and WM_SetHasTrans but they give no effect.
C Source Code
- #define ID_FRAMEWIN_0 (GUI_ID_USER + 0x00)
- static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
- { FRAMEWIN_CreateIndirect, "EmptyFramewin", ID_FRAMEWIN_0, 0, 0, 400, 300 },
- { TEXT_CreateIndirect, "only text", GUI_ID_TEXT0, 10, 10, 60, 50 },
- { BUTTON_CreateIndirect, "click me", GUI_ID_BUTTON0, 10, 40, 50, 20 },
- { DROPDOWN_CreateIndirect, "ABCD", GUI_ID_DROPDOWN0, 100, 10, 80, 50 },
- };
- WM_HWIN CreateFramewin(void) {
- WM_HWIN hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
- FRAMEWIN_SetMoveable(hWin, 1);
- WM_SetHasTrans(hWin);
- WM_SetTransState(hWin, WM_CF_HASTRANS | WM_CF_CONST_OUTLINE);
- return hWin;
- }
I succeeded to create a window with the transparent background only via WM_CreateWindowAsChild , but I need dialog window (with key TAB).
Best regards,
Volodymyr.
Volodymyr.