Jump to content

Treeview with toolbar


morawcik
 Share

Recommended Posts

  • 2 weeks later...

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

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