🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #31556

Problem with GEM dialog

#31556
From: Stephen Jacobs
Date: Tue, 29 Mar 1988 03:36
18 lines
1658 bytes
I'm experiencing a rather disconcerting problem with a dialog box I'm
trying to manage.  The configuration is: 1040 ST, color monitor, Mark Williams
C v2.1.7, K-Resource.  The problem is that the dialog contains some 3-digit
numeric editable fields--I sprintf() numbers into char[4] variables, then set
the appropriate te_ptext pointers to the unsubscripted names: at first it seems
to work fine.  The numbers in the editable fields when the form is first 
displayed are the correct initial values; if I select one with the mouse and
hit <ESC>, the field is cleared.  However, if I select one with the mouse and
backspace over it, the rightmost digit is not erased--the other two digits are!
Furthermore, once I have the cursor at the beginning of the field, when I type
numbers into it, the first number typed just moves the cursor; the second 
number typed echoes the first, the third echoes the second.  After sscanf()-
ing the strings after return from the form, then redisplaying the form, the
values shown are appropriate to what was actually typed in, not to the odd
stuff that was shown in the form.  Can anyone tell me what's happening, and
what to do about it?  I've done similar things before, but with longer strings.
For reference, the validation characters for the field are XXX
 
Technical Details
Message-ID: <4238@chinet.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pacbell!att-ih!chinet!saj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pacbell!att-ih!chinet!saj
From: saj@chinet.UUCP (Stephen Jacobs)
Newsgroups: comp.sys.atari.st
Subject: Problem with GEM dialog
Message-ID: <4238@chinet.UUCP>
Date: 29 Mar 88 03:36:45 GMT
Organization: Chinet - Chicago Public Access UNIX
Lines: 17
Keywords: form_do TEDINFO G_FBOXTEXT