Another VEL question.

new topic     » topic index » view thread      » older message » newer message

------=_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  pleased





------=_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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'd set up the updown&nbsp;button and =
edit as=20
</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;&nbsp;&nbsp; {MAX,=20
100},<BR>&nbsp;&nbsp;&nbsp; {MIN,1},<BR>&nbsp;&nbsp;&nbsp;=20
{INCREMENT,1},<BR>&nbsp;&nbsp;&nbsp; {ARROWKEYS,=20
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>RaceEdit1 =3D =
CreateControl(EDIT,RaceForm)<BR>s =3D {=20
{TEXT, race[&nbsp;&nbsp; GetAttribute(RaceUpDown1, =
POSITION)&nbsp;]&nbsp;=20
},<BR>&nbsp;&nbsp;&nbsp; {TOP, 20},<BR>&nbsp;&nbsp;&nbsp; {LEFT,=20
250},<BR>&nbsp;&nbsp;&nbsp; {HEIGHT,10},<BR>&nbsp;&nbsp;&nbsp;=20
{WIDTH,150},<BR>&nbsp;&nbsp;&nbsp; {MAXLENGTH, =
20},<BR>&nbsp;&nbsp;&nbsp;=20
{TABORDER, 1},<BR>&nbsp;&nbsp;&nbsp; {TABSTOP, =
TRUE},<BR>&nbsp;&nbsp;&nbsp;=20
{HINT, "Write the name of your race here."},<BR>&nbsp;&nbsp;&nbsp; =
{SHOWHINT,=20
TRUE}}<BR>&nbsp;&nbsp;&nbsp; SetAttribute(RaceEdit1,s)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</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>&nbsp;</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  pleased</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>

------=_NextPart_000_001E_01BF1FE3.771279C0--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu