Jump to content
Sign in to follow this  
forever

Treeview placing Problem

Recommended Posts

forever

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 :whistle:

#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 by forever

Share this post


Link to post
Share on other sites
GaryFrost

#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.

 

Share this post


Link to post
Share on other sites
forever

Thanks.

2. question:

how to give a edit, label & treeview an border, and how to set its color?

Share this post


Link to post
Share on other sites
GaryFrost

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.

 

Share this post


Link to post
Share on other sites
forever

I mean the colors of the Borders... not the Font or background colors :\..

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  

×