Custom Page
Is it possible when I use modern UI to make a custom page without the Header ?
26 posts
in options.iniGetDlgItem $asd $HWNDPARENT 1
SetCtlColors $asd 0x000000 0xFFFFFF
Think it's wrong 😱[Settings]
NumFields=7
Rect=1044
HWND=asd
Usage: GetDlgItem $(user_var: handle output) dialog item_id
Error in script
Neither of these return the value of HWND, unless I manually set the value in the original ioC.ini file which is wrong, I know.ReadINIStr $asd "ioC.ini" "Field 3" "HWND"
ReadINIStr $asd "$PLUGINSDIR\ioC.ini" "Field 3" "HWND"
!insertmacro MUI_INSTALLOPTIONS_READ $asd "$PLUGINSDIR\ioC.ini" "Field 3" "HWND"
in io.ini
Var $avarname
Function PageFunction
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioC.ini"
ReadINIStr $avarname "$PLUGINSDIR\io.ini" "Field X" "HWND"
SetCtlColors $avarname 0x000000 0xFFFFFF
!insertmacro MUI_INSTALLOPTIONS_SHOW
FunctionEnd
Nothing extra
State=1 added to [Field 1] to no avail. As you can see, the other bitmap displays fine.
[Settings]
NumFields=8
Rect=1044
NextButtonText=Finish
[Field 1]
Type=Bitmap
Text=white.bmp
Left=130
Right=313
Top=32
Bottom=180
State=1
[Field 2]
Type=Groupbox
Text=Shortcuts
Left=117
Right=315
Top=52
Bottom=93
[Field 3]
Type=Groupbox
Text=Additional
Left=117
Right=315
Top=109
Bottom=148
[Field 4]
Type=checkbox
Text=Create shortcut on the Desktop.
Left=126
Right=288
Top=64
Bottom=76
State=0
HWND=
[Field 5]
Type=checkbox
Text=Create shortcut in the Start Menu.
Left=126
Right=300
Top=76
Bottom=88
State=1
[Field 6]
Type=Checkbox
Text=Start the program once done.
Left=126
Right=272
Top=124
Bottom=132
State=1
[Field 7]
Type=Bitmap
Text=win.bmp
Left=0
Right=110
Top=0
Bottom=193
[Field 8]
Type=Label
Text=Additional configuration
Left=109
Right=316
Top=0
Bottom=47
Function onInit
InitPluginsDir
File /oname=$PLUGINSDIR\white.bmp "white.bmp"
FunctionEnd
Function CustomPageC
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioC.ini" "Field 1" "Text" "$PLUGINSDIR\white.bmp"
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioC.ini"
FunctionEnd
If the created window is a child window, its default position is at the bottom of the Z-order. If the created window is a top-level window, its default position is at the top of the Z-order (but beneath all topmost windows unless the created window is itself topmost).So Field 1 should be Field 8.