FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Change dimensions gets FWH-24.09
Posts: 514
Joined: Sun Oct 16, 2005 03:32 AM
Change dimensions gets FWH-24.09
Posted: Mon Oct 14, 2024 05:44 PM
Hi,

Is there any news ?

https://forums.fivetechsupport.com/viewtopic.php?f=6&t=44975&sid=fda842cdc1d5378538e1099e93764db9

Still pending:

.- maria_connect
.- dimensions gets
.- pdfharu
.- buttonbmp

I apologize for insisting, as I would like to update my programs from FWH2310 to FWH2407, but unfortunately, this has not been possible due to the reported issues that still have no solution.

Thanks for your help, and best regards

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Change dimensions gets FWH-24.09
Posted: Mon Oct 14, 2024 07:10 PM

I'm not aware of any pending bug. Please show a sample of each problem, so I can investigate.

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Change dimensions gets FWH-24.09
Posted: Mon Oct 14, 2024 08:12 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Change dimensions gets FWH-24.09
Posted: Mon Oct 14, 2024 09:27 PM

dimensions gets: can you provide a sample, please?

Posts: 514
Joined: Sun Oct 16, 2005 03:32 AM
Re: Change dimensions gets FWH-24.09
Posted: Tue Oct 15, 2024 02:42 AM

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Change dimensions gets FWH-24.09
Posted: Tue Oct 15, 2024 04:29 AM
.- dimensions gets
Are your gets from source code or resources?
please apply this fix in TGet.prg

Please locate this line in the metho New()
Code (fw): Select all Collapse
   ::CalcSize( ::nTop, ::nLeft, nWidth, nHeight )
You may find this code near line 769 or one or two lines above or below.

Please comment out this line and let us know if this works:
Code (fw): Select all Collapse
//   ::CalcSize( ::nTop, ::nLeft, nWidth, nHeight )
Regards



G. N. Rao.

Hyderabad, India
Posts: 514
Joined: Sun Oct 16, 2005 03:32 AM
Re: Change dimensions gets FWH-24.09
Posted: Tue Oct 15, 2024 02:46 PM
Mr. Rao, thanks for your help.

The issue with gets is from the source code. From resources, it works fine.

If I make this modification
Please comment out this line and let us know if this works:
Code (fw): Select all Collapse
//   ::CalcSize( ::nTop, ::nLeft, nWidth, nHeight )
Commenting out the line "::CalcSize..." won't affect the rendering of the get dimensions in any other way, will it ? Is it safe to remove it without affecting the behavior of the TGet class ?

do I still need to make this other change, suggested by you on 10-06-2024 ?
Please change the last line as:
Code (fw): Select all Collapse
METHOD CalcSize( nTop, nLeft, nWidth, nHeight, lRelative, oWnd, nBottom, nRight ) CLASS TControl // 2024-05-21

   local aRect
   local lTruePixel := .t.

   DEFAULT oWnd := ::oWnd, lRelative := oWnd:lAutoSizeCtrls

   if .f. //PCount() > 0
Regarding this suggestion, I have two concerns:
1. I believe this change has an error, as the original code of the CalcSize() Method checks for a numeric value with "if PCount() > 0", not a boolean "if .F.". This causes applications to break in other parts where ::CalcSize() is invoked.
2. The CalcSize Method in the Control.prg file from the FWH-24.09 version does not have the line "local lTruePixel := .t.". Why ? Is it important ?


Best regards,

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Change dimensions gets FWH-24.09
Posted: Wed Oct 16, 2024 06:39 AM
Hi Mr. Rao,

I think there is something not considered in the CalSize method. When I removed this method from TGroup, my groups returned to normal.

https://forums.fivetechsupport.com/viewtopic.php?f=3&t=44961&sid=94e9b331369b9f546d7f1c3eb24c035e
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 514
Joined: Sun Oct 16, 2005 03:32 AM
Re: Change dimensions gets FWH-24.09
Posted: Thu Oct 17, 2024 05:41 PM
I think there is something not considered in the CalSize method. When I removed this method from TGroup, my groups returned to normal.
I agree with you. Something is wrong with the ::CalcSize method. It affects the TGroup and TGet classes.

Mr. Rao,
- What is the reason or purpose of the ::CalcSize() method ?
- Can it be removed from these classes without affecting the behavior or appearance of the controls in the applications that instantiate them ?

Best Regards,

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Continue the discussion