Sign in to follow this  
Followers 0
meYasuo

can't create image in a TabSheet

2 posts in this topic

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
$Form2 = GUICreate("Test", 290, 195, 303, 219)
$Tab1 = GUICtrlCreateTab(0, 0, 289, 193)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("One")
$Pic1 = GUICtrlCreatePic("D:\AppImages\Main2.bmp", 56, 56, 180, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$TabSheet2 = GUICtrlCreateTabItem("Two")
$TabSheet3 = GUICtrlCreateTabItem("Three")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

please tell me why image is not showed? i have posted the code :P

read my Thread title.

no error and no image...??? :confused:

thanxx


My Mode:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
$Form2 = GUICreate("Test", 290, 195, 303, 219)
$Tab1 = GUICtrlCreateTab(0, 0, 289, 193)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("One")
$Pic1 = GUICtrlCreatePic("D:\AppImages\Main2.bmp", 56, 56, 180, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$TabSheet2 = GUICtrlCreateTabItem("Two")
$TabSheet3 = GUICtrlCreateTabItem("Three")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

please tell me why image is not showed? i have posted the code :P

read my Thread title.

no error and no image...??? :confused:

thanxx

The problem is in your pic style. :(

Remove this style $WS_CLIPSIBLINGS.

Edited by Andreik

When the words fail... music speaks

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