Text input options in MaxGUI

BlitzMax Forums/MaxGUI Module/Text input options in MaxGUI

XE800(Posted 2007) [#1]
I'm making an editor of sorts, and I need to be able to alter both text and numbers. I would like to be able to click on a button and change its assigned text/number by typing in it. But I'm not sure how to do that in MaxGUI, so instead I have been grabbing and assigning text from Textfields, like this:

If TextFieldText$(skrivNAVN)<>"" Then Navn$(ELag)=TextFieldText$(skrivNAVN)

It kinda works, but not if I want to change an Int. Any suggestions?


jsp(Posted 2007) [#2]
Not really sure how your gui should look like, but to change Int numbers you could use stepper or slider (range of numbers).
When using a textfield for any random number input you should have a look for the textfield filter function, which can allow or deny what ever you need in a textfield (e.g. only numbers allowed).