Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Render panel into bitmap #286946
08/28/09 13:58
08/28/09 13:58
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
Hi, i have trouble with the panels, in my of project I decided to render all the panels in the texture, but here I am stuck, now I can not force the panel to respond on mouse events (pressing the button, move the slider ...)
But basically I know the solution to this problem, I could detect(by mouse position) every event by myself, but for this I need to know all the information about the panel:
-Number of buttons, sliders on the panel
-Position of each element of the panel
-Images size of all elements
-Pointers to function of button
So my question is how to get this info, if this impossible then how to force A7 react on panel event.


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: Render panel into bitmap [Re: XD1v0] #286948
08/28/09 14:15
08/28/09 14:15
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Panels rendering onto texture can not react on mouse clicks because they don't know the mouse position relative to their target texture. Theoretically, this could be implemented, but it's not trivial.

At the moment, the solution is to use sprites for buttons on a 3D surface.

Re: Render panel into bitmap [Re: jcl] #286980
08/28/09 16:50
08/28/09 16:50
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
Quote:
Panels rendering onto texture can not react on mouse clicks because they don't know the mouse position relative to their target texture.

I already understand this, but i want to know is possible to get info about elements of panel(something like pan_getbutton,pan_getdigits), this give me chance to detect events by myself =)


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1