Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | 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