is box mandotary in SCROLLMSG class?

is box mandotary in SCROLLMSG class?

Postby Horizon » Tue Jul 18, 2023 10:54 am

Hi,

is box mandotary in SCROLLMSG class?

Thanks.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: is box mandotary in SCROLLMSG class?

Postby Antonio Linares » Tue Jul 18, 2023 10:58 am

Dear Hakan,

Can you provide a small example ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: is box mandotary in SCROLLMSG class?

Postby nageswaragunupudi » Tue Jul 18, 2023 11:03 am

Right now, box is always painted.
Do you want it without border (box) ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: is box mandotary in SCROLLMSG class?

Postby Horizon » Tue Jul 18, 2023 11:10 am

nageswaragunupudi wrote:Right now, box is always painted.
Do you want it without border (box) ?


Yes, Mr. Rao, I want it without border. Can it be optional?
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: is box mandotary in SCROLLMSG class?

Postby nageswaragunupudi » Tue Jul 18, 2023 5:54 pm

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
Code: Select all  Expand view
//   ::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: is box mandotary in SCROLLMSG class?

Postby Horizon » Tue Jul 18, 2023 6:36 pm

nageswaragunupudi wrote:
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
Code: Select all  Expand view
//   ::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )
 


Thank you Mr. Rao,

I have changed like below.
Code: Select all  Expand view
DATA lNoBorder              INIT .F.

Code: Select all  Expand view
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.

Code: Select all  Expand view
  ::lVertical := !lHoriz
   ::lNoBorder           := lNoBorder

Code: Select all  Expand view
     if !::lNoBorder
     ::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )
   endif

Code: Select all  Expand view
#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.>] )
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: is box mandotary in SCROLLMSG class?

Postby nageswaragunupudi » Tue Jul 18, 2023 7:37 pm

Good
Our implementation is slightly different, but on the same lines.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 58 guests