How to use a custom icon in a dolphin smalltalk treeview? -
in dolphin smalltalk treeview i'd use custom icon, depending on state of item displayed, (differente state, different icon) how can ?
i cannot understand how use "my" icon. i've create class "connection", instance variable "connected" , 2 class methods "connectedicon , unconnectedicon returns icon images. instance function "icon" returns 1 or other image based on connection state.
i can add instances of class tree view , see name of connections. how show icons ?
i tried sustitute getimageblock of presenter view following expression [:obj | obj icon] doesn't work. (nothing seems happen).
this made in presenter initialize :
initialize super initialize. treepresenter view getimageblock: [:obj | obj icon]
what's wrong ? best regards maurizio
when editing treeview, 1 of properties getimageblock. default not block object understands message #'value:' (the class iconiclistabstract). can replace property code block (or other object understands #'value:') , answer image want displayed.
Comments
Post a Comment