[fpc-pascal] Component Writing Question For Lazarus

Justin Smyth delphian at smythconsulting.net
Thu Feb 4 13:36:37 CET 2010

----- Original Message ----- 
From: Justin Smyth 
To: ik 
Sent: Thursday, February 04, 2010 11:35 PM
Subject: Re: [fpc-pascal] Component Writing Question For Lazarus

Yes thats what i'd figured i would do and have my different components as TControl ( as i found out when i looked at how TCustomUpDown did it - which used TCustomControl as the base class )

My Question Really is i see these components in lazarus using widgets ( WSRegisterClass ) - i am new this i am not sure if need it etc ( and if i do i am not sure how i go about doing the bit my own Register<MyComponentName> as found in WSRegisterClass )

  ----- Original Message ----- 
  From: ik 
  To: Justin Smyth ; FPC-Pascal users discussions 
  Sent: Thursday, February 04, 2010 11:13 PM
  Subject: Re: [fpc-pascal] Component Writing Question For Lazarusi\

  On Thu, Feb 4, 2010 at 14:01, Justin Smyth <delphian at smythconsulting.net> wrote:

    I've got a simple question , i want to write a component that has two or more other components on it ( ie a text box or or a button and a image ) on it , should i be using a widget to do this ? or should i just write it directly ( i've written components for lazarus before but can only get one control on it ) the platform i will be using will be Win32 ( i want to convert some other components that i have that have more than one graphical control on them so far i havent been sucessfull doing it )

    Any help would be great 

  You need a container for it such as TWinControl or something like that (see TCustomPanel or something like that) that can have child component inside, and by code you place the other components inside.

  You can see the TLabelEdit for example of two components inside one.


    fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100204/43e23f9a/attachment.html>

More information about the fpc-pascal mailing list