PDA

View Full Version : Ctrl + Click for Button_IconCycler?



damned
February 28th, 2018, 04:16
I have a graphical button cycler that on left click the image advances to the next.
I would like to be able to retreat one unit using ctrl+click or alt+click.
I cant work out how to use Ctrl+Click... any suggestions?

Bidmaron
February 28th, 2018, 15:51
When I get home tonight if no one has answered I will post some code that should do this

Trenloe
February 28th, 2018, 15:54
I have a graphical button cycler that on left click the image advances to the next.
I would like to be able to retreat one unit using ctrl+click or alt+click.
I cant work out how to use Ctrl+Click... any suggestions?
Check to see if the CTRL key is pressed as part of the button onClick event?

https://www.fantasygrounds.com/refdoc/Input.xcp#isControlPressed

damned
March 1st, 2018, 01:36
thanks Trenloe I had used it before but could not find what/where I had... back in 2015 on Osric...
Also Samarex gave me an assist on the syntax too.

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=22463

22463