Regarding selecting GoText

Hi,

I would like GoText which has editable set to true,
become selectable on first mouse click
become editable on next mouse click.
But it is always going to editable mode on
very first click. I tried overriding
DoBeginEdit/GotLostSelection but could
not solve this. Could you please help us to resolve this.
Thanks/.

Set GoText.EditableWhenSelected = true;

I have also the same problem. but GoText.EditableWhenSelected propert is not present in the Gotext class(i am using 2.4.1 version of godiagram). can someone help me out to resolve this problem

[QUOTE=sanjeev]I have also the same problem. but GoText.EditableWhenSelected propert is not present in the Gotext class(i am using 2.4.1 version of godiagram). can someone help me out to resolve this problem

[/quote]

Why do you need editable also enabled? Can’t you just override the AddSelectionHandles or something similar to say when the object is selected change Editable to true. Then you’re sorted.

Otherwise just use another temporary variable to store the selected state…

EditableWhenSelected was added in 3.0. You probably could implement it yourself, but I will say it’s non-trivial, and requires work in GoTool selection handling. It’s easier to upgrade to 3.0.