delphi - How to add thumb images to TRzGroup Item Menus -
i creating sidebar images of trzgroup. have created trzgroup caption print , added item named print it. planning add small printer icon image @ left hand side of menu item shown in figure @ bottom. how can done ?
object rzgroup2: trzgroup items = < item caption = 'print' imageindex = 4 onclick = rzgroup2items0click end> opened = true openedheight = 47 dividervisible = false smallimages = imagelist1 special = true caption = 'print now' parentcolor = false end while code extracted somewhere in code smallimage attribute assigned imagelist1. assume image menu. checked @ object inspector there smallimages property not sure how create imagelist1 , assign smallimages.

drop timagelist delphi component palette (win32 page) onto form (or in data module used form). double-click new timagelist, click add button on imagelist editor appears, , add images. close `imagelist editor'.
go form. click on rzgroup2 item, , drop down list in object inspector smallimages property, , choose imagelist added in first step.
set imageindex of print item appropriate index in imagelist assigned rzgroup in previous step.
Comments
Post a Comment