PDA

View Full Version : Cltimage == CltButton



OnlineRender
06-09-2011, 09:54 AM
how do I make an image .tga to act like a button ?

any ideas ...

evenflcw
06-09-2011, 10:28 AM
lscript panel controls are not object oriented and its certainly not like java swing or whatever. It's all or nothing. If you want something else, you'll have to start from scratch and make something from the pieces scattered about.

Either draw the image directly on the panel, using reqredraw, or inside an ctlimage, ctlinfo or ctlviewport and process the panels mouse events. The controls might however snag the mouse events for themselves so none are reported to the mouse events (an unfortunate bad design choice for lscript).

OnlineRender
06-09-2011, 03:03 PM
Wolf mentioned a Mono Image which can be used ;

I need to see an example/code of a mono image used as button for camera rotate ? or using the reqredraw();and mouse event method

any help appreciated in advance