Load icon(internal sets) to control.label property in a script dialog

I would like to load an icon from this internal icon sets (DOpus10XP)

I've tried that and it doesn't work :

dlg.control("text_menu_image").label = "DOpus10XP:extract"

or

Dim icon
set icon = dopus.loadimage("DOpus10XP:extract")

Can it be done with internal icon sets ?

Thanks

At least currently, LoadImage only works on external files (image files, .ico files, etc.), as well as those file types bundled with the script (as a .osp file).

(The label property won't load anything on its own, but can be passed the object you get from LoadImage, so it's effectively also limited to the same types of files.)

I hope v13 can support loading internal icons.
e.g. DOpus.LoadImage("getsizes") or Script.LoadImage("getsizes")

In the next beta you'll be able to use LoadImage("#getsizes") to do that.

2 Likes