Suggest for add new image dynamically in controls, with new methods.

Started by stephan_35 · 2009-09-07 13:00 UTC · 7 replies · SMF topic #906

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 :

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


Great idea ? no ?

Thanks
Best regards.
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.
author=owenwengerd link=topic=906.msg4523#msg4523 date=1252331531 wrote:
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.
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.
Have you added this to the {2}?

Fred
author=Fred Tomke link=topic=906.msg5757#msg5757 date=1260974301 wrote:
Have you added this to the {2}?


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.
author=Fred Tomke link=topic=906.msg5757#msg5757 date=1260974301 wrote:
Have you added this to the {2}?

Fred


Done  ;D
Note that the {2} function has since been added, so this functionality is now available in OpenDCL 8.