Jump to content

Treeview placing Problem


forever
 Share

Recommended Posts

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
Link to comment
Share on other sites

#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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...