RESIZE Objects when resize Window or Dialog (ANTONIO ?)

RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby avista » Wed Aug 13, 2014 7:22 pm

Hi all,

Possible easy RESIZE Objects when resize Window or Dialog

Best regards,
Last edited by avista on Sat Aug 23, 2014 11:08 am, edited 1 time in total.
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: RESIZE Objects when resize Window or Dialog

Postby MGA » Wed Aug 13, 2014 7:50 pm

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1253
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: RESIZE Objects when resize Window or Dialog

Postby Antonio Linares » Thu Aug 14, 2014 8:58 am

regards, saludos

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

Re: RESIZE Objects when resize Window or Dialog

Postby Gale FORd » Thu Aug 14, 2014 3:06 pm

You might want to check out EasyDialog also. I think it adjusts objects also.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: RESIZE Objects when resize Window or Dialog

Postby Antonio Linares » Thu Aug 14, 2014 3:15 pm

regards, saludos

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

Re: RESIZE Objects when resize Window or Dialog

Postby 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,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: RESIZE Objects when resize Window or Dialog

Postby avista » Tue Aug 19, 2014 9:50 am

Antonio ?

What do you think about that ?

Best regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby avista » Sat Aug 23, 2014 11:09 am

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

Best regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby avista » Sat Aug 30, 2014 5:50 pm

Antonio,

I am interested about your opinion about this

Regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby Antonio Linares » Sat Aug 30, 2014 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby dutch » Sun Aug 31, 2014 5: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 19.01 / 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)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby Horizon » Sun Aug 31, 2014 7:24 am

+1
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby Antonio Linares » Sun Aug 31, 2014 4:27 pm

Where is the most recent code version to use ? thanks
regards, saludos

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

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby Gale FORd » Sun Aug 31, 2014 8: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
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: RESIZE Objects when resize Window or Dialog (ANTONIO ?)

Postby Antonio Linares » Mon Sep 01, 2014 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 49 guests