[Gambas-user] Problem with DataControl

Benoît Minisini g4mba5 at gmail.com
Thu Dec 21 19:58:03 CET 2017


Le 21/12/2017 à 19:42, T Lee Davidson a écrit :
> Well I've determined the cause of the different behavior, but I don't know how to correct it.
> 
> The DataControls, both named Kommentar, on FMain and FMLadelogg do behave differently because their respective underlying text
> controls are different.
> 
> Inserting "Debug Kommentar.Control" into the Form.Open Subs of each form yields:
> FMain.Form_Open.9: (TextArea 0xe31448)
> FMLadelogg.Form_Open.15: (TextBox 0x105ce08)
> 
> And as we know, TextArea is a multi-line control, and TextBox is single-line.
> 
> Now according to the Wiki, DataControl.Control is read-only precluding programmatic control of the underlying text editing control.
> 
> Apparently, that is decided by the interpreter/compiler. And perhaps the difference is because FMLadelogg form is opened as
> Modal and FMain would not be.
> 
> Someone else, perhaps Benoît, will need to clarify that.
> 
> 

TextArea is used when the underlying database field has no limit. 
Otherwise a TextBox is used.

-- 
Benoît Minisini


More information about the User mailing list