IronToolbar - 2020/11/22 - a122

Share the finished AutoHotkey v2 Scripts and libraries you made here. Please put the current version of AutoHotkey v2 you used in Square Brackets at the start of the topic title.
User avatar
TheArkive
Posts: 405
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

IronToolbar - 2020/11/22 - a122

05 Nov 2020, 14:26

Image

Old Preview (still applies)

Download on :arrow: GitHub

The goal with this class script is simplicity. You can still exercise lots of granular control manually, but I wanted to make this toolbar in a way that would reflect a legit toolbar supported in AutoHotkey where the user can apply minimal script code in order to create a toolbar and manage its events.

Extensive docs are on GitHub. The included example script is displayed in the animated preview above.

===================================================================
Updates
===================================================================
Last edited by TheArkive on 22 Nov 2020, 03:11, edited 5 times in total.
User avatar
TheArkive
Posts: 405
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: IronToolbar - 2020/11/09 - a122

09 Nov 2020, 15:08

Update 2020/11/09:
  • Added enhancements to Easy Mode.
  • Now MixedButtons, List, and Flat Styles/ExStyles are automatically applied to the toolbar. This allows a mixture of only-icon buttons, only-text buttons, and icon+text buttons (where text is to the right of the icon).
  • Added ability to disable MixedButtons mode when calling tb.New()
  • Added ability to disable Easy Mode when calling tb.New() (automatically disables MixedButtons mode).
  • Added automatic spacing added in front of button text, but ONLY when user specified icon:-1 during tb.Add(). This causes text-only button text to appear centered. Otherwise the text would be flush with left button edge. User can change this if needed with tb.txtSpacing := x, where x is number of spaces to insert to the left of button text. Default is 2 spaces.
robodesign
Posts: 726
Joined: 30 Sep 2017, 03:59
Facebook: marius.sucan
GitHub: mariussucan
Location: Romania
Contact:

Re: IronToolbar - 2020/11/09 - a122

09 Nov 2020, 15:13

:dance: :bravo:
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.

Return to “AutoHotkey v2 Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 2 guests