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