FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Increase size of windows and dialogs
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
Increase size of windows and dialogs
Posted: Wed Dec 04, 2013 10:32 AM

When I designed my application, the monitors were less than 800x600 resolution and now my windows are small in the resolution of current displays.

Is there any function that automatically increase the size of windows and fonts in these cases or have to adjust them one by one?

Thanks,

Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Increase size of windows and dialogs
Posted: Wed Dec 04, 2013 01:28 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
Re: Increase size of windows and dialogs
Posted: Wed Dec 04, 2013 03:55 PM

This function does not work for me.

The ideal would be something like the RESIZE16 that increases everything on the screen size, buttons, fonts, etc.

Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Increase size of windows and dialogs
Posted: Thu Dec 05, 2013 04:31 PM

Oscar,

Isn't RESIZE16 fine ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Increase size of windows and dialogs
Posted: Thu Dec 05, 2013 07:46 PM
Antonio

I am quite interested in this thread myself .. The only way I have found to resize the controls is to calculate each one individually... and when you have folders, it compounds the number of controls you have to calculate.

I searched the samples folder for 'resize16' and found TestFldm.prg. I compiled the program and ran it but could not make any sense of the 'resize16' clause.

Rick Lipkin
Code (fw): Select all Collapse
ACTIVATE WINDOW oWndChild ;
   ON INIT ( oDlg:Move( 0,0, oWndchild:nWidth, oWndchild:nHeight, .T. ),oLbx:SetFocus(), ;
           oWndChild:bResized := {|| _ReSizeUm( oDlg,oWndChild,oLbx) }, ;
           oDlg:refresh(.t.),oLbx:SetFocus());
   VALID ( IIF( !lOK, ExitPgm(.T., oRsFreq,oWndChild,@lOk ), .F. ))


RETURN( .T. )

//------------------------------
Static Func _ReSizeUm( oDlg,oWndChild,oLbx )

oDlg:SetSize( oWndChild:nWidth, oWndChild:nHeight, .t. ) // frame and dialog link

// dialog controls
oDlg:bResized = { | nSizeType, nWidth, nHeight | ResizeControls( nSizeType, nWidth, nHeight, oDlg )  }

Return(nil)

//-------------------------
Static Func ResizeControls( nSizeType, nWidth, nHeight, oDlg )

*xBrowse(oDlg:aControls)

if nSizeType = 0 //SIZE_MAXIMIZED
                                   // 100              100
   oDlg:aControls[ 1 ]:SetSize( nWidth - 140, nHeight - 68 ) //txbrowse

endif

Return(nil)

Continue the discussion