View Full Version : White frame without Modern UI
1st March 2003, 17:51
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:
GetDlgItem $R0 $HWNDPARENT 1006
SetStaticBkColor $R0 0x00FFFFFF
but give me the default (grey) block.... any ideas...
1st March 2003, 18:20
Try 0xFFFFFF instead of 0x00FFFFFF
1st March 2003, 18:36
NOP... it have to be in this format 0x00FFFFFF
1st March 2003, 19:12
The DEFAULT UI don't support this. The Modern UI is especialy made to support this (I believe).
1st March 2003, 19:30
Try calling the 'Pintar1' function as your page...
Page Custom Pintar1 " - My custom page"
Page Directory "" "Pintar1"
2nd March 2003, 15:41
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.
2nd March 2003, 16:00
Yep !... it's works .... :up: thanks
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.