Page 1 of 1

ideas for textbox control

Posted: Thu May 16, 2013 8:06 pm
by danielmaximiliano
Hola a todos:
para el control TEXTBOX tenemos los Metodos SETFOCUS y la propiedad CARETPOS, el primero ubica el foco en dicho control si este control tiene datos los mismo son pintados y si en ese momento escribimos este contenido es reemplazado con el dato introducido (sobreescritura).
SETFOCUS.png
SETFOCUS.png (9.03 KiB) Viewed 2398 times
el propiedad ubica la posicion del cursor dentro de dicho control si introducimos un dato este se hara en la posicion indicada.
caretpos.png
caretpos.png (11.04 KiB) Viewed 2398 times
seria muy bueno que setfocus pueda partir desde CARETPOS hasta el final del TEXTBOX o los datos que tenga introducidos o pueda especificarse cuantos.
caretpos2.png
caretpos2.png (11.77 KiB) Viewed 2398 times
seria de este modo

Code: Select all

Form_1.TextBox_1.Setfocus( nCaretpos, nTo ) 
de esta forma seleccionariamos una porcion de texto dentro del TEXTBOX

Translate Google

Hello everyone:
for TEXTBOX have control and ownership SETFOCUS Methods caretPos, the first places the focus on this control if the control has the same data are painted and if at the time we wrote this content is replaced with the data entered (overwriting).
SETFOCUS.png
SETFOCUS.png (9.03 KiB) Viewed 2398 times
the property located the position of the cursor within that introduce a data control if this will be done in the right position.
caretpos.png
caretpos.png (11.04 KiB) Viewed 2398 times
would be very good to setfocus start from caretPos to the end of TEXTBOX or data that has entered or may specify how many.
caretpos2.png
caretpos2.png (11.77 KiB) Viewed 2398 times
Thus serious

Code: Select all

 Form_1.TextBox_1.Setfocus (nCaretpos, nTo) 
thus would select a portion of text within the TEXTBOX

Re: ideas for textbox control

Posted: Thu May 16, 2013 9:00 pm
by Rathinagiri
Have you used autofill option of hfcl? It has the same feature.