FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour fix coordinates of a window
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
fix coordinates of a window
Posted: Tue Aug 22, 2017 04:07 PM

Can I fix a size of a window
I use this window on tablet and it must be big as screen tablet and the user cannot change the size
How i can make it ?

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: 195
Joined: Sun Jul 22, 2012 07:01 PM
Re: fix coordinates of a window
Posted: Tue Aug 22, 2017 09:37 PM

oWnd:aMinMaxInfo := { ;
xMaxSize, yMaxSize, ;
xMaxPosition, yMaxPosition, ;
xMinTrackSize, yMinTrackSize, ;
xMaxSize - xMaxPosition, yMaxSize - yMaxPosition } // xMaxTrackSize, yMaxTrackSize

Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: fix coordinates of a window
Posted: Wed Aug 23, 2017 05:33 PM

one small sample 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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: fix coordinates of a window
Posted: Fri Aug 25, 2017 11:11 PM

resolved

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: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: fix coordinates of a window
Posted: Fri Aug 25, 2017 11:36 PM

Silvio,
>resolved
>one small sample thanks

Best regards,
Otto

Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: fix coordinates of a window
Posted: Sat Aug 26, 2017 12:06 AM

Local nMINWidth := Int( ScreenWidth() * 0.85 )
Local nMINHeight :=Int( ScreenHeight() * 0.85 )
Local nMAXWidth := GETSYSMETRICS( 0 ) //risoluzione orizzontale
Local nMAXHeight := GETSYSMETRICS( 1 ) //risoluzione verticale

     ::oWndMain:aMinMaxInfo = { GETSYSMETRICS( 0 ), GETSYSMETRICS( 1 ),;  // xMaxSize,      yMaxSize
                                                          0,  0,;  // xMaxPosition,  yMaxPosition
                                         nMINWidth,  nMINHeight,;  // xMinTrackSize, yMinTrackSize
                                         nMAXWidth, nMAXHeight }
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