Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ozgur, TipmyPip, AndrewAMD), 1,209 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | chip programmers | 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