Change dimensions gets FWH-24.09

Change dimensions gets FWH-24.09

Postby Cgallegoa » Mon Oct 14, 2024 5: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-24.07, xHarbour 1.3.1 Build 20240624, Borland C++7.70, PellesC ***
Cgallegoa
 
Posts: 494
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador

Re: Change dimensions gets FWH-24.09

Postby Enrico Maria Giordano » Mon Oct 14, 2024 7:10 pm

I'm not aware of any pending bug. Please show a sample of each problem, so I can investigate.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Change dimensions gets FWH-24.09

Postby karinha » Mon Oct 14, 2024 8:12 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7832
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Re: Change dimensions gets FWH-24.09

Postby Enrico Maria Giordano » Mon Oct 14, 2024 9:27 pm

dimensions gets: can you provide a sample, please?
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Change dimensions gets FWH-24.09

Postby Cgallegoa » Tue Oct 15, 2024 2:42 am

Saludos,

Carlos Gallego

*** FWH-24.07, xHarbour 1.3.1 Build 20240624, Borland C++7.70, PellesC ***
Cgallegoa
 
Posts: 494
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador

Re: Change dimensions gets FWH-24.09

Postby nageswaragunupudi » Tue Oct 15, 2024 4: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: Select all  Expand view  RUN
  ::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: Select all  Expand view  RUN
//   ::CalcSize( ::nTop, ::nLeft, nWidth, nHeight )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Change dimensions gets FWH-24.09

Postby Cgallegoa » Tue Oct 15, 2024 2: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: Select all  Expand view  RUN
//   ::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: Select all  Expand view  RUN
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-24.07, xHarbour 1.3.1 Build 20240624, Borland C++7.70, PellesC ***
Cgallegoa
 
Posts: 494
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador

Re: Change dimensions gets FWH-24.09

Postby Horizon » Wed Oct 16, 2024 6: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Change dimensions gets FWH-24.09

Postby Cgallegoa » Thu Oct 17, 2024 5: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-24.07, xHarbour 1.3.1 Build 20240624, Borland C++7.70, PellesC ***
Cgallegoa
 
Posts: 494
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests