Archive: White frame without Modern UI


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

Try 0xFFFFFF instead of 0x00FFFFFF

-Stuart


NOP... it have to be in this format 0x00FFFFFF


The DEFAULT UI don't support this. The Modern UI is especialy made to support this (I believe).


Try calling the 'Pintar1' function as your page...

eg.
Page Custom Pintar1 " - My custom page"


or

Page Directory "" "Pintar1"

-Stuart


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.


Yep !... it's works .... :up: thanks