How does one go about adding icons to tabs and menu items?
Sorry if this has been discussed before; I did a search but was unable to find anything.


MrSnowflake wrote:I can only say this about the menu, but when you do:Using java Syntax Highlighting
menu.addItem(0, 0, 0, "MenuItem");Parsed in 0.033 seconds, using GeSHi 1.0.8.4
It returns a MenuItem object. Use this to set an icon.Using java Syntax Highlighting
MenuItem item = menu.addItem(0, 0, 0, "MenuItem"); item.setIcon(); Parsed in 0.034 seconds, using GeSHi 1.0.8.4
For such questions there's documentation, if you looked at the Menu.addItem() you'd see there's a MenuItem returned!

Return to View, Layout & Resource Problems
Users browsing this forum: No registered users and 10 guests