User Tools

Site Tools


macros:example:sethalo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
macros:example:sethalo [2018/04/02 14:58] – created icke_siegenmacros:example:sethalo [2020/03/29 11:17] (current) – [Explanation] icke_siegen
Line 39: Line 39:
 ''Handles.ClearSelection()'' clears the selection. ''Handles.ClearSelection()'' clears the selection.
  
-At the moment it is not possible to set the halo to a random RGB colour, as the halo property is of type [[macros:type:object:AcwColour]] and there is no automatic conversion. Hence, the only option is to use the available system colours which are Red, Orange, Brown, Yellow, Green, Light Green, Blue, Cyan, Violet, Red Violet.+Until Titan 11.1 it is not possible to set the halo to a random RGB colour, as the halo property is of type [[macros:type:object:AcwColour]] and there is no automatic conversion. Hence, the only option is to use the available system colours which are Red, Orange, Brown, Yellow, Green, Light Green, Blue, Cyan, Violet, Red Violet. 
 + 
 +From Titan 11.2 on it is expected to be possible to set an arbitrary RGB colour. 
 + 
 +> Add a converter for AcwColour which allows macros and WebAPI to specify a colour value for any properties or methods that use one e.g. for halos. The prefix for this cast will be "colour" and value can either be a hexadecimal string or an integer value (not hexadecimal). 
 +
 +> For example it should be possible to call the following in a macro: 
 +
 +> ActionScript.SetProperty("Handles.PendingHalo", colour:"#ffff0000"
  
 ===== How to use it ===== ===== How to use it =====
macros/example/sethalo.1522681131.txt.gz · Last modified: 2018/04/02 14:58 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki