Page 1 of 1

[25 Aug 2008] Query Buttons

Posted: Sat Jun 13, 2020 5:31 pm
by Allanon
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 14:23:37 -0000

Hello, there is a way to query a button to obtain its current coordinates and sizes?

Thanks in advance. Fabio

[25 Aug 2008] Re: Query Buttons

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 07:39:27 -0700 (PDT)

If you make LayerButtons, then this is easily done with GetAttribute().

[25 Aug 2008] Re: Query Buttons

Posted: Sat Jun 13, 2020 5:31 pm
by Allanon
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 14:57:20 -0000

Yep, I know, but I can't use layers because I'm trying to simulate viewports using brushes. The problem is that the coordinates where the buttons are rendered are not the same of the button areas, so I've to query the current button data and recreate the active zone adding the offset of the viewport and the linked brush where all buttons are rendered.

I don't know if I've explaned well what I mean... please forgive my english... -.-'

[25 Aug 2008] Re: Query Buttons

Posted: Sat Jun 13, 2020 5:31 pm
by Allanon
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 15:37:54 -0000

I think I've resolved... thanks ;)