KSum Posted May 5, 2005 Share Posted May 5, 2005 Hello all, I appreciate the help from my last posting. this forum is great. I have placed a picture to be a background on an interface, and can get other items to work by creating them after the picture and disbling the picture, as shown below. But Tab Items do not show properly over background pic, unless I am doing something wrong. Any pointers for Tabs? Below is a excerpt of the pertinent portion. Everything else in my code is for other items that are working. ;Create the form GuiCreate("KCI's CAD/CAE Installation Program", 560, 358) ;Place a background image, disabling it so controls on top will work GUICtrlCreatePic ("G:\uSTN\Installs\AutoIt\CAE_Image2.jpg", 0, 0, 560, 358) GuiCtrlSetState(-1, $GUI_DISABLE) ; TABS GuiCtrlCreateTab(325, 120, 150, 70) GuiCtrlCreateTabItem("One") GuiCtrlCreateTabItem("Two") GuiCtrlCreateTabItem("Three") Karl Sumwalt Link to comment Share on other sites More sharing options...
themax90 Posted May 5, 2005 Share Posted May 5, 2005 A picture in the background will help nothing, simply because the tab gui overlaps and will create huge errors.What I suggest is a series of gui's or just put the image inside one tab. GuiCtrlCreateTab(325, 120, 150, 70) GuiCtrlCreateTabItem("One") GUICtrlCreatePic(blahblah) GuiCtrlCreateTabItem("Two") GuiCtrlCreateTabItem("Three") Link to comment Share on other sites More sharing options...
KSum Posted May 5, 2005 Author Share Posted May 5, 2005 Than kyou for the suggestion. The picture background takes up the entire form, while the tab areas would take up a small prtion of the form. Your suggestion is a way to make this work, where the tab items would be the size of the entire form, using the same background image in each tab item. I am looking to have tab items smaller than the image as there are other common controls I want to be dsipayed at all times. I am looking to have a tab item sized similar to the example form in the Help File under the GUI Concepts heading. Karl Link to comment Share on other sites More sharing options...
themax90 Posted May 5, 2005 Share Posted May 5, 2005 See thats what your not getting, the picture, no matter what is under it, OVERLAPS the tabs, so unles you move to function outside of the picture, it wont work.... Link to comment Share on other sites More sharing options...
KSum Posted May 5, 2005 Author Share Posted May 5, 2005 OK, got it. Basically, By Design, tabs can't overlap items, especially pictures. Thank you for the information. Karl Link to comment Share on other sites More sharing options...
jpm Posted May 5, 2005 Share Posted May 5, 2005 OK, got it. Basically, By Design, tabs can't overlap items, especially pictures.Thank you for the information.Karl<{POST_SNAPBACK}>Overlap as stated above can be bad. But if you GUICtrlSetState($pic, $GUI_DISABLE) it can work Link to comment Share on other sites More sharing options...
KSum Posted May 5, 2005 Author Share Posted May 5, 2005 Overlap as stated above can be bad. But if you GUICtrlSetState($pic, $GUI_DISABLE) it can work<{POST_SNAPBACK}>Isn't that the same as the GuiCtrlSetState(-1, $GUI_DISABLE) I have right after the creation of the picture?Karl Link to comment Share on other sites More sharing options...
jpm Posted May 5, 2005 Share Posted May 5, 2005 (edited) Isn't that the same as the GuiCtrlSetState(-1, $GUI_DISABLE) I have right after the creation of the picture?Karl<{POST_SNAPBACK}>Right I write $pic in case of you write in your code $pic=GUICtrlCreatePic(...and you want to GuiCtrlSetState not just after. Edit: sorry I din't see you already did it in your first post so the answer is it is not working Edited May 5, 2005 by jpm Link to comment Share on other sites More sharing options...
electrico Posted January 30, 2011 Share Posted January 30, 2011 (edited) I added this in the beginning of all Tab items: GUICtrlCreateTabItem('') and everything works. Answer to very old post - just for the guys who looks through forum searching answer. Edited January 30, 2011 by electrico Link to comment Share on other sites More sharing options...
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