Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Quad), 6,361 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
botton_state #272156
06/16/09 19:11
06/16/09 19:11
Joined: May 2009
Posts: 11
Romania, Targu Mures
F
F_P_kefas Offline OP
Newbie
F_P_kefas  Offline OP
Newbie
F

Joined: May 2009
Posts: 11
Romania, Targu Mures
I have a problem, whit the outstanding explanation of button_state function from the manual:

button_state(PANEL*,var num,var state)
Changes or returns the button state of a panel.

Parameters:
PANEL* Panel pointer.
num The number of the button, starting with 1.
state The new state of a radio or toggle button, ON (1) or OFF (0). -1 leaves the button state unchanged.

from where starts the COUNTING ?

Which button is 1?????
The first declared on the panel ?
Do I need something more to set the state of all the toggle buttons of a panel?


hello
Re: botton_state [Re: F_P_kefas] #272160
06/16/09 19:18
06/16/09 19:18
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
E
Enduriel Offline
Member
Enduriel  Offline
Member
E

Joined: Aug 2008
Posts: 133
Sweden, Stockholm
PANEL* = the panel with the buttons you want to modify its state

num = number ID of the button, first declared button is num 1, second declared button is 2 etc

state = if you input 1, then the button number chosen is set to ON, if you put 0, then it's set to OFF.

Last edited by Enduriel; 06/16/09 19:18.
Re: botton_state [Re: Enduriel] #272161
06/16/09 19:20
06/16/09 19:20
Joined: May 2009
Posts: 11
Romania, Targu Mures
F
F_P_kefas Offline OP
Newbie
F_P_kefas  Offline OP
Newbie
F

Joined: May 2009
Posts: 11
Romania, Targu Mures
that's just not working.
have you tried ?

One toggle or radio button always remains ON.


hello
Re: botton_state [Re: F_P_kefas] #272289
06/17/09 10:07
06/17/09 10:07
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I tried it back in 7.73 and it worked then.
Are you sure your buttons are radio OR toggle buttons?
And when counting buttons to get their number, you DO have to
count notmal buttons too.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: botton_state [Re: EvilSOB] #328539
06/13/10 19:28
06/13/10 19:28
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
Im so sorry , i just now found this post by searching.. and im having the same problem.
IT is not working the setting of the button...

i will cross link my POST :

Button state problem [with code]


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