Jump to content
Sign in to follow this  
tlokz

GUI Pic Help

Recommended Posts

tlokz

Ok I made a program and want to make a fancy GUI now. I put together an image that will be the gui... I use $WS_POPUP properly to eliminate the border and such

Posted Image

Now as you can tell the sides and such make it have white when I create it within a picture

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Auto-Awesom", 338, 207, 1, 1, $WS_POPUP)
$Pic1 = GUICtrlCreatePic("C:\Users\T_LOKZz\Desktop\main.gif", 0, 0, 337, 206, -1, $GUI_WS_EX_PARENTDRAG)
$Label1 = GUICtrlCreateLabel("Label1", 56, 72, 220, 17)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

It makes white around it ;)

Also... How can I make a label without the box around it. Even if I set it to black you can tell a differnce... The label will not stay the same as it will change

If you need more information just ask

Share this post


Link to post
Share on other sites
BrettF
tlokz

Thank you very much on that ;)

Also about the Label... how can I make it just have the text show up and now the box with it?

Share this post


Link to post
Share on other sites
BrettF

GUICtrlSetBkColor($lbl_ctrl, $GUI_BKCOLOR_TRANSPARENT)

Also, to prevent issues, disable the background image.

Cheers,

Brett

Edited by BrettF

Share this post


Link to post
Share on other sites
tlokz

GUICtrlSetBkColor($lbl_ctrl, $GUI_BKCOLOR_TRANSPARENT)

Also, to prevent issues, disable the background image.

Cheers,

Brett

Thank you a lot ;)

First GUI project and you have helped a lot

Thanks

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  

×