Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-07

Would like to help, but....

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Samuel Herzog

I like to help in fixing issues.

But with this one I am not sure if it makes sense to do this, and if yes, then what would be the best way.

http://bugs.freepascal.org/view.php?id=13961

Paul has already answered, but I am still not happy with the current situation.

TCustomLabel = class(TGraphicControl)
TCustomSpeedButton = class(TGraphicControl)

Someone has implemented already the Autosize mechanism for TCustomLabel.

What do you suggest to do ?
Create a class TCustomGraphicControl with AutoSize support and then inherit TCustomLabel and TCustomSpeedButton from this new class ?

Regards,

Sam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090722/44af7a33/attachment.html>

Reply by email

Samuel Herzog

I like to help in fixing issues.

But with this one I am not sure if it makes sense to do this, and if yes, then what would be the best way.

http://bugs.freepascal.org/view.php?id=13961

Paul has already answered, but I am still not happy with the current situation.

TCustomLabel = class(TGraphicControl)
TCustomSpeedButton = class(TGraphicControl)

Someone has implemented already the Autosize mechanism for TCustomLabel.

What do you suggest to do ?
Create a class TCustomGraphicControl with AutoSize support and then inherit TCustomLabel and TCustomSpeedButton from this new class ?

Regards,

Sam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090722/9080b326/attachment.html>

Reply by email

Samuel Herzog

I like to help in fixing issues.

But with this one I am not sure if it makes sense to do this, and if yes, then what would be the best way.

http://bugs.freepascal.org/view.php?id=13961

Paul has already answered, but I am still not happy with the current situation.

TCustomLabel = class(TGraphicControl)
TCustomSpeedButton = class(TGraphicControl)

Someone has implemented already the Autosize mechanism for TCustomLabel.

What do you suggest to do ?
Create a class TCustomGraphicControl with AutoSize support and then inherit TCustomLabel and TCustomSpeedButton from this new class ?

Regards,

Sam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090722/758983ea/attachment.html>

Reply by email

Samuel Herzog

I like to help in fixing issues.

But with this one I am not sure if it makes sense to do this, and if yes, then what would be the best way.

http://bugs.freepascal.org/view.php?id=13961

Paul has already answered, but I am still not happy with the current situation.

TCustomLabel = class(TGraphicControl)
TCustomSpeedButton = class(TGraphicControl)

Someone has implemented already the Autosize mechanism for TCustomLabel.

What do you suggest to do ?
Create a class TCustomGraphicControl with AutoSize support and then inherit TCustomLabel and TCustomSpeedButton from this new class ?

Regards,

Sam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090722/4efd698f/attachment-0001.html>

Reply by email

Mattias Gaertner
to Samuel Herzog: I like to help in fixing issues. But with this one I am not sure if it makes sense to do…
Show quoted text 15 lines
I like to help in fixing issues. But with this one I am not sure if it makes sense to do this, and if yes, then what would be the best way. http://bugs.freepascal.org/view.php?id=13961 Paul has already answered, but I am still not happy with the current situation. TCustomLabel = class(TGraphicControl) TCustomSpeedButton = class(TGraphicControl) Someone has implemented already the Autosize mechanism for TCustomLabel.

I don't see why do you mention TLabel here.
TLabel is more simple than TSpeedButton and allows Wordwrap and OptimalFill. So the AutoSize algorithm will be completely different.

What do you suggest to do ? Create a class TCustomGraphicControl with AutoSize support and then inherit TCustomLabel and TCustomSpeedButton from this new class ?

What is the gain?

Why not simply implement procedure
TCustomSpeedButton.CalculatePreferredSize?

Mattias

Reply by email