FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Wed Aug 13, 2014 07:22 PM

Hi all,

Possible easy RESIZE Objects when resize Window or Dialog

Best regards,

Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: RESIZE Objects when resize Window or Dialog
Posted: Wed Aug 13, 2014 07:50 PM
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog
Posted: Thu Aug 14, 2014 08:58 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: RESIZE Objects when resize Window or Dialog
Posted: Thu Aug 14, 2014 03:06 PM

You might want to check out EasyDialog also. I think it adjusts objects also.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog
Posted: Thu Aug 14, 2014 03:15 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
Re: RESIZE Objects when resize Window or Dialog
Posted: Sun Aug 17, 2014 01: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> ;

         [ &lt;resource: NAME, RESNAME, RESOURCE&gt; &lt;cResName&gt; ] ;
         [ TITLE &lt;cTitle&gt; ] ;
         [ FROM &lt;nTop&gt;, &lt;nLeft&gt; TO &lt;nBottom&gt;, &lt;nRight&gt; ] ;
         [ SIZE &lt;nWidth&gt;, &lt;nHeight&gt; ] ;
         [ &lt;lib: LIBRARY, DLL&gt; &lt;hResources&gt; ] ;
         [ &lt;vbx: VBX&gt; ] ;
         [ STYLE &lt;nStyle&gt; ] ;
         [ &lt;color: COLOR, COLORS&gt; &lt;nClrText&gt; [,&lt;nClrBack&gt; ] ] ;
         [ BRUSH &lt;oBrush&gt; ] ;
         [ &lt;of: WINDOW, DIALOG, OF&gt; &lt;oWnd&gt; ] ;
         [ &lt;pixel: PIXEL&gt; ] ;
         [ ICON &lt;oIco&gt; ] ;
         [ FONT &lt;oFont&gt; ] ;
         [ &lt;help: HELP, HELPID&gt; &lt;nHelpId&gt; ] ;
         [ &lt;transparent: TRANSPARENT&gt; ] ;
         [ GRADIENT &lt;aGradColors&gt; ] ;
   =&gt; ;
      &lt;oDlg&gt; = TDialog():New( &lt;nTop*sRowFactor&gt;, &lt;nLeft*sColFactor&gt;, &lt;nBottom*sRowFactor&gt;, &lt;nRight*sColFactor&gt;,;
             &lt;cTitle&gt;, &lt;cResName&gt;, &lt;hResources&gt;, &lt;.vbx.&gt;, &lt;nStyle&gt;,;
             &lt;nClrText&gt;, &lt;nClrBack&gt;, &lt;oBrush&gt;, &lt;oWnd&gt;, &lt;.pixel.&gt;,;
             &lt;oIco&gt;, &lt;oFont&gt;, &lt;nHelpId&gt;, &lt;nWidth*sColFactor&gt;, &lt;nHeight*sRowFactor&gt;, &lt;.transparent.&gt;,;
             &lt;aGradColors&gt; )

This can be maded in all include files.

I have tested this and work nice.
So we have wanted size while creating

Best regards,

Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
Re: RESIZE Objects when resize Window or Dialog
Posted: Tue Aug 19, 2014 09:50 AM

Antonio ?

What do you think about that ?

Best regards,

Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sat Aug 23, 2014 11:09 AM

HI
Antonio ... please your opinion about using modified .CH files ?

Best regards,

Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sat Aug 30, 2014 05:50 PM

Antonio,

I am interested about your opinion about this

Regards,

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sat Aug 30, 2014 07:48 PM

Avista,

Sorry for my answer delay. Whatever we implement it has to provide full backwards compatibility so we don't break anybody app.

Besides that, whatever useful addition is welcome :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sun Aug 31, 2014 05:47 AM
Dear Antonio,

I think you can make it backward compatible also. If so, it will make a big change and most wanted enhance features.
I saw some application that wrote to compatible with screen 800x600 (many years ago or old monitor). Right now, It is quite pretty small screen with brand new monitor (1920x1200). The application is a small screen in left corner and hard to read and use. When display has changed the resolution, other application will not suitable with (800x600).

Just my opinion.
Antonio Linares wrote:Avista,

Sorry for my answer delay. Whatever we implement it has to provide full backwards compatibility so we don't break anybody app.

Besides that, whatever useful addition is welcome :-)
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sun Aug 31, 2014 07:24 AM

+1

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sun Aug 31, 2014 04:27 PM

Where is the most recent code version to use ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sun Aug 31, 2014 08:11 PM
Are you sure you do not want to have a look at easy dialog? It can automatically adjust to resolutions.
Download and try this test version http://www.reportdesigner.info/downloads/EasyDialog.exe
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Mon Sep 01, 2014 01:06 AM

Gale,

Tim provided us EasyDialog when we bought EasyReport, so once we make it work we can include it in FWH, if it works fine :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com