xBrowse with WaterMark

xBrowse with WaterMark

Postby Horizon » Thu Dec 21, 2017 7:20 pm

Hi,

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

Thanks,
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: xBrowse with WaterMark

Postby ukoenig » Thu Dec 21, 2017 8: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()


Image

Image

regards
Uwe :D
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse with WaterMark

Postby Horizon » Fri Dec 22, 2017 6:49 pm

Thank you very much Uwe.

It works.

But I have a problems with brush.

Code: Select all  Expand view
    ::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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: xBrowse with WaterMark

Postby nageswaragunupudi » Sat Dec 23, 2017 1: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
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse with WaterMark

Postby nageswaragunupudi » Sun Dec 24, 2017 3: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
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse with WaterMark

Postby Horizon » 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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: xBrowse with WaterMark

Postby Horizon » Mon Dec 25, 2017 6:03 am

Hi Mr. Rao,

Can you share the solution here if it is simple?

Thanks.
Regards,

Hakan ONEMLI

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

Re: xBrowse with WaterMark

Postby nageswaragunupudi » Mon Dec 25, 2017 6:07 am

xbrowse.prg ( 17.11 ) line 12428 in method PaintCellBack(....)

replace line 12428
Code: Select all  Expand view
        if ::oBrw:lTransparent
 


with
Code: Select all  Expand view
        if ::oBrw:lTransparent .and. ::oBrw:nMarqueeStyle < MARQSTYLE_HIGHLROWRC
 
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests