nick_goyal
19th May 2010 15:05 UTC
change the color of directory selection text
i am using XPUI for creating my exe i got stuck with directory selection page as i am not able to change the color of the "Destination Folder" text. i have gone through the XPUI.nsh file and checked that as well but no help.
I have uploaded the image for the clear view of the issue.
Animaether
19th May 2010 23:54 UTC
I don't think you can - groupbox label colors tend to be stuck to the XP Style colors when XPStyle is on.. and it's probably always on for the ExperienceUI.
You could draw your own directory page UI and instead of using the groupbox's built-in label, create a label of your own.. should be able to apply colors to that freely.
Afrow UK
20th May 2010 15:55 UTC
You could also set no text at all (DirText for non MUI - XPUI may have a define for it).
Stu
DrO
20th May 2010 16:01 UTC
i don't know the system plug-in syntax well enough to be able to convert the following code to what is required but it's what i use to disable theming on a groupbox for a Winamp plug-in with the main HWND being the HWND of the groupbox control via a GetDlgItem(..) call. so should be simple for someone to convert it to something usuable in this case :)
void DisableThemeingOnWindow
(HWND hwnd){
>typedef HRESULT (WINAPI * SETWINDOWTHEME)(HWND, LPCWSTR, LPCWSTR);
>SETWINDOWTHEME pfnETDT = 0;
>HINSTANCE hDll = 0;
if((hDll = LoadLibrary("uxtheme.dll"))){
if((pfnETDT = (SETWINDOWTHEME)GetProcAddress(hDll,"SetWindowTheme"))){
pfnETDT(hwnd,L" ",L" ");
}
FreeLibrary(hDll);
}
}
-daz
Afrow UK
20th May 2010 16:16 UTC
This seems to work:
FindWindow $R0 `#32770` `` $HWNDPARENT
GetDlgItem $R0 $R0 1020 ; IDC_SELDIRTEXT
System::Call `uxtheme::SetWindowTheme(iR0,w' ',w' ')`
Stu
DrO
20th May 2010 16:35 UTC
nice one stu :)
-daz