Jump to content

tab breaks the pic?


 Share

Recommended Posts

The script works only when i take out the createtab, but when i include the createtab, the picture does not show at all

any help would be appreciated, thanks

$Info = @ScriptDir&"\info.ini"
$Form1 = GUICreate("test", 270, 220)
;$Tab = GUICtrlCreateTab(2, 2, 265, 214)
$Tab1 = GUICtrlCreateTabItem("Main")
$Pic1 = GUICtrlCreatePic("", 152, 35, 108, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetImage($Pic1,IniRead($Info,"General","Error","Default"))
$Tab2 = GUICtrlCreateTabItem("Skills")
GUISetState(@SW_SHOW)

GUI()

Func GUI()
While 1
        $msg = GUIGetMsg()
        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc
Edited by d0n
Link to comment
Share on other sites

You cannot use $WS_CLIPSIBLINGS as a style for the pic. I don't know why. Maybe someone else will come by and tell you why.

You can have $WS_CLIPSIBLINGS as a style for a pic and it will work, but not on a tab. Maybe that's what you meant. I don't know why though.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...