Hello forum.
Hello forum. I have to upgrade an already existing custom list view (subclass: View). Until now each list item included only simple visual components, like text labels and images. But no interactive components, like action buttons, etc. Now my task is to display a working action button in a list item, if it is selected. I don't like to reinvent the list component, so I've tried to display a ActionButtonView into the GraphicsContext. But all my approach failed. Until now, my best and also simplest try was: buttonView := myBuilder policy actionButtonClass new. buttonView label: anImage. buttonView displayOn: aGraphicsContext at: aPoint. The button is displayed in the list. But I am not able to make it working. I cannot assign the desired action. Also the fly-by-help does not work. Assigning the proper controller seem not to help. buttonView controller: buttonView defaultController. Can someone give me an advice please? And in general: Is this a good or a bad approach? And how to get the default "actionButtonClass" without using the builder? I've tried to get the information by the DefaultLookPolicy. Without success. Thank you for your answers. Best regards, Tom Grünewald ________ Carl Zeiss Industrielle Messtechnik GmbH Softwareentwicklung/Software Development T o m G r ü n e w a l d 73446 Oberkochen, Germany tel: +49.7364.20-8541 fax: +49.7364.20-4800 email: [hidden email] http://www.zeiss.de/imt Carl Zeiss Industrielle Messtechnik GmbH Carl–Zeiss–Straße 22, 73447 Oberkochen Aufsichtsratsvorsitzender: Dr. Dieter Kurz Geschäftsführer: Dr. Rainer Ohnheiser, Felix Hoben, Axel Jaeger Sitz der Gesellschaft: 73446 Oberkochen, Deutschland Handelsregister: Amtsgericht Ulm, HRB 501561 USt–IdNr.: DE 811 515 346 ---------------------------------------- This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc ---------------------------------------- This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc pic22385.gif (1K) Download Attachment |
Free forum by Nabble | Edit this page |