T.R | Title | User | Personal Name | Date | Lines |
---|
98.1 | | SX4GTO::HOLT | Knight of the Iguana | Tue Oct 03 1989 20:16 | 3 |
|
If anyone can anwer .0's request, I'd appreciate it.
|
98.2 | a solution | KOBAL::SCAER | | Wed Oct 04 1989 19:03 | 11 |
|
To make a <CR> terminate input for a text widget, you can
override the <CR> translation for the widget. In the
action that is called when the user hits <CR> you can
do whatever is needed to terminate input -- replace the
text widget with a label, set DwtNeditable to FALSE, unmanage
it, etc.
See note 369.1 in CLT::UIL-DRM for information on how to
override the <CR> translation for the text widget.
|
98.3 | Dialog box defaults this nicely | SDSVAX::SWEENEY | I was focused when focus wasnt cool | Thu Oct 05 1989 08:31 | 8 |
| If the dialog box which contains the text widget has a default [OK]
button then the default translation for <return> will call the activate
callback for that button, which is a convenient point for the the
application to read the text widget.
Many applications (although I can't recall which ones) appear to do
this.
|
98.4 | How? | FEATHR::BLUEJAY | War is hell - but THIS is rediculous! | Thu Oct 05 1989 13:30 | 7 |
| um... how do you create a "default [OK] button"? Is there an
attribute of a dialog box I've missed?
I've been pondering this very thing.
- Bluejay Adametz
|
98.5 | Here's how | SDSVAX::SWEENEY | I was focused when focus wasnt cool | Thu Oct 05 1989 13:53 | 3 |
| In my documentation under Low-Level Widget Routines/Dialog Box Popup
Create/default_button.
|
98.6 | | FEATHR::BLUEJAY | War is hell - but THIS is rediculous! | Thu Oct 05 1989 14:51 | 2 |
| Yup - I missed it all right. Thanks...
|