splitter sample

splitter sample

Postby Silvio.Falconi » Thu Mar 03, 2016 8:51 am

Antonio,

I tried splitter test sample n. 3

and I have the sample problem

I wish when the use resize the wnd the vertical splitter must be moved

at left if the ownd is rresize on the left

at right if the ownd is resize on the right
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: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: splitter sample

Postby Antonio Linares » Thu Mar 03, 2016 9:54 am

Please post some screenshots, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: splitter sample

Postby Silvio.Falconi » Thu Mar 03, 2016 11:06 am

testspl3.prg

I resize the window to left

Image


the vertical splitter must be moved to left

Image





the vertical splitter should be moved to the left

Now it is stopped at the same positon so when the user resizes the window no longer sees the grid placed on the right
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: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: splitter sample

Postby ukoenig » Thu Mar 03, 2016 5:13 pm

Silvio,

add to this sample the following :
( works in both directions )
...
...
ACTIVATE WINDOW oWnd ;
ON RESIZE ( oVSplit:AdjLeft(), oHSplit:AdjRight(), ADJUST_POS(oWnd) )

return nil

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

// DEFINE WINDOW oWnd FROM 1, 1 TO 400, 600 PIXEL ;
// @ 0,200 SPLITTER oVSplit ;

FUNCTION ADJUST_POS(oWnd)

oVSplit:SetPosition( 200 - ( 600 - oWnd:nWidth() ) )

RETURN NIL

Image

best 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: splitter sample

Postby Silvio.Falconi » Fri Mar 04, 2016 7:40 am

thanks Uwe,
it seems tio run ok
On Mt application I must change the position but it run . 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: 6772
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Rick Lipkin and 95 guests