Re: UpDown Control Help

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...

I believe you need to call setBuddy().

-Greg

I've tried all different kinds of combinations with setBuddy and setAcceleration, nothing works. It won't show the value of the stat in the edit box. Here is what I want, when the user clicks on the UpDown control, I want the value of the stat to change inside of the editbox.

atom HP 
HP = 0 
 
constant Hero_HP_Text = createEx(LText,"HP:",Tab_Hero,150,120,30,20,0,0), 
Hero_HP_Edit = createEx(EditText,"",Tab_Hero,190,120,40,22,0,0), 
Hero_HP_UpDn = createEx(UpDown,"",Tab_Hero,240,120,40,20,0,0) 
 
procedure Click_Hero_UpDn(integer self, integer event, sequence parm) 
 --What would I need to do to make the value of the stat change 
 --inside of the editbox, when the user clicks on the upDown control? 
end procedure 
setHandler(Hero_HP_UpDn,w32HClick,routine_id("Click_Hero_UpDn")) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu