Sign in to follow this  
Followers 0
d0n

tab breaks the pic?

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

interesting, thanks for the tip

Share this post


Link to post
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.

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  
Followers 0