Joel
1st March 2003 18:51 UTC
White frame without Modern UI
Trying this:
I'm NOT using the Modern UI (that's the idea)
I wanna paint "my self" the top white frame in each dialog.
I'm using this from system.nsh:
Function "Pintar1"
GetDlgItem $R0 $HWNDPARENT 1006
SetStaticBkColor $R0 0x00FFFFFF
FunctionEnd
Function .onInit
Call Pintar1
FunctionEnd
but give me the default (grey) block.... any ideas...
Thanks
Afrow UK
1st March 2003 19:20 UTC
Try 0xFFFFFF instead of 0x00FFFFFF
-Stuart
Joel
1st March 2003 19:36 UTC
NOP... it have to be in this format 0x00FFFFFF
deguix
1st March 2003 20:12 UTC
The DEFAULT UI don't support this. The Modern UI is especialy made to support this (I believe).
Afrow UK
1st March 2003 20:30 UTC
Try calling the 'Pintar1' function as your page...
eg.
Page Custom Pintar1 " - My custom page"
or
Page Directory "" "Pintar1"
-Stuart
kichik
2nd March 2003 16:41 UTC
0x00FFFFFF is exactly the same number as 0xFFFFFF. Just like 05 and 5 are the same numbers.
deguix is right, the Modern UI was especially made to have that white frame. It has a static control that gets the white color from that code you posted above. I can't understand from your question if you are using modern.exe or default.exe, so I'll give both answers. If you are using the default UI (default.exe) you should switch to modern.exe or another UI made by you and use that code in .onGUIInit. In .onInit the UI has not been created yet. If you are already using modern.exe or your own UI just move that code into .onGUIInit.
Joel
2nd March 2003 17:00 UTC
Yep !... it's works .... :up: thanks