Olá galera,
Velho, uma boa é vc _curiar_ (uma _espiadinha_) o que seu objeto pode herdar,
num vai encarar como gozação, mas, tem dois passos:
1 - Vc segura Ctrl e dá um clique em TAlgumaCoisa (que termo feio), ex: segure
Ctrl e clique em TEdit, depois em TCustomEdit, TWinControl, TControl,
TComponent... kkk..., vai parar em TObject.
2 - Veja no Help sobre TWinControl, TControl e etc. É só selecionar a classe e
dar um F1, a IDE (Lazarus ou Delphi) vai em cima :)
Desculpem-me pela marafunda de texto que vem pela frente, mas, é uma para quem
ainda não teve a sorte de navegar no Help do Lazarus e do Delphi:
Olha sobre TWinControl no help do Lazarus (clicando em TWinControl com Ctrl
pressionado, abre esse help-link).
Linkl - [http://lazarus-ccr.sourceforge.net/docs/lcl/controls/twincontrol.html].
Olha sobre TWinControl no help do Delphi7 (clicando em TWinControl com Ctrl
pressionado, abre esse help).
(...)
TWinControl is the base class for all controls that are wrappers for Microsoft
Windows screen objects.
Unit
Controls
Description
TWinControl provides the common functionality for all controls that act as
wrappers for Microsoft Windows screen objects (“windowsâ€). Controls that are
wrap underlying windows have the following features:
The control can incorporate the functionality of an underlying window. For
example, if the underlying screen object is a text editor, the control can
incorporate the editor ability to manage and display a text buffer.
The control can receive user input focus. The focused control can handle
keyboard input events. Some controls change their appearance when they have the
focus. For example, button controls typically indicate the focus by drawing a
rectangle around the caption.
The control can serve as a container for other controls, referred to as child
controls. This relationship is signified by the child's Parent property.
Container controls provide important services to their children, including
display services for controls that do not implement their own canvases. Examples
of container controls include forms, panels, and toolbars.
Controls based on TWinControl can display standard screen objects provided by
Microsoft Windows, or customized screen objects developed by the VCL programmer.
Descendants of TWinControl include abstract base classes that support most kinds
of user interface objects. The most significant descendant is TCustomControl,
which provides code to implement a canvas and handle paint messages. Other
important abstract descendants include TScrollingWinControl, TButtonControl,
TCustomComboBox, TCustomEdit, and TCustomListBox. When defining new control
classes, consider these descendants before deriving directly from TWinControl.
Every TWinControl object has a Handle property which provides the window handle
for the underlying Microsoft Windows screen object. Use the Handle property to
bypass the VCL API and directly access the underlying window.
(...)
________________________________
[]'s, Silvio Clécio
---
Linux User: #481900
Skype: silvioprog
ICQ: 432519902
E-mail, Y! Messenger: silvioprog@...
Gmail, GTalk: silvioprog@...
BlogSite: http://silvioprog.blogspot.com/
BlogSpot: http://silvioclecio.blogspot.com/
VirtualDriver: http://silvioprog.4shared.com/
°oO| Seja livre, use Linux! |Oo°
________________________________
De: Ezequiel Pianegonda <epianegonda@...>
Para: objectpascal@...
Enviadas: Domingo, 12 de Abril de 2009 20:40:04
Assunto: Res: Res: [objpascal] Ajuda criação de componente
Pessoal, segui a dica do Silvio sobre a mnsagem CMVisibleChanged e resolvi o
problema, muito obrigado mesmo.
Porém agora tenho outra perguntinha, onde encontro material sobre as mensagens
do windows?
Mais uma vez obrigado
Ezequiel
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
[As partes desta mensagem que não continham texto foram removidas]