FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse with WaterMark
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
xBrowse with WaterMark
Posted: Thu Dec 21, 2017 07:20 PM

Hi,

Is it possible to put a picture background of xbrowse like watermark?

Thanks,

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xBrowse with WaterMark
Posted: Thu Dec 21, 2017 08:44 PM
Horizon,

Use the same background-color for the image like for the browser
With the image-size ( free space around the watermark )
You can adjust the space between the watermarks inside the browser.

DEFINE BRUSH oBrush FILENAME "Logo.bmp"
oBrw:SetBackGround( oBrush )
oBrush:End()
oBrw:Refresh()






regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: xBrowse with WaterMark
Posted: Fri Dec 22, 2017 06:49 PM
Thank you very much Uwe.

It works.

But I have a problems with brush.

Code (fw): Select all Collapse
    ::oBrw:nMarqueeStyle := 6  // For MultiSelect
    ::oBrw:lRecordSelector := .f.
    ::oBrw:lHScroll        := .F.
    
    ::oBrw:bClrSelFocus = { || { 16777215, 15512898 } } 
    ::oBrw:bClrSel = { || { 16777215, 15512898 } }  
    ::oBrw:lKinetic := .F.


1. The up/down navigation is slower than before brush in xbrowse. Is it normal?
2. The shape of selection bar is different like below. (Upper brw is without brush, Lower is with.)

http://www.objekt.com.tr/fwh_test/wmark1.jpeg
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse with WaterMark
Posted: Sat Dec 23, 2017 01:08 AM

1. The up/down navigation is slower than before brush in xbrowse. Is it normal?

Yes. Not only up/down but left/right navigation also.
Using brushes is suitable for small browses with fast datasources like arrays, recordsets, etc and small local dbfs
Programmer needs to decide the suitability when to use brushes.

2. The shape of selection bar is different like below. (Upper brw is without brush, Lower is with.)

We will look into this.
Looks normal when only a cell is highligted.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse with WaterMark
Posted: Sun Dec 24, 2017 03:17 AM

2. The shape of selection bar is different like below. (Upper brw is without brush, Lower is with.)


This is fixed in FWH 17.12.
Thanks for pointing out the issue.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: xBrowse with WaterMark
Posted: Sun Dec 24, 2017 10:00 AM
nageswaragunupudi wrote:

2. The shape of selection bar is different like below. (Upper brw is without brush, Lower is with.)


This is fixed in FWH 17.12.
Thanks for pointing out the issue.


Thanks again.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: xBrowse with WaterMark
Posted: Mon Dec 25, 2017 06:03 AM

Hi Mr. Rao,

Can you share the solution here if it is simple?

Thanks.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse with WaterMark
Posted: Mon Dec 25, 2017 06:07 AM
xbrowse.prg ( 17.11 ) line 12428 in method PaintCellBack(....)

replace line 12428
Code (fw): Select all Collapse
         if ::oBrw:lTransparent


with
Code (fw): Select all Collapse
         if ::oBrw:lTransparent .and. ::oBrw:nMarqueeStyle < MARQSTYLE_HIGHLROWRC
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion