FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour splitter sample
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
splitter sample
Posted: Thu Mar 03, 2016 08: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 March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: splitter sample
Posted: Thu Mar 03, 2016 09:54 AM

Please post some screenshots, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: splitter sample
Posted: Thu Mar 03, 2016 11:06 AM
testspl3.prg

I resize the window to left




the vertical splitter must be moved to left







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 March-April 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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: splitter sample
Posted: Thu Mar 03, 2016 05: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



best 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: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: splitter sample
Posted: Fri Mar 04, 2016 07: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 March-April 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

Continue the discussion