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
Which control for edit
Moderator: Rathinagiri
Which control for edit
All The Best,
Franco
Canada
Franco
Canada
Re: Which control for edit
Hola FrancoHERE i NEED A FIXED LENGTH EDITBOX
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
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
Re: Which control for edit
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
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
All The Best,
Franco
Canada
Franco
Canada
-
- Posts: 245
- Joined: Sat Aug 02, 2008 5:03 pm
Re: Which control for edit
Hi
try setting maxlength + noscrollbars + correct fontsize and width / heigth of the editbox control.
try setting maxlength + noscrollbars + correct fontsize and width / heigth of the editbox control.
Regards/Saludos, Carlos (bcd12a)
Re: Which control for edit
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
@ 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
All The Best,
Franco
Canada
Franco
Canada