PDA

View Full Version : White frame without Modern UI


Joel
1st March 2003, 17:51
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, 18:20
Try 0xFFFFFF instead of 0x00FFFFFF

-Stuart

Joel
1st March 2003, 18:36
NOP... it have to be in this format 0x00FFFFFF

deguix
1st March 2003, 19:12
The DEFAULT UI don't support this. The Modern UI is especialy made to support this (I believe).

Afrow UK
1st March 2003, 19:30
Try calling the 'Pintar1' function as your page...

eg.
Page Custom Pintar1 " - My custom page"


or

Page Directory "" "Pintar1"

-Stuart

kichik
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.

Joel
2nd March 2003, 16:00
Yep !... it's works .... :up: thanks