Increase size of windows and dialogs

Increase size of windows and dialogs

Postby ORibeiro » 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
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: Increase size of windows and dialogs

Postby karinha » Wed Dec 04, 2013 1:28 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7214
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Increase size of windows and dialogs

Postby ORibeiro » Wed Dec 04, 2013 3: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
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: Increase size of windows and dialogs

Postby Antonio Linares » Thu Dec 05, 2013 4:31 pm

Oscar,

Isn't RESIZE16 fine ?
regards, saludos

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

Re: Increase size of windows and dialogs

Postby Rick Lipkin » Thu Dec 05, 2013 7: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: Select all  Expand view

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)
 

Image
User avatar
Rick Lipkin
 
Posts: 2618
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Otto and 90 guests