forever Posted August 25, 2005 Share Posted August 25, 2005 (edited) Got a problem here. I'm trying to place a treeview right from a label and a inputbar, the prob is it appears at the bottom, not at the told coords. If i change the rangs (first treeview then the rest) the other objects (input; label) are created "under" the treeview. I don't get this. It seems treeview takes the whole ..how could i call it.. window is wrong but.. the whole horizontal place.. help me please expandcollapse popup#include <GuiConstants.au3> #include <GuiTab.au3> GuiCreate("Form1", 800, 400, 431,451 ,BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $bg = GUICtrlCreatePic ("images\bg.gif", 0, 0, 800, 400) GuiCtrlSetState($bg,$GUI_DISABLE) Opt("GUICoordMode",0) $Inhalt = GUICtrlCreateTab(18, 32, 545, 353) $News = GUICtrlCreateTabitem ("News") ;$Nachrichten = GuiCtrlCreateGroup("Nachrichten", 3, 8, 529, 313) $IRC = GUICtrlCreateTabitem ("IRC") ;$Chat = GuiCtrlCreateGroup("Chat", 3, 8, 529, 313) $ChatWindow = GuiCtrlCreateLabel("ChatWindow", 8, 16, 381, 261) $InputBar = GuiCtrlCreateInput("InputBar", 0, 283, 385, 21) $NickNames = GUICtrlCreateTreeView(400, 16, 121, 289) $Another = GUICtrlCreateTabitem ("Another") ;$Anderes = GuiCtrlCreateGroup("Anderes", 3, 8, 529, 313) GUICtrlCreateTabitem ("") ;SETS ;SET COLORS GUICtrlSetColor ($ChatWindow, 0x0090FF) GUICtrlSetColor ($InputBar, 0x0090FF) ;GUICtrlSetColor ($ChatWindow, 0x0090FF) GuiSetState() GUICtrlSetState($IRC,$GUI_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd Exit 2. question: how to give a edit, label & treeview an border, and how to set its color? Edited August 25, 2005 by forever Link to comment Share on other sites More sharing options...
GaryFrost Posted August 25, 2005 Share Posted August 25, 2005 expandcollapse popup#include <GuiConstants.au3> #include <GuiTab.au3> GuiCreate("Form1", 800, 400) $bg = GUICtrlCreatePic ("images\bg.gif", 0, 0, 800, 400) GuiCtrlSetState($bg,$GUI_DISABLE) ;~ Opt("GUICoordMode",0) $Inhalt = GUICtrlCreateTab(18, 32, 545, 353) $News = GUICtrlCreateTabitem ("News") ;$Nachrichten = GuiCtrlCreateGroup("Nachrichten", 3, 8, 529, 313) $IRC = GUICtrlCreateTabitem ("IRC") ;$Chat = GuiCtrlCreateGroup("Chat", 3, 8, 529, 313) $ChatWindow = GuiCtrlCreateLabel("ChatWindow", 40, 60, 381, 275, $SS_SUNKEN) $InputBar = GuiCtrlCreateInput("InputBar", 40, 360, 385, 21) $NickNames = GUICtrlCreateTreeView(60, 80, 200, 250, -1, $WS_EX_CLIENTEDGE ) ;~ GUICtrlSetState($ChatWindow,$GUI_DISABLE) $Another = GUICtrlCreateTabitem ("Another") ;$Anderes = GuiCtrlCreateGroup("Anderes", 3, 8, 529, 313) GUICtrlCreateTabitem ("") ;SETS ;SET COLORS GUICtrlSetColor ($ChatWindow, 0x0090FF) GUICtrlSetColor ($InputBar, 0x0090FF) ;GUICtrlSetColor ($ChatWindow, 0x0090FF) GuiSetState() GUICtrlSetState($IRC,$GUI_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd Exit SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
forever Posted August 25, 2005 Author Share Posted August 25, 2005 Thanks. 2. question: how to give a edit, label & treeview an border, and how to set its color? Link to comment Share on other sites More sharing options...
GaryFrost Posted August 25, 2005 Share Posted August 25, 2005 look in the help for styles and extended styles on the controls in question, for colors GUICtrlSetBkColor and GUICtrlSetColor SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
forever Posted August 25, 2005 Author Share Posted August 25, 2005 I mean the colors of the Borders... not the Font or background colors :\.. 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