views:

224

answers:

1

Hi,

How can I enable discontinuous multiple text selection in Internet Explorer? I tried IDM_MULTIPLESELECTION but that seems only to work for objects in edit mode and not for text.

FF3 seems to have multiple selection enabled by default and works by clicking the ctrl key.

I am using IE8. A code sample in any language is fine.

Any help would be very much appreciated.

Thanks

+1  A: 

Quoting bobince within question "textRange selection MSIE"

IE doesn't support multiple concurrent selected TextRanges, whether programmatically or manually selected. You can have a ControlRange of multiple selected elements, but not stretches of text.

It's possible for other browsers that embed the Web Browser control to support multiple text ranges:

Host applications can provide a multiple selection mechanism and can return a collection of TextRange objects that represents discontinuous selections.

But as of today IE doesn't, and I don't know of any other host application that does. Or indeed of any other browser than Firefox 3 that allows it.

jakeisonline
Hi Jake, Thank you for the comment. Do host apps implement multiple selections by adding the selections to selectionservices? I am able to add them to the selectionservices but I am not don't know how to turn on the selection for them.
Mode
Sorry, unknown, I am simple quoting bobince - however it looks from his answer that multiple selection, with or without selectionservices populated, IE simply will not support it.
jakeisonline
Got it. Thanks Jake
Mode