In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Custom control

Xailer professional forum in English
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Custom control

Mensaje por jfgimenez »

Giuseppe,
sorry for the long delay. I completely missed this message :-(
> I've partly succeded in porting the WM_PAINT method in C.
> The drawing of gradient and text is working fine but the drawing of the
> bitmap is not
> working at all. Even if the counterpart in xHarbour works perfectly.
The problem is the call to XA_ObjSend???(). Those functions do not return
any value, but due a stupid typo, there is no warning or error when
compiling. Now I've just fixed it.
When calling any of the XA_ObjSend???() functions, its possible return value
have to be reached using hb_par??( -1 ). I.e:
XA_ObjSendNL( oImgLst, "GetBitmap", 1 );
hBmp = (HBITMAP) hb_parnl( -1 );
Attached is the fixed source file.
> Is it right to call a method like TImageList:GetImageCount() in this way ?
> iCount = XA_ObjSendNL( oImgLst, "GetImageCount", 0 );
iCount = XA_ObjGetNL( oImgLst, "GetImageCount" );
> Also I've tried to modify the colors in the TComboColorBox but nothing
> changes.
> In the FormInitialize method I use this code
>
> ::oCmbFirst:aColors := ndColors() // ndColors returns an array of color
> values.
>
> What am i doing wrong ?
There was a bug in the control. Now it's fixed, thanks. Here you are the
fixed module.
--
Regards,
Jose F. Gimenez


Attached files ColorCombobox.zip (2.6 KB)Â xAPIControls.zip (1.4 KB)Â
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Custom control

Mensaje por jfgimenez »

Giuseppe,
sorry for the long delay. I completely missed this message :-(
> I've partly succeded in porting the WM_PAINT method in C.
> The drawing of gradient and text is working fine but the drawing of the
> bitmap is not
> working at all. Even if the counterpart in xHarbour works perfectly.
The problem is the call to XA_ObjSend???(). Those functions do not return
any value, but due a stupid typo, there is no warning or error when
compiling. Now I've just fixed it.
When calling any of the XA_ObjSend???() functions, its possible return value
have to be reached using hb_par??( -1 ). I.e:
XA_ObjSendNL( oImgLst, "GetBitmap", 1 );
hBmp = (HBITMAP) hb_parnl( -1 );
Attached is the fixed source file.
> Is it right to call a method like TImageList:GetImageCount() in this way ?
> iCount = XA_ObjSendNL( oImgLst, "GetImageCount", 0 );
iCount = XA_ObjGetNL( oImgLst, "GetImageCount" );
> Also I've tried to modify the colors in the TComboColorBox but nothing
> changes.
> In the FormInitialize method I use this code
>
> ::oCmbFirst:aColors := ndColors() // ndColors returns an array of color
> values.
>
> What am i doing wrong ?
There was a bug in the control. Now it's fixed, thanks. Here you are the
fixed module.
--
Regards,
Jose F. Gimenez


Attached files ColorCombobox.zip (2.6 KB)Â xAPIControls.zip (1.4 KB)Â
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Custom control

Mensaje por Giuseppe Bogetti »

Il Fri, 17 Feb 2006 11:05:46 +0100, Jose F. Gimenez ha scritto:
> Giuseppe,
>
> sorry for the long delay. I completely missed this message :-(
I'm not in a hurry so this is absolutely no problem :-)
>> Is it right to call a method like TImageList:GetImageCount() in this way ?
>> iCount = XA_ObjSendNL( oImgLst, "GetImageCount", 0 );
>
> iCount = XA_ObjGetNL( oImgLst, "GetImageCount" );
>
So every time I need to use a method that returns a value but doesn't
have any parameters I have to use XA_ObjGet... functions ?
When you can, please send me the instructions on how integrate the control into the IDE.
If you need to send them by email, you can use this address.
Thanks again for you kindness.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Custom control

Mensaje por Giuseppe Bogetti »

Il Fri, 17 Feb 2006 11:05:46 +0100, Jose F. Gimenez ha scritto:
> Giuseppe,
>
> sorry for the long delay. I completely missed this message :-(
I'm not in a hurry so this is absolutely no problem :-)
>> Is it right to call a method like TImageList:GetImageCount() in this way ?
>> iCount = XA_ObjSendNL( oImgLst, "GetImageCount", 0 );
>
> iCount = XA_ObjGetNL( oImgLst, "GetImageCount" );
>
So every time I need to use a method that returns a value but doesn't
have any parameters I have to use XA_ObjGet... functions ?
When you can, please send me the instructions on how integrate the control into the IDE.
If you need to send them by email, you can use this address.
Thanks again for you kindness.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Custom control

Mensaje por jfgimenez »

Guiseppe,
> So every time I need to use a method that returns a value but doesn't
> have any parameters I have to use XA_ObjGet... functions ?
Well, if that method doesn't have parameters and you need its return value,
yes, those are the correct functions. However, if that method require any
parameter and/or you don't need its return value, the correct function is
any of the XA_ObjSend???()
> When you can, please send me the instructions on how integrate the control
> into the IDE.
> If you need to send them by email, you can use this address.
There is already no support for 3rd party components, so I could send you a
copy of the IDE with this new control (I'll do it the next week).
FYI, we plan to support 3rd party components soon, perhaps in 2 or 3 months.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Custom control

Mensaje por jfgimenez »

Guiseppe,
> So every time I need to use a method that returns a value but doesn't
> have any parameters I have to use XA_ObjGet... functions ?
Well, if that method doesn't have parameters and you need its return value,
yes, those are the correct functions. However, if that method require any
parameter and/or you don't need its return value, the correct function is
any of the XA_ObjSend???()
> When you can, please send me the instructions on how integrate the control
> into the IDE.
> If you need to send them by email, you can use this address.
There is already no support for 3rd party components, so I could send you a
copy of the IDE with this new control (I'll do it the next week).
FYI, we plan to support 3rd party components soon, perhaps in 2 or 3 months.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Custom control

Mensaje por Giuseppe Bogetti »

Il Fri, 17 Feb 2006 12:26:09 +0100, Jose F. Gimenez ha scritto:
Jose,
>
> There is already no support for 3rd party components, so I could send you a
> copy of the IDE with this new control (I'll do it the next week).
>
> FYI, we plan to support 3rd party components soon, perhaps in 2 or 3 months.
Do as you wish. I'm willing to wait if something more important has to be done.
In the meantime I'll add some more controls to my library :-)
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Custom control

Mensaje por Giuseppe Bogetti »

Il Fri, 17 Feb 2006 12:26:09 +0100, Jose F. Gimenez ha scritto:
Jose,
>
> There is already no support for 3rd party components, so I could send you a
> copy of the IDE with this new control (I'll do it the next week).
>
> FYI, we plan to support 3rd party components soon, perhaps in 2 or 3 months.
Do as you wish. I'm willing to wait if something more important has to be done.
In the meantime I'll add some more controls to my library :-)
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Custom control

Mensaje por jfgimenez »

Giuseppe,
> In the meantime I'll add some more controls to my library :-)
Fantastic!
BTW, we plan to promote 3rd party components. The goal is to include many
3rd party components directly in the IDE (adding more tabs in the palette),
so everybody can test them in design mode.
Later, if somebody wants to use any of those components, he could contact
directly to the author, who could sell him a library.
Of course, if somebody wants to publish components for free, we may include
the library in the Xailer package as a contribution.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Custom control

Mensaje por jfgimenez »

Giuseppe,
> In the meantime I'll add some more controls to my library :-)
Fantastic!
BTW, we plan to promote 3rd party components. The goal is to include many
3rd party components directly in the IDE (adding more tabs in the palette),
so everybody can test them in design mode.
Later, if somebody wants to use any of those components, he could contact
directly to the author, who could sell him a library.
Of course, if somebody wants to publish components for free, we may include
the library in the Xailer package as a contribution.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder