UltraTextEditor Multiline

Posted by Admin on 20-Sep-2010 06:16

Hi,

I've this Method in the KeyUp of Form to simulate tab in all infragistics:

IF Progress.Util.EnumHelper:AreEqual(e:KeyCode, System.Windows.Forms.Keys:Enter) THEN

DO:

e:Handled = TRUE.

ProcessTabKey(Progress.Util.EnumHelper:AreNotEqual(e:KeyCode,System.Windows.Form.Keys:Shift)).

END.

My problem is in the ultratexteditor with property multiline = YES , that when you press the button "enter" it goes to the next field, when what we should do is lower the line to keep writing~

All Replies

Posted by Admin on 22-Sep-2010 09:50

I've solved by putting this code:

DEFINE VARIABLE v-tb AS Infragistics.Win.EmbeddableTextBoxWithUIPermissions NO-UNDO.
v-tb = CAST(THIS-OBJECT:ActiveControl,  Infragistics.Win.EmbeddableTextBoxWithUIPermissions ) NO-ERROR.
    IF  Progress.Util.EnumHelper:AreEqual(e:KeyCode, System.Windows.Forms.Keys:Enter) THEN
    DO
        IF VALID-OBJECT(v-tb) AND v-tb:Multiline THEN RETURN.
           
        e:Handled = TRUE.
        ProcessTabKey(Progress.Util.EnumHelper:AreNotEqual(e:KeyCode, System.Windows.Forms.Keys:Shift)).
    END.

This thread is closed