Sign in to follow this  
Followers 0
morawcik

Treeview with toolbar

6 posts in this topic

Hi.

How I can make treeview with toolbar like that panel explorer in Notepad++ (screen in attach)

post-52745-0-60390500-1324913259_thumb.p

Share this post


Link to post
Share on other sites



But if I create normal toolbar that is for all top. I want sth like adjacent to treeview.

Share this post


Link to post
Share on other sites

You can create chiild GUI that will hold your treeview and toolbar, or just toolbar.

Share this post


Link to post
Share on other sites

And I can add this GUI to main GUI like other elements (button, label, etc.) ?

Share this post


Link to post
Share on other sites

Sure. Here is demonstration

#include <GuiToolbar.au3>
#include <Constants.au3>
#include <WindowsConstants.au3>
$main=GUICreate('TreeView+Toolbar')
GUISetState()
$child=GUICreate('',200,200,10,100,$WS_CHILD,Default,$main)
;~ GUISetBkColor(0xffffff)
$treeview=GUICtrlCreateTreeView(0,35,200,200)
GUICtrlCreateTreeViewItem('item1',$treeview)
GUICtrlCreateTreeViewItem('item1',$treeview)
GUICtrlCreateTreeViewItem('item1',$treeview)
GUICtrlCreateTreeViewItem('item1',$treeview)
$hToolbar=_GUICtrlToolbar_Create($child)
_GUICtrlToolbar_AddBitmap($hToolbar, 1, -1, $IDB_STD_LARGE_COLOR)
_GUICtrlToolbar_AddButton($hToolbar, 1000, $STD_FILENEW)
  _GUICtrlToolbar_AddButton($hToolbar, 1000, $STD_FILEOPEN)
GUISetState()
Do
$msg=GUIGetMsg()
Until $msg=-3

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  
Followers 0