home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!ukma!wupost!zaphod.mps.ohio-state.edu!usc!rpi!newsserver.pixel.kodak.com!morss
- From: morss@eksignal.kodak.com (Charlie Morss)
- Subject: single character text fields w/ panel notify level
- Message-ID: <1992Nov13.161537.3618@pixel.kodak.com>
- Sender: morss@eksignal.kodak.com
- Organization: Eastman Kodak
- Date: Fri, 13 Nov 92 16:15:37 GMT
- Lines: 41
-
- A few questions from a friend of mine (who doesn't have
- News access) came up. I can't figure them out so maybe
- someone can give us a hand.
-
- Question #1
-
- Using devguide 3.0.
-
- " I'm trying to create an application with a lot of single
- character text fields and need to auto-tab to the next field
- when a key is hit. "
-
- "I set up a single char text field w/ a connection to itself with
- 'when' set to notify. I have an xv_set(window,PANEL_NOTIFY_LEVEL,
- PANEL_ALL,NULL) in the main, so my callback triggers on each
- character. In the callback I want the spacebar to move to the
- next field so I use:
-
- if (event_is_down(event) && event_id(event) == 32)
- return PANEL_NEXT;
-
- "It does move the cursor but I get an annoying beep. Why?"
-
-
-
- Question #2
-
- "If you set up a text field w/ a connection to itself and 'when'
- set to any event, anytime you reposition the caret using the mouse,
- it leaves a 'ghost' caret behind. Any ideas? (The code output by
- devguide was not modifed at all)."
-
- Anyone have a fix or a better method of moving the caret to a
- specific text item when a key is hit?
-
-
- --
- -----------------------------------------------------------------
- Charlie Morss Voice: (716) 726-5461
- morss@eksignal.kodak.com Fax: (716) 726-4850
- -----------------------------------------------------------------
-