Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upgrading to version 5
Message
From
13/04/1998 09:52:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/04/1998 14:40:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00089983
Message ID:
00091504
Views:
50
>>>How about RETURN 1 to move to the next object and RETURN -1 to move to the previous object?
>>
>>Never heard of this. I'm really weak on OOP, but controls are objects, right? So this would move the focus from one control to the next in tab order?
>
>Yup. It really isn't an OOP thing though. It works in Fox 2.x. You can do something like RETURN -4 to move back 4 objects or RETURN 6 to move forward 6 objects.

Sometimes it just doesn't behave as you'd expect it - it takes every radio button as a separate object for one... oops, it's a no-no word... Ahem, it takes every option button as a separate object (which it is) but doesn't take the optiongroup object (because it has no tab index) etc. Still, there's a nice way out of this for radio... you know. In optiongroup's valid it's simply

if going_up
return -this.value
else
return this.buttoncount-this.value+1
endif

The +1 at the end seems mandatory to me, but it misbehaves - it skips one object more than I wanted it to. Anyone know why?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform