(simple) Adding WS_VSCROLL style to GUI

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Benny-D
Posts: 302
Joined: 12 Mar 2014, 10:09

(simple) Adding WS_VSCROLL style to GUI

19 Nov 2018, 08:44

I am trying to create a window with a verticle scroll by adding WS_VSCROLL style, but something goes wrong here. Do I add the style correctly?

Code: Select all

FWC := "55a0ff" ; first window window's color
FWFS := "16" ; first window window's font size
FWFT := "Verdana" ; first window window's font

gosub, CreateFirstWindow
return

CreateFirstWindow:
Gui New,  hwndFW  
Gui +LabelFW +WS_VSCROLL ; needed for such subs (later in this script) as FWCancel or FWClose 
Gui, % FW . ":color", % FWC
Gui, % FW . ":font", % "s" . FWFS, % FWFT
Gui, % FW . ":add", Button, gShowSecond , Show 2nd window
Gui, % FW . ":add", Button, x+10 gFWClose , Exit
return

ShowSecond:
return

FWClose:
Gui % FW . ":Default" 
Gui, % FW . ":destroy"
exitapp

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998 and 233 guests