Log in

View Full Version : Genericcontrol Question



Visvalor
July 25th, 2010, 21:11
Can I make a genericcontrol invisible but still have it click-able?

For example I'm going to have a picture of a paper doll up and I want to put generic controls over the heads, arms, torso, etc so that they can click that part of the body and the page controlling that bit of equipment will come up. If I setVisible(false) on a generic control is it still click-able?

Thanks :P!

Czarisyn
July 25th, 2010, 21:15
A transparent frame with a button that calls a windowclass with your desired info might do the trick...

That's how I am going about mine, anyways. I'm still planning so I don't know if it works or not.

Visvalor
July 25th, 2010, 22:24
Oh not a bad idea. Make a generic control with no frame behind it :D. That might work.

Anyone else know about this?

Foen
July 26th, 2010, 06:22
The forthcoming release of FG (2.7) will make invisible controls non-clickable, I believe. Your best bet is to use a generic control with no icon or frame.

Alternatively, you can capture the onClick event from your paper doll, and determine where on the image it was clicked using the mouse x,y coordinates. That's how the BRP Vitruvian man works.

Stuart

Czarisyn
July 26th, 2010, 15:52
The forthcoming release of FG (2.7) will make invisible controls non-clickable, I believe. Your best bet is to use a generic control with no icon or frame.

Alternatively, you can capture the onClick event from your paper doll, and determine where on the image it was clicked using the mouse x,y coordinates. That's how the BRP Vitruvian man works.

Stuart

are you talking about controls that have setVisibile(false) or any control that has a transparent image for its frame/icon?

Zeus
July 26th, 2010, 15:56
are you talking about controls that have setVisibile(false) or any control that has a transparent image for its frame/icon?

I believe Foen is referring to objects that have been set invisible by the setVisible(false) method.

In 2.7.0 controls that have been setVisible(false) will no longer intercept user interaction like mouse hover, click, drag etc.

Frameless/iconless controls should operate as normal.

.

Foen
July 26th, 2010, 16:11
Like the good Doctor says ;o)

Zeus
July 26th, 2010, 16:18
;) My bad, didn't mean to tread on any toes ...