Sign in Join

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

Mailing lists / fpc-pascal / 2010-02

Component Writing - Registering Components with the widget set

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Justin Smyth

Can someone help here , if i have my own custom component thats got a container that has a base class of TCustomControl does one need to register it on the widget level ? do i just use WSRegisterCustomControl and write my own setters and getter like the ones in wscontrol ?

Just not sure if i need to use this widget bit

Delphian

Zaher Dirkey
to Justin Smyth
Justin Smyth wrote 8 lines
Can someone help here , if i have my own custom component thats got a container that has a base class of TCustomControl does one need to register it on the widget level ? do i just use WSRegisterCustomControl and write my own setters and getter like the ones in wscontrol ? Just not sure if i need to use this widget bit

If your component not use the OS directly, you only need to a normal RegisterComponents.
no need to care about widgets.

Zaher Dirkey
Mattias Gaertner
to Justin Smyth: Can someone help here , if i have my own custom component thats got a container that has…

This is a fpc list. Please put lazarus question on the lazarus list or forum.

Can someone help here , if i have my own custom component thats got a container that has a base class of TCustomControl does one need to register it on the widget level ? do i just use WSRegisterCustomControl and write my own setters and getter like the ones in wscontrol ? Just not sure if i need to use this widget bit

The WSRegister functions are needed only when you create the handle yourself. That means you have to write for every widgetset your own version.
If you write a TCustomControl you don't need to bother about the widgetset internals.

What type of custom component do you want to create?

Mattias