check boxes 
Author Message
 check boxes

As I enter data into field and hit return, two things accur to me.  First,
when I hit enter at a check box, the system checks the box.  I'd like to
disable that.  Second, if I am hitting return, I don't want to GO to the check
box.  Turning 'tab stop' off does not accomplish this.  What method should I
use?



Sun, 10 Oct 1999 03:00:00 GMT
 check boxes

Quote:

> As I enter data into field and hit return, two things accur to me.  First,
> when I hit enter at a check box, the system checks the box.  I'd like to
> disable that.  

Put the following code in the keyPhysical method of the check box field.

        if eventInfo.vCharCode = VK_RETURN then
          sTemp = self.value
          doDefault
          self.value = sTemp
        endIf

This will reset the value after hitting return but will keep all the
other default action of hitting return.  If you just want to disable
return completely, use the following code instead.

        if eventInfo.vCharCode = VK_RETURN then
          disableDefault
        endIf

Quote:
> Second, if I am hitting return, I don't want to GO to the check
> box.  Turning 'tab stop' off does not accomplish this.  What method should I
> use?

I'm not really clear on what you mean.  Where are you hitting return
when it goes to the check box?  Where did you turn off the tab stop?

If you turn off the tab stop on the check box field, you shouldn't be
able to go there by hitting return on another field.

--
                                Grendal

"Fingers on harp strings, hero-swords, the acts,
the eyes of queens.  By this I kill you." - Beowulf


My employer: http://www.hrplus.com



Sun, 10 Oct 1999 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. inserting a check box/combo box in a

2. Checking check box status

3. counting 'checked' check boxes

4. Check Boxes and Server Filter by Form

5. -1 value for check box

6. Access Check Box values and Mail Merge

7. ODBC Failover check box grayed out

8. Multiple check boxes...

9. Bit Value and Access Check Box

10. SSTab / Check Box

11. Check Box in DBGrid?

12. Updating check boxes from db


 
Powered by phpBB® Forum Software