Notifications
Clear all
[Closed] Dock ms to top toolbar problem-how to top to toolbar?
Aug 20, 2013 5:00 am
Hi guys,
I found some tools can dock to top,and can dock top of toolbar,this it’s my code,but can not do that I want,I searched forum,but no answer,anybody help?thanks.
test_width=60
test_height=30
rollout test "test"
(
button test_main "test" width:60 height:23 pos:[2,1]
)
Fn Dock_top=
(
cui.RegisterDialogBar test style:#(#cui_dock_top,#cui_floatable)
cui.DockDialogBar test #cui_dock_top
)
CreateDialog test test_width test_height style:#(#style_titlebar, #style_border, #style_sysmenu,#style_resizing,#style_minimizebox) lockwidth:true lockheight:true
Dock_top()
my codes goes to right,so ,how can I let it go top?
2 Replies
Aug 20, 2013 5:00 am
Dirty way is to undock tha main toolbar, run your script then dock your main toolbar just under your new bar .
or :
test_width=60
test_height=30
rollout test "test"
(
button test_main "test" width:60 height:23 pos:[2,1]
)
Fn Dock_top=
(
--cui.RegisterDialogBar test style:#(#cui_dock_top,#cui_floatable)
cui.RegisterDialogBar test style:#(#cui_handles, #cui_max_sized, #cui_floatable)
cui.DockDialogBar test #cui_dock_top
)
CreateDialog test test_width test_height style:#(#style_titlebar, #style_border, #style_sysmenu,#style_resizing,#style_minimizebox) lockwidth:true lockheight:true
Dock_top()
1 Reply