Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: Allegro SKILL: Get selected item on canvas dbid

$
0
0
The best to do (i think) is to set a trigger for selection events. See in the SKILL api: axlTriggerSet(nil nil) Triggers supported: (open save close exit menu xprobe select ) So you need to set a 'select' trigger (before the selections occur!) pointing to a function. This function gets the selection data, and you need to store it into a global variable. This trigger function should not do more, see also the API about performance of this trigger. Then when you run your program it takes the selection data from the global and uses it.

Viewing all articles
Browse latest Browse all 33813

Trending Articles