Página 1 de 1

my own components

Publicado: Mar Feb 17, 2009 4:54 am
por Nick Hilder
Howdy
What a great thing. I like this a lot.
I have a few pointers for those who haven't played yet.
RegisterComponent is not in the help file so you are left guessing what
argument is what.
Once you create your dll you must copy it into the XailerBin folder for
Xailer to see the tab appear and have Xailer load it.
You must add a INIT PROCEDURE and the register each component in there.
You need a RC file with your images that appear on the toolbar in your
project
You need to inherit either TComponent or TControl so that your item appears
in the correct section of the object explorer.
If you don't inherit one or the other, when you drop the component on,
Xailer will display an error. It doesn't crash, it just doesn't tell you
much.
Cheers
Nick

my own components

Publicado: Mar Feb 17, 2009 6:03 am
por Nick Hilder
Where do I find a list of all the EDITOR constants?
Like PE_Color and PE_BrowseFolder
Regards Nick
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> wrote in message
news:499a34e9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Howdy
>
> What a great thing. I like this a lot.
>
> I have a few pointers for those who haven't played yet.
>
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
>
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
>
> You must add a INIT PROCEDURE and the register each component in there.
>
> You need a RC file with your images that appear on the toolbar in your
> project
>
> You need to inherit either TComponent or TControl so that your item
> appears in the correct section of the object explorer.
>
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
>
> Cheers
>
> Nick
>
>
>
>
>
>

my own components

Publicado: Mar Feb 17, 2009 6:03 am
por Nick Hilder
Where do I find a list of all the EDITOR constants?
Like PE_Color and PE_BrowseFolder
Regards Nick
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> wrote in message
news:499a34e9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Howdy
>
> What a great thing. I like this a lot.
>
> I have a few pointers for those who haven't played yet.
>
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
>
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
>
> You must add a INIT PROCEDURE and the register each component in there.
>
> You need a RC file with your images that appear on the toolbar in your
> project
>
> You need to inherit either TComponent or TControl so that your item
> appears in the correct section of the object explorer.
>
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
>
> Cheers
>
> Nick
>
>
>
>
>
>

my own components

Publicado: Mar Feb 17, 2009 10:28 am
por notengo
Nick,
> What a great thing. I like this a lot.
Yes, its one of the better features in Xailer
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
The sintax is: RegisterComponent( cPalette, cImage, cTooltip, bClassBlock )
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
The DLL can be in any path you want. When I develop a new DLL y load it
always from its own project folder and only copy it to Xailer folder when
it is finished.
> You must add a INIT PROCEDURE and the register each component in there.
Yes.
> You need a RC file with your images that appear on the toolbar in your
> project
Yes. And if your DLL needs custom images they should be there too. You can
add the .res with the images to your application to use them in runtime.
> You need to inherit either TComponent or TControl so that your item appears
> in the correct section of the object explorer.
Yes.
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
This should be fixed. Thanks for the info.
About the property editors, I am almost done with an article which show the
standar property editors and how to write your own.
Regards,
José Lalí­n

my own components

Publicado: Mar Feb 17, 2009 10:28 am
por notengo
Nick,
> What a great thing. I like this a lot.
Yes, its one of the better features in Xailer
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
The sintax is: RegisterComponent( cPalette, cImage, cTooltip, bClassBlock )
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
The DLL can be in any path you want. When I develop a new DLL y load it
always from its own project folder and only copy it to Xailer folder when
it is finished.
> You must add a INIT PROCEDURE and the register each component in there.
Yes.
> You need a RC file with your images that appear on the toolbar in your
> project
Yes. And if your DLL needs custom images they should be there too. You can
add the .res with the images to your application to use them in runtime.
> You need to inherit either TComponent or TControl so that your item appears
> in the correct section of the object explorer.
Yes.
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
This should be fixed. Thanks for the info.
About the property editors, I am almost done with an article which show the
standar property editors and how to write your own.
Regards,
José Lalí­n

my own components

