<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16490">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=delphian@smythconsulting.net
href="mailto:delphian@smythconsulting.net">Justin Smyth</A> </DIV>
<DIV><B>To:</B> <A title=idokan@gmail.com href="mailto:idokan@gmail.com">ik</A>
</DIV>
<DIV><B>Sent:</B> Thursday, February 04, 2010 11:35 PM</DIV>
<DIV><B>Subject:</B> Re: [fpc-pascal] Component Writing Question For
Lazarus</DIV></DIV>
<DIV><FONT size=2 face=Arial></FONT><BR></DIV>
<DIV><FONT size=2 face=Arial>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
)</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>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 )</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Delphian</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=idokan@gmail.com href="mailto:idokan@gmail.com">ik</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphian@smythconsulting.net
href="mailto:delphian@smythconsulting.net">Justin Smyth</A> ; <A
title=fpc-pascal@lists.freepascal.org
href="mailto:fpc-pascal@lists.freepascal.org">FPC-Pascal users discussions</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, February 04, 2010 11:13
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [fpc-pascal] Component
Writing Question For Lazarusi\</DIV>
<DIV><FONT size=2 face=Arial></FONT><BR></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT><BR clear=all>
<DIV class=gmail_quote>On Thu, Feb 4, 2010 at 14:01, Justin Smyth <SPAN
dir=ltr><<A
href="mailto:delphian@smythconsulting.net">delphian@smythconsulting.net</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2 face=Arial>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 )</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Any help would be great
</FONT></DIV></DIV></BLOCKQUOTE>
<DIV><BR>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.<BR><BR>You can see
the TLabelEdit for example of two components inside one.<BR> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2
face=Arial>Delphian</FONT></DIV></DIV><BR>_______________________________________________<BR>fpc-pascal
maillist - <A
href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</A><BR><A
href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal"
target=_blank>http://lists.freepascal.org/mailman/listinfo/fpc-pascal</A><BR></BLOCKQUOTE></DIV><BR><BR>Ido<BR></DIV></BLOCKQUOTE></BODY></HTML>