Jump to content

Possible?


FireLord
 Share

Recommended Posts

That script from my messenger login screen.

#include <GUIConstants.au3>

$Width = 154
$Height = 235
$Form = GUICreate("", $Width, $Height, -1, -1, BitOR($WS_POPUP, $WS_BORDER))
$Close = GUICtrlCreateLabel("X", $Width - 15, 0, 11, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetCursor(-1, 0)
$Formtitle = GUICtrlCreateLabel(" Login Screen", 0, 4, @DesktopWidth, 20, -1, $GUI_WS_EX_PARENTDRAG)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Formtitlebackground = GUICtrlCreateGraphic(0, 0, @DesktopWidth, 22)
GUICtrlSetBkColor(-1, 0x000000)
$Input1 = GUICtrlCreateInput("", 16, 56, 121, 21)
$Label1 = GUICtrlCreateLabel("Username :", 16, 32, 58, 17)
$Input2 = GUICtrlCreateInput("", 16, 112, 121, 21, $ES_PASSWORD)
$Label2 = GUICtrlCreateLabel("Password :", 16, 88, 56, 17)
$Checkbox1 = GUICtrlCreateCheckbox("Save username", 16, 146, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Save password", 16, 170, 97, 17)
$Login = GUICtrlCreateButton("Login", 16, 200, 123, 25, 0)

GUISetState(@SW_SHOW, $Form)

While 1
    If GUIGetMsg() = $Close Then Exit
WEnd
Link to comment
Share on other sites

How do I take away the blue title bar and borders around my program and add my own?

Do I have to make an image in paint to reference it to? I'm lost.

Variable $WS_POPUP in style parameter give you a popup window.

Check this:

GUICreate("Test", 217, 201, 193, 115, $WS_POPUP)

Read more about this in the helpfile.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...