Page 1 of 1
Which control for edit
Posted: Mon Apr 18, 2016 11:32 pm
by franco
Hi to all, it`s been awhile.
which control would be best for memoedit. the rest works ok.
procedure message
local memfile, mem_var
memfile := 'message.mem'
if file(memfile)
mem_var =HB_MEMOREAD(memfile)
(HERE i NEED A FIXED LENGTH EDITBOX * mem_var = MEMOEDIT(mem_var,15,2,17,69,.F.))
mem_var = (mem_var,69,5) // 69 CHARACTERS 5 LINES ONLY
hb_memowrit(memfile,mem_var)
endif
return
Re: Which control for edit
Posted: Tue Apr 19, 2016 1:29 am
by andyglezl
HERE i NEED A FIXED LENGTH EDITBOX
Hola Franco
Ya trataste con el EDITBOX ?
---------------------------------------
Hello Franco.
Already you tried with EDITBOX control ?
Code: Select all
@ <nRow> ,<nCol>
EDITBOX<ControlName>
WIDTH <nWidth> // maybe 150 ?
HEIGHT <nHeight>
VALUE <cValue> // "mem_var"
FONT <cFontName> // "Consolas"
SIZE <nFontSize> // 12 ?
MAXLENGTH <nInputLength> // 69
Re: Which control for edit
Posted: Tue Apr 19, 2016 4:10 pm
by franco
Thanks for the quick response.
maxlenth does not work for me
I should have said a fixed ***LINE*** length and word wrap.
is there a word processor type control I could use, so when editing or typing so it does not go out of the end of the control box and has no scroll bars.
Franco
Re: Which control for edit
Posted: Tue Apr 19, 2016 5:41 pm
by Carlos Britos
Hi
try setting maxlength + noscrollbars + correct fontsize and width / heigth of the editbox control.
Re: Which control for edit
Posted: Wed Apr 20, 2016 7:11 pm
by franco
now working thanks to all. editbox was the right control
@ 30,10 EDITBOX Edit_1 ;
WIDTH 520 ;
HEIGHT 140 ;
VALUE memvar ;
MAXLENGTH 255 ;
ON LOSTFOCUS memvar := form_1.edit_1. value ;
nohscroll
Happy hmging ... Franco