NetAdvantage Current Version: 10.2
Currently, I have a FormattedTextEditor in use as the editor for cells in a child band column of an UltraWinGrid. This editor is used to display colored/formatted text and embedded images.
Under Windows Server 2003 the context menu displays several options which include insert image, font, create hyperlink, insert hyperlink. When the same application was installed in a Windows 7 machine all of these options have disappeared from the context menu ( except Line Alignment).
Is there some Windows 7 specific setting I need to be aware of or some other reason these menu options do not display?
thanks for any help with this.
To the best of my knowledge the formatted text editor does not display a custom context menu, it shows a basic cut/copy/paste menu. My guess is that your application code is displaying it, and possibly doing something differently based on the operating system.
And the version is actually 9.2 of NetAdvantage not 10.2. Sorry about the mix up.
Same answer. Neither editor shows a context menu like the one you described. You must be doing it without realizing it.
Interesting.
So you are saying that when I set the ContextMenuItems property of the embedded (in the cell)FormattedLinkEditor to FormattedLinkLabel.FormattedTextMenuItems.All that it won't show Font, Image or hyperlink menus despite the fact that these are options in the FormattedTextMenuItems enum that are listed in the documentation? Below is the enum text from v8.2 which I checked has not changed significantly up to the present 10.3 (except for the addition of the Strikeout value). The ContextMenuItems property is the only thing being manipulated programmatically for that editor.
FormattedTextMenuItems Enumeration
Hi,
I tried this out on my machine, which is running Windows 7, and it works just fine for me. I see all three of the menu items. I can't see any reason why the operating system would make any difference here. So it's probably some other difference on the machine.
Maybe you are using a different version of the controls? Perhaps your other machine has the latest service release installed but your Windows 7 machine does not?
I'm glad you have solved the problem.
I will close the case now.
Michael S.
OK. I've solved the problem.
Basically one needs to manually add the Infragistics.Win.SupportDialogs dll to the project. I found this while checking through the FormattedTextMenuItems enum in the Object Browser and noted that the remarks for certain values (Font, Image, etc) the remarks make mention of this assembly. Notably, the Summary for the All enum value (which was the setting used in our app) does not make mention of this assembly.
I have not checked 10.2 or 10.3 but if not already there it might be a good idea to include it in those remarks for future releases and/or make the dependency a bit more obvious in the documentation.
thanks
Hi Mike,
Thanks for checking it out.
Just to confirm, was that with the v9.2 of NetAdvantage? The Win7 machine itself has 10.2 installed for development use but the application in question is built with v9.2 (on a separate legacy Win2k3 development machine).