Add Color Picker to Your Macros

April 19, 2019

With a new update, you can now use Color Picker in your Macro dialogs using DialogBox_AddColorPicker function. In the past when a macro needed user input for a color, the only option was to use a text box and ask for a hex color code which is much harder for users who just want to pick a color from a set of common colors.

Color Picker control looks like this in a dialog box:

Color Picker control

When user clicks on the dropdown, the standard Windows Color Picker is displayed to allow user to pick a color:

Color Picker window

Along with the color picker, a new base type Color is added. Certain properties of objects, like fontColor or highlightColor used to be String types. They are now using the new Color type. Color type has a few advantages over the String type. If a font color of a text is red, previously doing $text.fontColor == "red" wouldn't work, you would have to use the hex format (#ff0000). Color type is smart enough to compare color names and values, therefore such comparison or assignment will now work. There is also a new Color function to create variables of type color.

Macros that used to offer a dropdown with a set of predefined colors will be updated in the coming days to use the color picker.

Update information for Macros

Another feature added in the new update is the ability to see what updates are available for an installed macro. If you are looking at the details of an installed macro in Download Macros window, you will now see which updates are available and which version you currently have installed:

Available updates

This way you can see what the new update offers and decide whether you want to update to the new version of a macro or not.

Comments

Name
Comment
Marietta Walker - 2019-05-12
Never mind!  I found it.  Thanks for your help!
Marietta Walker - 2019-05-12
I tested the "Show in Separate" tab in Onetastic and it works fine. However I can no longer get back to default mode, because my "Settings" shortcut i no longer available anywhere I can find.

It is not on the Ribbon Bar in the "Separate Tab".

It i not under any other "Tabs"

And it is not under the "Onetastic Group" that is left on my "Ribbon" when "Home Tab" is selected.

According to your help file page sent kindly to me, it should be on the "Ribbon" when the "Home Tab" is selected.

Can you help me figure that out?

Thank you
Omer Atay - 2019-05-12
Marietta Walker: See https://getonetastic.com/how-to/arrange-macros-on-the-ribbon

Other Posts

Show all posts