Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,397 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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