morawcik Posted December 26, 2011 Posted December 26, 2011 Hi. How I can make treeview with toolbar like that panel explorer in Notepad++ (screen in attach)
Zedna Posted December 28, 2011 Posted December 28, 2011 TreeView is ordinary, for toolbar use _GUICtrlToolbar_Create() Resources UDF ResourcesEx UDF AutoIt Forum Search
morawcik Posted January 10, 2012 Author Posted January 10, 2012 But if I create normal toolbar that is for all top. I want sth like adjacent to treeview.
ahmet Posted January 10, 2012 Posted January 10, 2012 You can create chiild GUI that will hold your treeview and toolbar, or just toolbar.
morawcik Posted January 12, 2012 Author Posted January 12, 2012 And I can add this GUI to main GUI like other elements (button, label, etc.) ?
ahmet Posted January 12, 2012 Posted January 12, 2012 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
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