Page 1 of 1

Problem Xbrowser Border

Posted: Thu Mar 02, 2023 12:58 pm
by Silvio.Falconi
I modify the sample XBRWIN7C.prg
and I add some line to draw the border of the xbrowse

Code: Select all | Expand

 oBrw:lDrawBorder := .t.
      oBrw:nClrBorder := CLR_BLACK
      oBrw:lHScroll:=.f.
but i have this xbrowse

Image

I not see the border after the vertical scroll , why ?

Re: Problem Xbrowser Border

Posted: Fri Mar 03, 2023 10:04 am
by Silvio.Falconi
this morning I saw a Uwe post

https://forums.fivetechsupport.com/view ... wse+border


and I resolved with

oDlg:bPainted := < |hDC|
DRAWBORDER( hDC, oBrw:nLeft-2, oBrw:ntop-2,;
oBrw:nWidth+2, oBrw:nHeight+62 , 0, 1, Rgb(195,195,185), .t. )
RETURN NIL
>

why do we have to resort to these tricks , while the xbrowse class should draw the border even after the vertical scroll ?
oldest xbrowse made the border after the Vscroll, What is changed ?

Re: Problem Xbrowser Border

Posted: Mon Mar 06, 2023 9:29 am
by Antonio Linares
Dear Silvio,

Mr. Rao will review it, thanks for waiting

Re: Problem Xbrowser Border

Posted: Mon Mar 06, 2023 11:27 am
by Silvio.Falconi
Antonio Linares wrote:Dear Silvio,

Mr. Rao will review it, thanks for waiting
Estoy orando por su pronta recuperación, también porque ya tengo tres problemas que resolver.

Re: Problem Xbrowser Border

Posted: Mon Mar 06, 2023 11:58 am
by Antonio Linares
Gracias Silvio,

Para quienes no lo sepais, Mr. Rao ha estado unos dias enfermo y estamos todos deseando su pronta recuperación

Mucho ánimo para Mr. Rao

Re: Problem Xbrowser Border

Posted: Mon Mar 06, 2023 1:36 pm
by Marc Venken
Mr. Rao, Take good care of yourself ....

Re: Problem Xbrowser Border

Posted: Mon Mar 06, 2023 2:43 pm
by Detlef
Yes, a quick recovery to good health for Mr. Rao.

Re: Problem Xbrowser Border

Posted: Tue Mar 07, 2023 6:55 am
by richard-service
Mr.Rao
Take care yourself.

Re: Problem Xbrowser Border

Posted: Tue Mar 07, 2023 9:08 am
by ukoenig
I'm not sure that all these options can be added to the xBrowse class


a border with any pensize
optional round corners
glowing effect
transparent level
any border distance


Image

bet regards
Uwe :D

Re: Problem Xbrowser Border

Posted: Tue Mar 07, 2023 4:27 pm
by Marc Venken
ukoenig wrote:I'm not sure that all these options can be added to the xBrowse class
Uwe :D
Maybe they can be added with a subclass ? It's not my cup of coffee to make classes, but it seems to be possible.
So the original class will always be useable as it is.

Re: Problem Xbrowser Border

Posted: Wed Mar 08, 2023 2:19 pm
by carlos vargas
Espero que el sr. rao se recupere de los problemas de salud.

Re: Problem Xbrowser Border

Posted: Wed Mar 08, 2023 5:11 pm
by acuellar
Speedy recovery Mr. Rao