Hi,
is box mandotary in SCROLLMSG class?
Thanks.
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hi,
is box mandotary in SCROLLMSG class?
Thanks.
Dear Hakan,
Can you provide a small example ?
Right now, box is always painted.
Do you want it without border (box) ?
nageswaragunupudi wrote:Right now, box is always painted.Yes, Mr. Rao, I want it without border. Can it be optional?
Do you want it without border (box) ?
Can it be optional?Yes. We made this optional from the next version.
// ::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )nageswaragunupudi wrote:Thank you Mr. Rao,Can it be optional?Yes. We made this optional from the next version.
If you want to remove the box right now in your application, you need to modify the
fwh\source\classes\scrolmsg.prg:
Comment out line 115// ::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )
DATA lNoBorder INIT .F.METHOD New( nRow, nCol, nWidth, nHeight, cText, oWnd, oFont, ;
nSpeed, nClrText, nClrBack, lHoriz, lPixels, lDesign, cVarName, lNoBorder ) CLASS TScrollMsg
DEFAULT nRow := 0, nCol := 0, nWidth := 100, ;
nHeight := If( oFont != nil, Abs( oFont:nHeight ), SAY_CHARPIX_H ),;
nSpeed := 2, nClrText := CLR_BLACK, nClrBack := CLR_WHITE, ;
cText := "", lHoriz := .f., lPixels := .t., lDesign := .f., lNoBorder := .F. ::lVertical := !lHoriz
::lNoBorder := lNoBorder if !::lNoBorder
::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )
endif#xcommand @ <nRow>, <nCol> SCROLLMSG [ <oMsg> <label: PROMPT,VAR,TEXT> ] <cText> ;
[ <dlg: OF,WINDOW,DIALOG > <oWnd> ] ;
[ FONT <oFont> ] ;
[ <lPixel: PIXEL, PIXELS > ] ;
[ <color: COLOR,COLORS > <nClrText> [,<nClrBack> ] ] ;
[ SIZE <nWidth>, <nHeight> ] ;
[ SPEED <nSpeed> ] ;
[ <lHoriz: HORIZONTAL> ] ;
[ <design: DESIGN > ] ;
[ <lNoBorder: NOBORDER > ] ;
=> ;
[ <oMsg> := ] TScrollMsg():New( <nRow>, <nCol>, [<nWidth>], [<nHeight>], <cText>,;
[<oWnd>], [<oFont>], [<nSpeed>], ;
[<nClrText>], [<nClrBack>], <.lHoriz.>, <.lPixel.>, ;
<.design.>, [<(oMsg)>], [<.lNoBorder.>] )Good
Our implementation is slightly different, but on the same lines.