FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Mon Sep 01, 2014 01:56 AM
Dear Antonio,

xHb1.2.3/ FWH1312/BCC5.8.2
D
Antonio Linares wrote:Where is the most recent code version to use ? thanks
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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Mon Sep 01, 2014 07:20 AM

Dutch,

I think it is better that once that we have properly running EasyDialog we may consider to include it in FWH.

So firt of all, we should get it working so we can all test it :-)

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: Tue Sep 02, 2014 04:25 AM
Thanks in advance,
Antonio Linares wrote:Dutch,

I think it is better that once that we have properly running EasyDialog we may consider to include it in FWH.

So firt of all, we should get it working so we can all test it :-)
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: 301
Joined: Fri Jun 01, 2007 09:07 AM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Thu Sep 04, 2014 07:49 AM
Hi,
My idea was not that, ... not EasyDialog

My idea was to have alternate, another folder with .ch files, example .\FWH\INCLUDE1
with changed .CH files like in few posts above, and using rowfactor and colfactor

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

So if dialog/window is based on 800/600 resolution and curent resolution is 1024/768
rowfactor is 1.28 colfactor is 1.28

we will have the same size on the screen in both cases while creating dialog/window ... or other objects
buttons, gets ...

No changes needed in program ... just in make file change include path to \FWH\INCLUDE1

example:

#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> )


Best regards,
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Thu Sep 04, 2014 09:01 AM

But that will only work for dialogs created from source code, not for dialogs from resources

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 (ANTONIO ?)
Posted: Thu Sep 04, 2014 01:58 PM

Yes,

But dont make problems if program use resources.
And not bad to have it like option for programs which not use resources.

I have tested manutimes and work nice ...

Antonio,
Do you have any idea how to analize resource files for this purpose possibly to change coordinates in .RC files or maybe to make a copy of the file and than make changes or ... somethimg else ?

Best regards,

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Thu Sep 04, 2014 09:48 PM

Hello Avista,
how to start with "resize objects".
Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Fri Sep 05, 2014 07:27 AM

Avista,

Yes, we can easily analize resources :-)

Basically we create the dialog and then get all its values before it is shown, so we can modify them as we may want.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Fri Sep 05, 2014 03:38 PM

With Microsoft's Surface Pro 3, because of it's new resolution, it does automatic scaling. It's not perfected yet, but essentially, it will enlarge a window/dialog to make better use of the available screen space.
An application written with resources for 1020 x 768 actually scales nicely and fills much of the screen.
If I use resources designed for 1920 x 1080, however, it goes too far on the horizontal putting fields off the screen. I'm sure this will be adjusted in coming updates.

We may see more of this happening in the Windows OS in the future across various monitors.

Or not ...

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Fri Nov 19, 2021 01:41 PM

Good Morning. Forecast of news on this topic? Will FiveTech have its own EASY DIALOG or not?

Buen día. ¿Pronóstico de noticias sobre este tema? ¿FiveTech tendrá su propio DIÁLOGO FÁCIL o no?

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Fri Nov 19, 2021 02:11 PM
karinha wrote:Good Morning. Forecast of news on this topic? Will FiveTech have its own EASY DIALOG or not?

Buen día. ¿Pronóstico de noticias sobre este tema? ¿FiveTech tendrá su propio DIÁLOGO FÁCIL o no?

Regards, saludos.

+1
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Fri Nov 19, 2021 03:11 PM
+1
karinha wrote:Good Morning. Forecast of news on this topic? Will FiveTech have its own EASY DIALOG or not?

Buen día. ¿Pronóstico de noticias sobre este tema? ¿FiveTech tendrá su propio DIÁLOGO FÁCIL o no?

Regards, saludos.
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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sat Nov 20, 2021 05:21 AM

Mr. Rao will answer this as he has developed it already, as far as I know

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sat Nov 20, 2021 02:49 PM
Antonio Linares wrote:Mr. Rao will answer this as he has developed it already, as far as I know



This is great news. May God enlighten Mister Rao. Strength Mister Rao.

Esta es una gran noticia. Que Dios ilumine al señor Rao. Fuerza señor Rao.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)
Posted: Sun Nov 21, 2021 02:06 AM

Most likely we will implement before the end of this year.

Regards



G. N. Rao.

Hyderabad, India