[Lazarus] When do I need a component rather than a plain object?
Michael Van Canneyt
michael at freepascal.org
Tue Nov 16 16:31:01 CET 2010
On Tue, 16 Nov 2010, Graeme Geldenhuys wrote:
> Op 2010-11-16 16:39, Michael Van Canneyt het geskryf:
>>
>> The problem is moot in fpGUI, it doesn't have a TImage component.
>
> Yes, yes, and takes all of two minutes to implement, if really needed. :)
> In the case of fpGUI, I haven't yet had such a need. With fpGUI Designer
> having the ability to drop any "unknown" widget on a form (that's any
> TfpgWidget descendant that's not registered in the component palette), and
> being able to setup properties for that widget even though it is "unknown",
> I had no need to implement a dedicated TImage type component yet.
>
> It's similar to me not seeing the point of the various "Dialog" (file open,
> font select, color select etc) components on the component palette - it's
> equally easy using them directly in code when needed. There is no advantage
> of having design time support for those - in fact it just uses extra memory
> when you do.
I don't agree. I use the IDE to the fullest - it is RAD after all.
But use cases vary.
>
> If you really want a TImage style component, all you had to do was ask and
> I would have implemented it :) Either way, I'll implement one just just
> for you (though it might be a bit later I guess). ;-)
No need, I did that myself. You better spend time on more useful things :)
Michael.
More information about the Lazarus
mailing list