little helper

for OSX

to replace a color (in code) I made a small utility
select and copy color (cmd+c), then click into the field,
change color, new color will be pasted into Xojo

or just use it to choose a color. (with the button)
the chosen color is copied to the clipboard.

projectfile

Admire the ingenuity but did you know theres a contextual menu item that already does this ?
Right click > Insert color anywhere in the code editor :slight_smile:

I’m just learning a little about the interaction between AppleScript and Xojo …

[quote=75377:@Norman Palardy]Admire the ingenuity but did you know theres a contextual menu item that already does this ?
Right click > Insert color anywhere in the code editor :)[/quote]

I did not know about that option. Would it not be a good idea to add this to the Color page in the documentation ?

Curious since this has been present for a long time
Before Xojo even

I also never knew about (noticed) that! Very helpful.

I’m wondering though… on the contextual menu topic, the “Switch to” menu shows all available events for the current item, but selecting one that hasn’t been implemented moves you to the layout editor. Could be a feature request to add the event handler instead. And/Or add that submenu to the “Add To …” / “Event Handler” item. (I still highly dislike the “add event handler” sheet window)