Quantcast
Channel: SyntaxEditor for Windows Forms - Recent Posts
Viewing all 930 articles
Browse latest View live

Re: Dynamic language performance issues

$
0
0

Hi Mike,

It would require rewriting our entire infrastructure.  This probably won't happen purely in WinForms but we do hope to eventually backport our newer API to WinForms.  It would be nice to have all the platforms (WPF, WinRT, Silverlight, and WinForms) on the same SyntaxEditor API so that languages could seamlessly work between the platforms.  Right now WinForms is the odd man out there.


Re: Dynamic language performance issues

$
0
0

OK. I hadn't realized the diffent versions used different APIs.

I had just assumed that you wrote one and then ported to the others.
(I know that's how the other vendors I use handle it... but I guess WinForms is older and you did a re-write for WPF.) 

Re: Problem with RegEx Replace

$
0
0

OK I guess the response I got to an earlier question - saying that VS was your model - was incorrect.

I pointed out to the customer that \b was not something I would normally expect someone to use and they admitted that they had used \b thinking 'blank'. ie. they meant to use \s.

Unfortunately they have run into enough unexpected results that they now perform RegEx replaces by copying the code to Notepad++, making the change there, and then copying it back.
(Notepad++ always seems to work the same as VS in the 'problem' scenarios I have checked.)

Re: Dynamic language performance issues

$
0
0

Hi Mike,

Yes we had the WinForms version for years before WPF was created.  Then when WPF came out we rewrote the product based on our past experience, trying to improve everything along the way.  The Silverlight and WinRT versions that were created later share a codebase with our WPF version.

Re: Problem with multi byte characters

$
0
0

Hm, we are now using build 320 and I can't really see a difference. Are there some settings, I have to change? I have enabled unicode and the encoding is UTF8.

When I change the selection, I need two steps to scroll through this one character ( 𤽜 ). The column, document length and offset also interpret this is as two characters (e.g. an empty document with only this one character has the length 2). When I only select one of both parts, the display of the character is broken (I get two empty boxes).

Re: Problem with multi byte characters

$
0
0

Hi Tobias,

The updates mentioned above were made in build 321.  You should upgrade to that build instead.

Intellisence icons

$
0
0

Dear all,

I devellop my own language and I use the intellisence to help end users to write codes.

I use this instruction to fill items in the instellisence:

memberListItemHashtable["MySuggestion"] = new IntelliPromptMemberListItem("MySuggestion", (int)ActiproSoftware.Products.SyntaxEditor.IconResource.Keyword);

 

To set the item icon, I can use only an integer parameter to choose one from default list(ActiproSoftware.Products.SyntaxEditor.IconResource).

My question:

It can be possible to specify a custom icon and how do it.

 

Thx and regards,

 

Montasser

Re: Intellisence icons

$
0
0

Hi Montasser,

While you can't pass a direct icon in there, you can set a custom ImageList on the IntelliPromptMemberList class. 

You can also get the existing ImageList we provide and add your own images to it.  Then just reference the index of the image you added in the list item.


Re: Intellisence icons

Razor support

$
0
0

Does SyntaxEditor have support for Razor syntax? If not, is it planned, and if so, what is the timeframe?

Thanks,

Gareth.

Re: Razor support

$
0
0

Hi Gareth,

Sorry but we don't have an example language definition for Razor, and don't have immediate plans to add one.  I do know that Microsoft originally used SyntaxEditor in it's first Web Matrix app as the Razor editor, so it should be possible to support it.

Is it possible to prevent text replacements from the find form

$
0
0

I have an editor that is set to read only, but i can still perform replacements. I'd like to be able to prevent replacements from happening. I'm thinking that I can watch for text replacements programmatically, but I'd much rather just disable the replace button in the find form.

What is the best method for me to prevent text replacement in an editor with text set to read only?

Re: Is it possible to prevent text replacements from the find form

$
0
0

I'm attempting to do this by hooking into the Document.TextChanging event and using the following code:

' Cancel all text replacements when the file is read only
Dim isReplacement As Boolean = e.Modification.Name.Contains("Replace") OrElse e.IsProgrammaticTextReplacement
e.Cancel = IsReadOnly AndAlso isReplacement

 Not sure if that's the best code, but my e.Cancel property ends up True after executing that code yet my file still has its text replaced from the find form. Is there something I'm doing wrong or misunderstanding here?

Re: Is there a way to do a silent install of ActiPro WinForms components

$
0
0

Could you please send me the instructions on how to do so ?

Re: Is there a way to do a silent install of ActiPro WinForms components

$
0
0

All you need to do is install the Registry hive with the keys for the license.

On my machine (64 bit) it resides here:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Actipro Software\WinForms Controls\14.1

If you just export this and then import it back into the registry Actipro works correctly in the release binary.


Re: Is there a way to do a silent install of ActiPro WinForms components

$
0
0

Just be sure you only do that on developer machines and not on end user machines, since for end users, the licensing will come from the .exe you compile when you follow the steps in the "Licensing" documentation topic.

Re: Is there a way to do a silent install of ActiPro WinForms components

$
0
0

Thanks. That is exaclty what we were looking for. It was for IT to install quietly on the developpers machines.

I do undertand how it works for the end-users licensing.

Cheers

Re: Is there a way to do a silent install of ActiPro WinForms components

$
0
0

Similar thing here. We do all our builds from a "clean machine" and we are saving precious build time by not having to actually run the installer for ActiPro.

Re: Is it possible to prevent text replacements from the find form

$
0
0

Hi James,

Thanks for letting us know about this.  The FindReplaceForm should really be doing checks for read-only documents here.  We've updated our code for the next maintenance release to add those checks and disable the replace buttons and their functionality if the document is read-only.

If you want to write our support address and reference this thread, we can send you the updated FindReplaceForm to use and that should fix your problem without you needing to do anything else.

Compatibility Issue between SyntaxEditor v4.0.0290 and .Net Framework 4.5

$
0
0

Ever since I installed the .NET Framework 4.5, my application has been experiencing pretty consistent app crashes whenever the SyntaxEditor method to open a file is called.  The specific exception, as reported by Visual Studio 2013 is:

An unhandled exception of type 'System.ExecutionEngineException' occurred in ActiproSoftware.SyntaxEditor.Net20.dll

I see the following two events in the Windows Application event log:

Event 1023:

Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 73FAA85B (73ED0000) with exit code 80131506.

Event 1000:

Faulting module name: clr.dll, version: 4.0.30319.34209, time stamp: 0x5348961e
Exception code: 0xc0000005
Fault offset: 0x000da85b
Faulting process id: 0x2648
Faulting application start time: 0x01d047961f938855
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll

 

I see this with Framework versions 4.5.1 and 4.5.2, on both 32 and 64-bit versions.  I uninstalled 4.5 and reinstalled 4.0 and the problem disappeared.  Wondering if you have seen this and can provide a patch to SE?  I've opened a bug report on Microsoft Connect, but I'm not hopeful

Viewing all 930 articles
Browse latest View live