Hello forum. |
Hi Tom,
If there's no way to disable a TextCollectorView, why not implement the method to always return true? Anyway, i think it's a pretty neat additon to have a text cursor that is shown, when the mouse is over a text view :-) Kind Regards Karsten --
Karsten Kusche - Dipl. Inf. - [hidden email] Georg Heeg eK - Köthen Handelsregister: Amtsgericht Dortmund A 12812 _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
On 11/29/2010 2:02 PM, Karsten wrote:
Hi Tom, The textcollector view could be wrapped in a wrapper that manipulates visibility and enablement, so perhaps make the method that tiny bit smarter: isEnabled |wrapper| wrapper := self findParent: [:each | each isKindOf: WidgetWrapper]. ^wrapper ifNil: [true] ifNotNil: [wrapper isEnabled]. I imagine this could be implemented much higher in the class hierarchy above TextCollectorView Reinout ------- Anyway, i think it's a pretty neat additon to have a text cursor that is shown, when the mouse is over a text view :-) -- ********************************************************************* Dit e-mailbericht is alleen bestemd voor de geadresseerde(n). Gebruik door anderen is niet toegestaan. Indien u niet degeadresseerde(n) bent wordt u verzocht de verzender hiervan op de hoogte te stellen en het bericht te verwijderen. Door de elektronische verzending kunnen aan de inhoud van dit bericht geen rechten worden ontleend. Soops B.V. is gevestigd te Amsterdam, Nederland, en is geregistreerd bij de Kamer van Koophandel onder nummer 33240368. Soops B.V. levert volgens de Fenit voorwaarden, gedeponeerd te Den Haag op 8 december 1994 onder nummer 1994/189. ********************************************************************** This e-mail message is intended to be exclusively for the addressee. If you are not the intended recipient you are kindly requested not to make any use whatsoever of the contents and to notify the sender immediately by returning this e-mail message. No rights can be derived from this message. Soops B.V. is a private limited liability company and has its seat at Amsterdam, The Netherlands and is registered with the Trade Registry of the Chamber of Commerce and Industry under number 33240368. Soops B.V. delivers according to the General Terms and Conditions of Business of Fenit, registered at The Hague, The Netherlands on December 8th, 1994, under number 1994/189 ********************************************************************** _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Thank you Mr Heeck.
On 11/29/2010 2:02 PM, Karsten wrote:
Now I like to implement the method #isEnabled for the class TextCollectorView. How is the correct way to do that? I do not see a state value or an enable flag or something like that. Or is there an another procedure? If there's no way to disable a TextCollectorView, why not implement the method to always return true? The textcollector view could be wrapped in a wrapper that manipulates visibility and enablement, so perhaps make the method that tiny bit smarter: isEnabled |wrapper| wrapper := self findParent: [:each | each isKindOf: WidgetWrapper]. ^wrapper ifNil: [true] ifNotNil: [wrapper isEnabled]. I imagine this could be implemented much higher in the class hierarchy above TextCollectorView Reinout -------
Kind Regards Karsten -- Karsten Kusche - Dipl. Inf. - [hidden email] Georg Heeg eK - Köthen Handelsregister: Amtsgericht Dortmund A 12812 _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- ********************************************************************* Dit e-mailbericht is alleen bestemd voor de geadresseerde(n). Gebruik door anderen is niet toegestaan. Indien u niet degeadresseerde(n) bent wordt u verzocht de verzender hiervan op de hoogte te stellen en het bericht te verwijderen. Door de elektronische verzending kunnen aan de inhoud van dit bericht geen rechten worden ontleend. Soops B.V. is gevestigd te Amsterdam, Nederland, en is geregistreerd bij de Kamer van Koophandel onder nummer 33240368. Soops B.V. levert volgens de Fenit voorwaarden, gedeponeerd te Den Haag op 8 december 1994 onder nummer 1994/189. ********************************************************************** This e-mail message is intended to be exclusively for the addressee. If you are not the intended recipient you are kindly requested not to make any use whatsoever of the contents and to notify the sender immediately by returning this e-mail message. No rights can be derived from this message. Soops B.V. is a private limited liability company and has its seat at Amsterdam, The Netherlands and is registered with the Trade Registry of the Chamber of Commerce and Industry under number 33240368. Soops B.V. delivers according to the General Terms and Conditions of Business of Fenit, registered at The Hague, The Netherlands on December 8th, 1994, under number 1994/189 ********************************************************************** _______________________________________________ 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 pic09467.gif (1K) Download Attachment |
Free forum by Nabble | Edit this page |