ideas for textbox control

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

ideas for textbox control

Post 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 2061 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 2061 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 2061 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 2061 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 2061 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 2061 times
Thus serious

Code: Select all

 Form_1.TextBox_1.Setfocus (nCaretpos, nTo) 
thus would select a portion of text within the TEXTBOX
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: ideas for textbox control

Post by Rathinagiri »

Have you used autofill option of hfcl? It has the same feature.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply