OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on September 07, 2009, 06:00:26 AM

Title: Suggest for add new image dynamically in controls, with new methods.
Post by: stephan_35 on September 07, 2009, 06:00:26 AM
Hello Owen,

Could it be possible to add 3 new method about image for some controls.(TreeControl, for example)

My problem is i would like to know it it's possible to add more image dynamically in treecontrol

Why ?

Maybe this could open more functionnality to develop what we want.

Example, i would like to let the user set himself image in a treecontrol, like cutomise my tree.

How ?

With 3 new methods :

First, add image in the image List.
Two, Delete image in the image List.
Thirs, change an image in the image List.

This functionnality could not be definitly write in odcl file (i think), that is for developper to set himself the lisp for reload the last definition set by user.

Something like :
Code (autolisp) Select

(dcl_Tree_AddItemImages Project_Pal1_Tree1 ImagePath [as Full PAth] )
; return new image index or nil if failed !!!


Great idea ? no ?

Thanks
Best regards.
Title: Re: Suggest for add new image dynamically in controls, with new methods.
Post by: owenwengerd on September 07, 2009, 06:52:11 AM
That's a good idea.  The functions should work directly with the image list so that they work with any control that uses an image list.
Title: Re: Suggest for add new image dynamically in controls, with new methods.
Post by: stephan_35 on September 07, 2009, 07:14:58 AM
Quote from: owenwengerd on September 07, 2009, 06:52:11 AM
That's a good idea.  The functions should work directly with the image list so that they work with any control that uses an image list.

Very pleased to read this !  :D

Mean TreeControl, ImagesCombo, TabStrip and Grid .

But maybe lot of time to spend before getting something work ?

Thanks,

Best regards.
Title: What's new ?
Post by: stephan_35 on December 16, 2009, 05:49:18 AM
Hi,

I wonder if this new feature might interest many people?

From my side, obviously I found of particular interest:
Allowing users to customize their own icons in applications developer authorizes it to do (always in relation to my treeview)

Thank you for keeping me informed on the importance of this project, validation, and its future implementation.

Best regards, Stéphan.
Title: Re: Suggest for add new image dynamically in controls, with new methods.
Post by: Fred Tomke on December 16, 2009, 06:38:21 AM
Have you added this to the feature request list (http://sourceforge.net/tracker/?group_id=187950&atid=923366)?

Fred
Title: Re: Suggest for add new image dynamically in controls, with new methods.
Post by: stephan_35 on December 16, 2009, 08:09:10 AM
Quote from: Fred Tomke on December 16, 2009, 06:38:21 AM
Have you added this to the feature request list (http://sourceforge.net/tracker/?group_id=187950&atid=923366)?

Oops, I can't remember if i 've done it  :(

I remember a trouble with sourceforge identification , maybe i gave up ...  :(

I'll try again.

Best regards.
Title: Re: Suggest for add new image dynamically in controls, with new methods.
Post by: stephan_35 on December 16, 2009, 12:16:28 PM
Quote from: Fred Tomke on December 16, 2009, 06:38:21 AM
Have you added this to the feature request list (http://sourceforge.net/tracker/?group_id=187950&atid=923366)?

Fred

Done  ;D
Title: Re: Suggest for add new image dynamically in controls, with new methods.
Post by: owenwengerd on June 17, 2015, 12:27:51 PM
Note that the (dcl-ImageList-SetAt) (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/ImageList/SetAt.htm) function has since been added, so this functionality is now available in OpenDCL 8.