Peter Kiers
asked on
Toolbar icons only visible in designtime not in runtime
Dear Experts,
I have an TImageList component on my form with some icons loaded.
I have hooked up the TImageList to the MainMenu and the Toolbar
And set the icons for every item.
I designtime the icons appears on the buttons but when i run the
application there are no images on the buttons.
What do i do wrong, who can help me.
Pk
I have an TImageList component on my form with some icons loaded.
I have hooked up the TImageList to the MainMenu and the Toolbar
And set the icons for every item.
I designtime the icons appears on the buttons but when i run the
application there are no images on the buttons.
What do i do wrong, who can help me.
Pk
Did you use an actionlist ?
ASKER
I did but i have deleded the actionlist component.
Try setting one or two of the images at run time and see if they show up too.
See if it is just a refresh issue.
See if it is just a refresh issue.
ASKER
I did it again, I have set the ImageIndex to 0 (of button NewBtn) for the image.
It shows in Designtime but not in runtime.
It shows in Designtime but not in runtime.
ASKER
really strange, I don't understand!
just my 2 cents:
if you use an actionlist you need to assign the images to that actionlist, and to the toolbar, and to the mainmenu
set all properties for each separate action, and afterwards assign the action to the menu or toolbar button
the action will copy it's settings to the relevant component (menu or button)
then you deleted all the actions ?
if you use an actionlist you need to assign the images to that actionlist, and to the toolbar, and to the mainmenu
set all properties for each separate action, and afterwards assign the action to the menu or toolbar button
the action will copy it's settings to the relevant component (menu or button)
then you deleted all the actions ?
ASKER
Could you help me with this telling me step by step?
ASKER
Ignore my previous comment, and let me refrase the question:
Is it possible to get icons in the menu-item and on the toolbar-buttons wihout
using a TActionList?
P.
Is it possible to get icons in the menu-item and on the toolbar-buttons wihout
using a TActionList?
P.
do you want a longer answer than "yes" ?
ASKER
yes
i gues i posted in the wrong Q ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok thanks.
mainmenu.Images := nil;
or to some other imagelist ?