[comp.sys.mac.programmer] LSC cdev, weird EditText behaviour

moyman@ecn.purdue.edu (01/19/91)

This is really weird, I have several EditText items in a cdev. Everything seems
to be working fine except the cursor will not "insert" (from the mouse...to
edit the item) itself before or after the first character and before the second
character of whatever text is inside the box. I can insert after the second
character only. It does not make sense. Anybody have an idea of what is wrong. 

One other problem I have is saving what is in those EdityText items when the
cdev is closed. Currently I have a "Save Settings" button that saves everything
(that works fine). What I want is for everything to be saved when the cdev is
closed. It seems that the cdev dialog pointer is gone when it gets to my close
routine. should I be listening for something other than a close message to save
settings?? I don't think it's the code since it works fine when it is executed
from a "button". It just doesn't work from inside my close routine.

void
myCDEV::Close()
{
...etc...my code to read my EditTest items...
}

I am using the LSC OOP.

Mike Moya
Engineering Computer Network
Purdue University