Publicado: Mar Feb 17, 2009 12:05 pm
por ignacio
Nick,
Thanks for the tips. RegisterComponent is not on the help file since is only
available inside the IDE. We are working on a tutorial for creating
components and of course it will be documented there.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> escribió en el mensaje
news:499a34e9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Howdy
>
> What a great thing. I like this a lot.
>
> I have a few pointers for those who haven't played yet.
>
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
>
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
>
> You must add a INIT PROCEDURE and the register each component in there.
>
> You need a RC file with your images that appear on the toolbar in your
> project
>
> You need to inherit either TComponent or TControl so that your item
> appears in the correct section of the object explorer.
>
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
>
> Cheers
>
> Nick
>
>
>
>
>
>
>

my own components

Publicado: Mar Feb 17, 2009 12:05 pm
por ignacio
Nick,
Thanks for the tips. RegisterComponent is not on the help file since is only
available inside the IDE. We are working on a tutorial for creating
components and of course it will be documented there.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> escribió en el mensaje
news:499a34e9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Howdy
>
> What a great thing. I like this a lot.
>
> I have a few pointers for those who haven't played yet.
>
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
>
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
>
> You must add a INIT PROCEDURE and the register each component in there.
>
> You need a RC file with your images that appear on the toolbar in your
> project
>
> You need to inherit either TComponent or TControl so that your item
> appears in the correct section of the object explorer.
>
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
>
> Cheers
>
> Nick
>
>
>
>
>
>
>

my own components

Publicado: Mié Feb 18, 2009 8:37 pm
por ChrisGillard
Nick, Jose
I have tried to my own component and have got it into the IDE toolbar and
dropped it onto a form.
But have not done an INIT Procedure.
Could you show an example of an Init Procedure and whick .prg does it go it
.... the project root ??
Some help would be appreciated.
Regards
Chris
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> wrote in message
news:499a34e9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Howdy
>
> What a great thing. I like this a lot.
>
> I have a few pointers for those who haven't played yet.
>
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
>
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
>
> You must add a INIT PROCEDURE and the register each component in there.
>
> You need a RC file with your images that appear on the toolbar in your
> project
>
> You need to inherit either TComponent or TControl so that your item
> appears in the correct section of the object explorer.
>
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
>
> Cheers
>
> Nick
>
>
>
>
>
>

my own components

Publicado: Mié Feb 18, 2009 8:37 pm
por ChrisGillard
Nick, Jose
I have tried to my own component and have got it into the IDE toolbar and
dropped it onto a form.
But have not done an INIT Procedure.
Could you show an example of an Init Procedure and whick .prg does it go it
.... the project root ??
Some help would be appreciated.
Regards
Chris
"Nick Hilder" <nick_n0_spam_atcapsol.com.au> wrote in message
news:499a34e9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Howdy
>
> What a great thing. I like this a lot.
>
> I have a few pointers for those who haven't played yet.
>
> RegisterComponent is not in the help file so you are left guessing what
> argument is what.
>
> Once you create your dll you must copy it into the XailerBin folder for
> Xailer to see the tab appear and have Xailer load it.
>
> You must add a INIT PROCEDURE and the register each component in there.
>
> You need a RC file with your images that appear on the toolbar in your
> project
>
> You need to inherit either TComponent or TControl so that your item
> appears in the correct section of the object explorer.
>
> If you don't inherit one or the other, when you drop the component on,
> Xailer will display an error. It doesn't crash, it just doesn't tell you
> much.
>
> Cheers
>
> Nick
>
>
>
>
>
>

my own components

Publicado: Mié Feb 18, 2009 11:28 pm
por notengo
Chris,
check this:
http://xailer.info/eng/?p=43
Regards,
José Lalí­n

my own components

Publicado: Mié Feb 18, 2009 11:28 pm
por notengo
Chris,
check this:
http://xailer.info/eng/?p=43
Regards,
José Lalí­n

my own components

Publicado: Jue Feb 19, 2009 12:08 am
por ChrisGillard
Jose,
Working late ...
They look like good examples to learn from.
Thanks very much.
Chris
"José Lalín" <notengo@correo.com> wrote in message
news:499c8c17$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Chris,
>
> check this:
>
> http://xailer.info/eng/?p=43
>
> Regards,
> José Lalín

my own components

Publicado: Jue Feb 19, 2009 12:08 am
por ChrisGillard
Jose,
Working late ...
They look like good examples to learn from.
Thanks very much.
Chris
"José Lalín" <notengo@correo.com> wrote in message
news:499c8c17$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Chris,
>
> check this:
>
> http://xailer.info/eng/?p=43
>
> Regards,
> José Lalín