Which control for edit

Moderator: Rathinagiri

Post Reply
franco
Posts: 818
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Which control for edit

Post 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
All The Best,
Franco
Canada
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Which control for edit

Post 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      
Andrés González López
Desde Guadalajara, Jalisco. México.
franco
Posts: 818
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Which control for edit

Post 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
All The Best,
Franco
Canada
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Which control for edit

Post by Carlos Britos »

Hi
try setting maxlength + noscrollbars + correct fontsize and width / heigth of the editbox control.
Regards/Saludos, Carlos (bcd12a)
franco
Posts: 818
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Which control for edit

Post 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
All The Best,
Franco
Canada
Post Reply