Archive: change the color of directory selection text


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.


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.


You could also set no text at all (DirText for non MUI - XPUI may have a define for it).

Stu


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

This seems to work:

FindWindow $R0 `#32770` `` $HWNDPARENT
GetDlgItem $R0 $R0 1020 ; IDC_SELDIRTEXT
System::Call `uxtheme::SetWindowTheme(iR0,w' ',w' ')`
Stu

nice one stu :)

-daz