brush on PANEL

Re: brush on PANEL

Postby Silvio.Falconi » Tue Dec 20, 2016 9:29 am

yes but I resolved thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6897
Joined: Thu Oct 18, 2012 7:17 pm

Re: brush on PANEL

Postby nageswaragunupudi » Tue Dec 20, 2016 11:32 am

Good.
So are gradient brushes working on panel now?
Regards

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

Re: brush on PANEL

Postby ukoenig » Tue Dec 20, 2016 12:45 pm

Mr. Rao,

using Your original-samplecode, my old problem : a mouseclick on a splitter, still exists
A area with the window-color is painted.

Image

Code: Select all  Expand view

#include "fivewin.ch"
#include "splitter.ch"

FUNCTION MAIN()
local oWnd, oPanel1, oPanel2, oBrush1, oBrush2, oSplit

DEFINE BRUSH oBrush1 FILE "PICTURE1.jpg" STRETCH
DEFINE BRUSH oBrush2 FILE "PICTURE2.jpg" STRETCH

DEFINE WINDOW oWnd

oPanel1  := TPanel():New( 0,0,200,900, oWnd )
oPanel2  := TPanel():New( 204,0,500,900, oWnd )

oPanel1:SetBrush( oBrush1 )
oPanel2:SetBrush( oBrush2 )

@ 200,0  SPLITTER oSplit ;
            HORIZONTAL ;
            PREVIOUS CONTROLS oPanel1 ;
            HINDS CONTROLS oPanel2 ;
            TOP MARGIN 80 ;
            BOTTOM MARGIN 80 ;
            SIZE 500, 4  PIXEL ;
            OF oWnd ;
            _3DLOOK

oWnd:nWidth    := 500
oWnd:nHeight   := 600

ACTIVATE WINDOW oWnd CENTERED ON RESIZE oSplit:AdjClient()

RETURN NIL
 


any idea where it comes from ?

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

Re: brush on PANEL

Postby nageswaragunupudi » Tue Dec 20, 2016 5:06 pm

my old problem : a mouseclick on a splitter,

I did not look into it.
I will.
Regards

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

Re: brush on PANEL

Postby ukoenig » Tue Dec 20, 2016 6:36 pm

Mr. Rao,

still another question,

is it possible to perform a action ( that belongs to the splitter ) as soon the splitter is moved ?
A method < bAction > is not defined.

regards
Uwe :?:
Last edited by ukoenig on Tue Dec 20, 2016 8:32 pm, edited 1 time in total.
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: brush on PANEL

Postby cnavarro » Tue Dec 20, 2016 7:47 pm

See if it works for you

Code: Select all  Expand view


#include "fivewin.ch"
#include "splitter.ch"

//----------------------------------------------------------------------------//

FUNCTION MAIN()
local oWnd, oPanel1, oPanel2, oBrush1, oBrush2, oSplit

DEFINE BRUSH oBrush1 FILE "..\bitmaps\rainbow.bmp" STRETCH
DEFINE BRUSH oBrush2 FILE "..\bitmaps\sea.bmp" STRETCH

DEFINE WINDOW oWnd

oPanel1  := TPanel():New( 0,0,200,900, oWnd )
oPanel2  := TPanel():New( 204,0,500,900, oWnd )

oPanel1:SetBrush( oBrush1 )
oPanel2:SetBrush( oBrush2 )

@ 200,0  SPLITTER oSplit ;
            HORIZONTAL ;
            PREVIOUS CONTROLS oPanel1 ;
            HINDS CONTROLS oPanel2 ;
            TOP MARGIN 80 ;
            BOTTOM MARGIN 80 ;
            SIZE 500, 4  PIXEL ;
            OF oWnd ;
            _3DLOOK

oSplit:bLClicked   := { | r, c | Down( r, c ) }
oSplit:bLButtonUp  := { | r, c | Up( r, c ) }
oWnd:nWidth    := 500
oWnd:nHeight   := 600

ACTIVATE WINDOW oWnd CENTERED ON RESIZE oSplit:AdjClient()

RETURN NIL

//----------------------------------------------------------------------------//

Function Down( r, c )
FWLOG "DOWN", r, c
Return nil

//----------------------------------------------------------------------------//

Function Up( r, c )
FWLOG "UP", r, c
Return nil

//----------------------------------------------------------------------------//

 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6522
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

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