Hi,
Does anyone know a way that hyperlink can be opened or the link clicked event raised in the UltraFormattedTextEditor without needing to hold the control key down?
Within our application then the same data is displayed in 2 different places, one within an UltraFormattedTextEditor embedded in an UltraGridCell and another just in a standalone UltraFormattedTextEditor. In the case where it is in a grid cell then the holding of the control key is not required to open a link, and in the standalone case it is.
Our users are complaining that this behavior is inconsistent and that the standalone case is not intuitive.
I don't seem to be able to work out when I am over a link, this also relates to another problem where I would like to implement a "Save As..." item on our custom context menu, but can't find any way to get the link information out from the control at the point the mouse was right clicked to activate the context menu.
This is using 8.2 with the latest hotfix.
Many Thanks
Chris
Hi ,
Can you please paste the code snippet here so that I can refer it. I want the ultraformattedtexteditor in the way that the link text cannot be deleted (read only mode) and simple text can be deleted etc. Can you sugegst some ideas. Or copy paste your code here.
I'd be interested in how you got this to work, I have the same issue.
I see, thanks for your help - I've submitted a feature request and referenced this thread.
The request asks to be able to toggle the control key requirement in order to mimic the behaviour of Outlook where when composing an emil you can also click on links directy. This is different to MS Word's behaviour that requires a Ctrl-Click (but this does display a tool tip).
Hi Chris,
EuroComEntSoft said:One thing that seems slightly unintuative though is that setting the ReadOnly flag on the editor doesn't achieve the same behaviour. Is there any logic that I am missing here?
ReadOnly makes it so that you cannot edit, but you can still select text in the control. So this is something of a gray area in terms of what happens when you click a link. The control probably should expose a property to determine whether the control key is required or not. I recommend that you Submit a feature request to Infragistics
Hi Mike,
Thats been really useful. I now have the behaviour that we require, and have certainly saved many bug reports / feature requests from our users.
On my control that extends an UltraFormattedTextEditor I'm exiting edit mode via a call to the InternalEditor.ExitEditMode function, and cancelling attempts to enter edit mode in the BeforeEnterEditMode event since clicking a link entered edit mode.
One thing that seems slightly unintuative though is that setting the ReadOnly flag on the editor doesn't achieve the same behaviour. Is there any logic that I am missing here?
Thanks once again.