Another VEL question.
- Posted by Naflign <naflign at MEDIAONE.NET> Oct 26, 1999
- 586 views
------=_NextPart_000_001E_01BF1FE3.771279C0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've got a quick question for anyone who's had any experience with VEL. = I'm working on the editor for race creation in a little rpg I'm working = on, and what I'd hoped to do was have an updown button, which when = pushed up or down would display the next race in the race string. So, = the string being loaded as race, and the value = I'd set up the updown button and edit as=20 RaceUpDown1 =3D CreateControl(UPDOWNBUTTON,RaceForm) s =3D { {ASSOCIATE,RaceNumberEdit}, {MAX, 100}, {MIN,1}, {INCREMENT,1}, {ARROWKEYS, TRUE}} SetAttribute(RaceUpDown1,s) RaceEdit1 =3D CreateControl(EDIT,RaceForm) s =3D { {TEXT, race[ GetAttribute(RaceUpDown1, POSITION) ] }, {TOP, 20}, {LEFT, 250}, {HEIGHT,10}, {WIDTH,150}, {MAXLENGTH, 20}, {TABORDER, 1}, {TABSTOP, TRUE}, {HINT, "Write the name of your race here."}, {SHOWHINT, TRUE}} SetAttribute(RaceEdit1,s) The button though, is allways reading as being 0. Am I phrasing this = incorectly? Thanks in advance for any help, for anyone able to make some sence of my = sleepy ramblings ------=_NextPart_000_001E_01BF1FE3.771279C0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>I've got a quick question for anyone = who's had any=20 experience with VEL. I'm working on the editor for race creation in a = little rpg=20 I'm working on, and what I'd hoped to do was have an updown button, = which when=20 pushed up or down would display the next race in the race string. So, = the string=20 being loaded as race, and the value=20 NT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I'd set up the updown button and = edit as=20 </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>RaceUpDown1 =3D=20 CreateControl(UPDOWNBUTTON,RaceForm)<BR>s =3D {=20 {ASSOCIATE,RaceNumberEdit},</FONT></DIV> <DIV><FONT face=3DArial size=3D2> {MAX,=20 100},<BR> {MIN,1},<BR> =20 {INCREMENT,1},<BR> {ARROWKEYS,=20 <DIV> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>RaceEdit1 =3D = CreateControl(EDIT,RaceForm)<BR>s =3D {=20 {TEXT, race[ GetAttribute(RaceUpDown1, = POSITION) ] =20 },<BR> {TOP, 20},<BR> {LEFT,=20 250},<BR> {HEIGHT,10},<BR> =20 {WIDTH,150},<BR> {MAXLENGTH, = 20},<BR> =20 {TABORDER, 1},<BR> {TABSTOP, = TRUE},<BR> =20 {HINT, "Write the name of your race here."},<BR> = {SHOWHINT,=20 TRUE}}<BR> SetAttribute(RaceEdit1,s)</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>The button though, is allways reading = as being 0.=20 Am I phrasing this incorectly?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in advance for any help, for = anyone able to=20 make some sence of my sleepy ramblings </FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> ------=_NextPart_000_001E_01BF1FE3.771279C0--