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
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Buttons suddenly do nothing, please help. #251173
02/11/09 20:50
02/11/09 20:50
Joined: Sep 2008
Posts: 76
Max_Prower Offline OP
Junior Member
Max_Prower  Offline OP
Junior Member

Joined: Sep 2008
Posts: 76
Hey. This is quite a strange issue I have, here. I beleive that I have written the code as it needs to be written, and it loads fine so I know I've saved it as a .c file.
But buttons do nothing when I mouse over them or click them, but everything else works fine? I know I haven't set any functions to them; but they don't change at all when I mouse over or click the buttons. Even though they are different images?

Here is my code:

Code:
#include <acknex.h>
#include <default.c>
///////////////////////Functions
function main()
{
	video_screen = 1;
}

//// Panels ///////

PANEL * background =
{
	bmap = "bg_panel.bmp";
	layer = 1;
	flags = VISIBLE;
}

PANEL * buttontray = 
{
	bmap = "tray.bmp";
	layer = 2;
	flags = VISIBLE;
	button = 40, 20, "button3.tga", "button1.tga", "button2.tga", NULL, NULL, NULL;
}


Please help me solve this issue. smile

Last edited by Max_Prower; 02/11/09 20:50.
Re: Buttons suddenly do nothing, please help. [Re: Max_Prower] #251176
02/11/09 20:55
02/11/09 20:55
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
look in manual under mouse_mode
you need to set the proper mouse_mode state so that the app knows you're moving the mouse. in code like this, no mouse forces are applied, at least i think so



Ubi bene, ibi Patria.
Re: Buttons suddenly do nothing, please help. [Re: croman] #251177
02/11/09 20:58
02/11/09 20:58
Joined: Sep 2008
Posts: 76
Max_Prower Offline OP
Junior Member
Max_Prower  Offline OP
Junior Member

Joined: Sep 2008
Posts: 76
Ahh, thank-you! Turns out I needed mouse_mode 3. ^_^;


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