Jump to content
Sign in to follow this  
FireLord

Possible?

Recommended Posts

FireLord

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.


[center]See the Helpfile[/center]
While Alive()
	 DrinkWine();
}
[center][/center]

Share this post


Link to post
Share on other sites
Jex

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

Share this post


Link to post
Share on other sites
Josbe

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.

Share this post


Link to post
Share on other sites
FireLord

Thank you, both of your suggestions were of great help.

@Jex: Love the login screen :P

Edited by FireLord

[center]See the Helpfile[/center]
While Alive()
	 DrinkWine();
}
[center][/center]

Share this post


Link to post
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
Sign in to follow this  

×