[module] Toolbar Control 1.0 b1
Started by
majkinetor
, Jan 09 2008 04:04 PM
6 replies to this topic
T o o l b a r
Version 2 of this module is here
Toolbar control
Download Documentation
Latest test version here
To do:
- Arrow buttons (buttons that have small down arrow next to them that can be clicked for list of options) (done in test)
- Tooltips (done in test)
- The way to add separators when toolbar is used with image lists. (done in test)
- Notification interface
#1
-
Posted 09 January 2008 - 04:04 PM
OMG!
You are on quite a tear today! Keep em' coming!
You are on quite a tear today! Keep em' coming!
#2
-
Posted 09 January 2008 - 04:29 PM
Amazing! I cannot try your scripts as fast as you post them. They are real time savers for the rest of us. Thanks, but consider to cut back on coffee: we want you to stay with us for a long time… :wink:
#3
-
Posted 09 January 2008 - 04:37 PM
Many thanks majkinetor. I can now enrich my Appbar to be pro.
When I drag out and release Quick launch from the taskbar I have it floating:
If you have the time and mood, please demonstrate how this can be duplicated ( with tooltips ) with an AHK Gui.
Thanks again.
When I drag out and release Quick launch from the taskbar I have it floating:
If you have the time and mood, please demonstrate how this can be duplicated ( with tooltips ) with an AHK Gui.
Thanks again.
#4
-
Posted 10 January 2008 - 04:24 AM
Toolbars have some excellent unconventional uses. For example, this is actually a top-level toolbar with a drop-shadow:
(mouse is over button 2)
(button 2 is pressed)
The window has the WS_POPUP, WS_BORDER, TBSTYLE_LIST and CCS_NODIVIDER styles. I sub-classed ToolbarWindow32, mainly to add the CS_DROPSHADOW class style.
I had been writing a toolbar-popup-menu function, but gave up when I realised it would become obsolete when I finally get around to one of my planned projects (layered window system.) I can post the proof-of-concept, if anyone is interested.
@SKAN: iirc, that is done by destroying the toolbar on the taskbar's Rebar control, and recreating it on a floating window. It is a feature of Desk Bands.
You could probably use SetParent to move the toolbar from one GUI to another (i.e. floating tool window.)
(mouse is over button 2)
(button 2 is pressed)
The window has the WS_POPUP, WS_BORDER, TBSTYLE_LIST and CCS_NODIVIDER styles. I sub-classed ToolbarWindow32, mainly to add the CS_DROPSHADOW class style.
I had been writing a toolbar-popup-menu function, but gave up when I realised it would become obsolete when I finally get around to one of my planned projects (layered window system.) I can post the proof-of-concept, if anyone is interested.
@SKAN: iirc, that is done by destroying the toolbar on the taskbar's Rebar control, and recreating it on a floating window. It is a feature of Desk Bands.
You could probably use SetParent to move the toolbar from one GUI to another (i.e. floating tool window.)
#5
-
Posted 10 January 2008 - 08:50 AM
thx lexikos for idea. Its good to know that menus can be reimplemented that way, I just need to reimplement them. If you remember my PM about menus with titles that stay on the ground, I got a nice idea from ViM editor menus that I will make available in MMenu - First item in ViM menu has small height and you can click it to recrate menu on the desktop. In ViM, they did it using some form of listview, but it seems that "list" toolbar is much better idea.
Anyway, Toolbar module is almost over. The thing that SKAN referes can be done as lexikos said.
But I suggest you to wait until both Toolbar and ReBar modules are over, then you will have some cool things like seveeral toolbars, some to be vertical, etc....
I didn't get tooltips to work yet though, and something that toolbar control supports, moving the buttons around...
Anyway, Toolbar module is almost over. The thing that SKAN referes can be done as lexikos said.
But I suggest you to wait until both Toolbar and ReBar modules are over, then you will have some cool things like seveeral toolbars, some to be vertical, etc....
I didn't get tooltips to work yet though, and something that toolbar control supports, moving the buttons around...
#6
-
Posted 10 January 2008 - 09:00 AM
More serious encapsulation, now in form of includable module. Currently I didn't designed notification interface, so it is hardcoded in module in function Toolbar_onNotify.
To do:
- Arrow buttons (buttons that have small down arrow next to them that can be clicked for list of options)
- Tooltips
- The way to add separators when toolbar is used with image lists.
- Notification interface
To do:
- Arrow buttons (buttons that have small down arrow next to them that can be clicked for list of options)
- Tooltips
- The way to add separators when toolbar is used with image lists.
- Notification interface
#7
-
Posted 10 January 2008 - 12:36 PM