ForceDoneButton problem

Andris

Active Member
Licensed User
Longtime User
The ForceDoneButton property of an EditText view works as it should when the EditText view stands alone (ie not part of a panel). In other words, setting ForceDoneButton=True makes the virtual keyboard include the "Done" button.

However, when trying to set ForceDoneButton when EditView is placed on a panel, and the panel is part of a custom dialog, it doesn't work. Setting it True does not force a Done button on the keyboard.

Here is my code:

Dim dlgCommEdit As CustomDialog2
Dim pnlComm As Panel
pnlComm.Initialize("pnlComm")
Dim txtComm As EditText
txtComm.Initialize("txtComm")
txtComm.Hint="Enter comment text ..."
txtComm.HintColor=Colors.LightGray
txtComm.InputType=txtComm.INPUT_TYPE_TEXT
txtComm.SingleLine=False
txtComm.Wrap=True
txtComm.Gravity=Gravity.TOP
txtComm.ForceDoneButton=True 'XXXX NO EFFECT! XXX

pnlComm.AddView(txtComm,10dip,60dip,235dip,100dip)
dlgCommEdit.AddView(pnlComm, 80%x, 30%y)

***********************

Am I doing something wrong here? Or is this a bug?

Thanks ...
 
Top