meYasuo Posted October 4, 2008 Posted October 4, 2008 #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 read my Thread title. no error and no image...??? :confused: thanxx My Mode:
Andreik Posted October 4, 2008 Posted October 4, 2008 (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 read my Thread title. no error and no image...??? :confused: thanxx The problem is in your pic style. Remove this style $WS_CLIPSIBLINGS. Edited October 4, 2008 by Andreik
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now