Jump to content

GUI Pic Help


tlokz
 Share

Recommended Posts

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

Link to comment
Share on other sites

GUICtrlSetBkColor($lbl_ctrl, $GUI_BKCOLOR_TRANSPARENT)

Also, to prevent issues, disable the background image.

Cheers,

Brett

Edited by BrettF
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...