Hi,
I have an issue concerning skinning in conjunction with widget API methods.
I have multiple FRAMEWIN-dialogs.
I use an own skinning callback routine for all of the FRAMEWINs, means in principle all FRAMEWINs look similar.
But a few properties of the different FRAMEWINs must differ, e.g.:
- Title Bar Height
- Text Font
- Title Bar Color
- Title Text Color
For that I initializes each FRAMEWIN when the particular dialog receives the WM_INIT_DIALOG command:
I found out, that some of the properties could be changed, some not:
FRAMEWIN_SetTitleHeight - works
FRAMEWIN_SetFont - works
FRAMEWIN_SetTextColor - works
FRAMEWIN_SetBarColor - doesn't work
Is there a special reason why SetBarColor doesn't work but other functions work? I dont understand the difference behaviour.
Are there some more widget API functions that wont work in conjunction with skinning?
Best regards
Matz
I have an issue concerning skinning in conjunction with widget API methods.
I have multiple FRAMEWIN-dialogs.
I use an own skinning callback routine for all of the FRAMEWINs, means in principle all FRAMEWINs look similar.
But a few properties of the different FRAMEWINs must differ, e.g.:
- Title Bar Height
- Text Font
- Title Bar Color
- Title Text Color
For that I initializes each FRAMEWIN when the particular dialog receives the WM_INIT_DIALOG command:
C Source Code
- case WM_INIT_DIALOG:
- FRAMEWIN_SetSkin(hDlg, mySkinningCallback); // same for each framewin
- FRAMEWIN_SetTitleHeight(hDlg, <height>); // same for each framewin
- FRAMEWIN_SetFont(hDlg, &<font>); // same for each framewin
- FRAMEWIN_SetTextColor(hDlg, <color>); // different for each framewin
- FRAMEWIN_SetBarColor(hDlg, 1, <color>); // different for each framewin
- FRAMEWIN_SetBarColor(hDlg, 0, <color>); // different for each framewin
I found out, that some of the properties could be changed, some not:
FRAMEWIN_SetTitleHeight - works
FRAMEWIN_SetFont - works
FRAMEWIN_SetTextColor - works
FRAMEWIN_SetBarColor - doesn't work
Is there a special reason why SetBarColor doesn't work but other functions work? I dont understand the difference behaviour.
Are there some more widget API functions that wont work in conjunction with skinning?
Best regards
Matz