FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Frame around the cell
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Frame around the cell

Posted: Thu Oct 27, 2016 07:17 AM

If xBrowse the cursor is positioned in a frame around the cell,
::nMarqueeStyle := MARQSTYLE_SOLIDCELL
it is possible to change the color and thickness of this frame ?

FWH 16.04

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Frame around the cell

Posted: Thu Oct 27, 2016 07:38 PM

oBrw:nColorBox := <nYourColor>

or

oBrw:nColorBox := hPen

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: Frame around the cell

Posted: Thu Oct 27, 2016 07:56 PM

Thank, Mr. Rao !

And the thickness of the frame lines can be changed ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Frame around the cell

Posted: Fri Oct 28, 2016 12:41 AM

Define a pen with the thickness, type and color you want and then assign
oBrw:nColorBox := hPen

You need to release the pen object yourself after closing the browse.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: Frame around the cell

Posted: Sun Mar 05, 2017 09:14 AM

I use xbrowse with the cursor in the form of borders around the cell
hPenCreate(1,4, CLR_RED)
oBrw:nMarqueeStyle := MARQSTYLE_SOLIDCELL
oBrw:nColorBox:=hPen

Everything works fine

But if xBrowse flipping up and down arrows or mousewheel, the grid is painted in the color of the frame (In this case, red). If you click on any row xBowsa everything becomes normal

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Frame around the cell

Posted: Sun Mar 05, 2017 09:31 AM

Please add this setting

oBrw:lTransparent := .t.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: Frame around the cell

Posted: Sun Mar 05, 2017 09:49 AM

Yes, the effect of the staining grid disappears, but then xBrowse will take the color of the window on which it is located

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Frame around the cell

Posted: Sun Mar 05, 2017 09:52 AM
Natter wrote:Yes, the effect of the staining grid disappears, but then xBrowse will take the color of the window on which it is located

For now, can you make the window background color and xbrowse background color the same?
That is normally the case.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Frame around the cell

Posted: Sun Mar 05, 2017 10:01 AM
Please make this modification to xbrowse.prg

1) Add a new DATA
Code (fw): Select all Collapse
DATA lFullPaint INIT .f.


2) Locate this method:
Code (fw): Select all Collapse
   METHOD FullPaint() INLINE ( ::lTransparent .or. ::lMergeVert .or. ;
                               ::nMarqueeStyle == MARQSTYLE_HIGHLWIN7 )

Modiy this method as:
Code (fw): Select all Collapse
   METHOD FullPaint() INLINE ( ::lTransparent .or. ::lMergeVert .or. ::lFullPaint .or. ;
                               ::nMarqueeStyle == MARQSTYLE_HIGHLWIN7 )


Now, in your program instead of setting oBrw:lTransparent := .t., SET oBrw:lFullPaint := .t.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: Frame around the cell

Posted: Sun Mar 05, 2017 11:29 AM

Thank You, Mr.Rao ! Everything works well

Continue the discussion