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.

enter image description here

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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -