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
1 registered members (TipmyPip), 18,484 guests, and 6 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
Panel buttons! #112544
02/17/07 23:56
02/17/07 23:56
Joined: Apr 2006
Posts: 136
San Francisco
T
Tor Offline OP
Member
Tor  Offline OP
Member
T

Joined: Apr 2006
Posts: 136
San Francisco
Are the panel buttosn working correctly?

BMAP* join = "JOIN.BMP";
BMAP* host = "HOST.BMP";
BMAP* join_down = "JOIN_DOWN.bmp";
BMAP* host_down = "HOST_DOWN.bmp";
BMAP* bmap_panel = "panel.bmp";



PANEL* NetworkSelect =
{
pos_X = 0;
pos_Y = 0;
bmap = bmap_panel;
button =(0, 0, join_down, join, join, blah, NULL, NULL);
flags = visible;
}

this code works fine right now, but if I change the location of the button ( anything other than 0,0). The button no longer recognizes input from the mouse. Changing the location of the panel is fine, as long as the button stays at 0,0.

Can anyone else confirm that this is busted? Cuz I'd really like to know if I'm doing something wrong


"Towlie, you're the worst character ever." I know...
Re: Panel buttons! [Re: Tor] #112545
02/19/07 16:48
02/19/07 16:48
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
For detecting mouse clicks on buttons, the button must be inside the panel area. You didn't give a panel area (size_x/size_y), so the size of your background bitmap is used by default. Can this be the reason for your problem?

Using panel buttons is described in one of the first lite-C workshops.

Re: Panel buttons! [Re: jcl] #112546
02/24/07 21:03
02/24/07 21:03
Joined: Apr 2006
Posts: 136
San Francisco
T
Tor Offline OP
Member
Tor  Offline OP
Member
T

Joined: Apr 2006
Posts: 136
San Francisco
Actually... I think the bitmap size is used regardless of what size you set it to using the size_X variables inside the panel type.

But yea, the buttons were acting funky cuz of that.


"Towlie, you're the worst character ever." I know...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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