Hello Itamar,
i extracted the sample code from the tutorial and
modified it. With commit r3532
i added this code with hbp file into the test directory.
Please check the code.
The comment lines added:
Description:
The "CLIPPER" term in INIT DIALOG switches to the original
Clipper behavior. The ENTER KEY moves to the next input field.
If the last field in the tab is reached, the dialog closes.
"CLIPPER NOEXIT": At the last field ENTER does not leave the dialog,
staying here.
Reason: EDITBOX is an HWGUI extension for multi line editing.
So ENTER means LINE FEED.
The CLIPPER term has only effect on GET fields.
On LINUX/GTK the behavior is a little different:
It reacts like NOEXIT forever and at last field the following
GTK message apeared:
ticket188:5546): Gtk-CRITICAL **: 13:14:41.213: IA__gtk_widget_event:
assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
Also ESC does not close the dialog.
In Project CLLOG in editmask.prg,
there is a solution to handle the ESC key for ending dialog.
Also you can check for data modifications and ask the user,
if modified data should be saved or dismissed.
Please use only GET commands.
Otherwise, non compatible modifications of EDITBOX are necessary,
they may be incompatible with the old version.
Additional advice:
For editing memo fields, use only the HCEDIT class
for best results.
If this is OK for you,
please respond, if the ticket can be closed.
With regards,
MNI TNX, 73 es 55 de
DF7BE, Wilfried
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Itamar,
i extracted the sample code from the tutorial and
modified it. With commit r3532
i added this code with hbp file into the test directory.
Please check the code.
The comment lines added:
Description:
The "CLIPPER" term in INIT DIALOG switches to the original
Clipper behavior. The ENTER KEY moves to the next input field.
If the last field in the tab is reached, the dialog closes.
"CLIPPER NOEXIT": At the last field ENTER does not leave the dialog,
staying here.
Reason: EDITBOX is an HWGUI extension for multi line editing.
So ENTER means LINE FEED.
The CLIPPER term has only effect on GET fields.
On LINUX/GTK the behavior is a little different:
It reacts like NOEXIT forever and at last field the following
GTK message apeared:
ticket188:5546): Gtk-CRITICAL **: 13:14:41.213: IA__gtk_widget_event:
assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
Also ESC does not close the dialog.
In Project CLLOG in editmask.prg,
there is a solution to handle the ESC key for ending dialog.
Also you can check for data modifications and ask the user,
if modified data should be saved or dismissed.
Please use only GET commands.
Otherwise, non compatible modifications of EDITBOX are necessary,
they may be incompatible with the old version.
Additional advice:
For editing memo fields, use only the HCEDIT class
for best results.
If this is OK for you,
please respond, if the ticket can be closed.
With regards,
MNI TNX, 73 es 55 de
DF7BE, Wilfried