Embedded functions for new Listers

Whilst experimenting with a user command I noticed that an embedded function which works with a native Go command does not work with a user command that does exactly the same as the native command. Best served by example.

The native command button (screen grab #1) correctly opens My Pictures and displays as thumbnails whereas the user command button (screen grab #2) opens My Pictures but the embedded function [Set VIEW=thumbnails] does not execute. The user command definition is shown in screen grab #3.

There is also something odd about the native command button behaviour. When I hover the mouse, a tool tip appears as shown in the 4th screen grab below but as you can see from the button definition, no tip is specified.








Regards, AB

Nothing weird or unexpected there.

Embedded commands can be applied to the Go command, not to user commands that happen to run the Go command (which aren't the same as the Go command itself. How would it work if the user command ran two Go commands, for example?) Move the embedded stuff into the user command if you want that.

Go commands have tooltips generated automatically.

[quote="leo"]Nothing weird or unexpected there.

Embedded commands can be applied to the Go command, not to user commands that happen to run the Go command (which aren't the same as the Go command itself. How would it work if the user command ran two Go commands, for example?) Move the embedded stuff into the user command if you want that.

Go commands have tooltips generated automatically.[/quote]
Thanks Leo. Makes perfect sense. (What else did I expect? :smiley: ...)

Until you pointed it out now, I had never noticed that Go generates tooltips. A useful feature / side effect.

Regards, AB