by avista » Sun Aug 17, 2014 1:16 pm
Thanks for reply
But that is not what i asked.
My question was is it possible to resize all objectc while resizing dialog or window ...
Resize buttons, combos, fonts ....
Antonio (and everyone)
Can this my opinion be inmlemented in FWH
My opinion is to use Alternative .CH files or maybe only changed .CH files something like this
First to define this variables
sSysWidth := 0 // System Width
sSysHeight := 0 // System Height
sSouWidth := 800 // Source Width
sSouHeight := 600 // Source Height
sRowFactor := 0 // Factor for new Width
sColFactor := 0 // Factor for new Height
ScrResolution(@sSysWidth,@sSysHeight)
sRowFactor := sSysWidth / sSouWidth
sColFactor := sSysHeight / sSouHeight
And after to use changed .CH files
For example define dialog
//----------------------------------------------------------------------------//
#xcommand DEFINE DIALOG <oDlg> ;
[ <resource: NAME, RESNAME, RESOURCE> <cResName> ] ;
[ TITLE <cTitle> ] ;
[ FROM <nTop>, <nLeft> TO <nBottom>, <nRight> ] ;
[ SIZE <nWidth>, <nHeight> ] ;
[ <lib: LIBRARY, DLL> <hResources> ] ;
[ <vbx: VBX> ] ;
[ STYLE <nStyle> ] ;
[ <color: COLOR, COLORS> <nClrText> [,<nClrBack> ] ] ;
[ BRUSH <oBrush> ] ;
[ <of: WINDOW, DIALOG, OF> <oWnd> ] ;
[ <pixel: PIXEL> ] ;
[ ICON <oIco> ] ;
[ FONT <oFont> ] ;
[ <help: HELP, HELPID> <nHelpId> ] ;
[ <transparent: TRANSPARENT> ] ;
[ GRADIENT <aGradColors> ] ;
=> ;
<oDlg> = TDialog():New( <nTop*sRowFactor>, <nLeft*sColFactor>, <nBottom*sRowFactor>, <nRight*sColFactor>,;
<cTitle>, <cResName>, <hResources>, <.vbx.>, <nStyle>,;
<nClrText>, <nClrBack>, <oBrush>, <oWnd>, <.pixel.>,;
<oIco>, <oFont>, <nHelpId>, <nWidth*sColFactor>, <nHeight*sRowFactor>, <.transparent.>,;
<aGradColors> )
This can be maded in all include files.
I have tested this and work nice.
So we have wanted size while creating
Best regards,