A Clarion MDI Windows vs Non-MDI Windows Frame Color tends to be different. Non-MDI Window Frame color gets themed with Windows 10 O/S theme frame color, but not MDI or FRAME Window.
Is it possible to change MDI / Frame Header Color in C10?
Hello Glenn,
nope… no chance. The babyblue color and the style are fixed. Don’t blame
SV - it’s a MS thing ! Other compilers which also using the MDI paradigm
and also don’t use the more modern MS UI methods (i.e XAML) having the
very same problem.
Try Noyantis/Codejock skinning or search the newsgroup for “metro caption
template” by Liam/Comformark.
Ciao, Thomas
IMHO… The simpliest way to rich this goals in Clarion is calling SetParent API function after opening the window.
SetParent(0{PROP:HANDLE},0)
After this you may use Windows Desktop Window Manager (DWM) functions (DwmExtendFrameIntoClientArea etc.).
Note: This works at Windows 7 and higher.
Ok, let’s be curious…
Sorry, I can’t give a Clarion code example, but I can give a photo with little explanation. Some data on screenshot are hidden…
Standart Clarion MDI Parent Frame without menu and toolbar.
Assotiated with a frame standart Clarion MDI child window with a FULL attribute, NOT plugged to Desktop Window Manager.
Right thumbnail:
“Slightly modified” Clarion MDI child window, plugged to DWM. This window has focus now. Also, there are two thumbnail buttons, representing a part of window funcionality.
Taskbar button:
Progress bar in TBPF_INDETERMINATE state.
Animated overlay icon.
Clarion 6.3 / Windows 10 and a little bit of magic…
Enjoy!