Re: Some patches

Maria Papendieck <[email protected]>
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hello Jeroen,

thank you for the quick fix. It would be great if the AntiAliasing was 
improved, too, but the toolkit patches were more important to us, anyway.

Best regards,
Maria

On 03.06.2014 11:02, Jeroen Frijters wrote:
> Hello Maria,
>
> Thank you for the patches. I've applied the toolkit patch with some minor style changes. Unfortunately the graphics patch breaks the setComposite_Alpha_SRCwithTextAntialias(java_.awt.GraphicsTest) test (available at http://ikvm.cvs.sourceforge.net/viewvc/ikvm/junit/src/java_/awt/GraphicsTest.java?view=markup).
>
> That code and the test was contributed by Volker Berlin of i-net software, so I don't want to change that without his input.
>
> Regards,
> Jeroen
>
>> -----Original Message-----
>> From: Maria Papendieck [mailto:[email protected]]
>> Sent: Tuesday, June 3, 2014 10:05
>> To: [email protected]
>> Subject: [Ikvm-developers] Some patches
>>
>> Hello everyone,
>>
>> first off, thank you for this great project! We are currently working on
>> a java code-editor control and use IKVM to cross-compile it to .Net. The
>> control works great in .Net. However, we had to do a custom IKVM build
>> to fix some issues. Could you please check if the changes can make it
>> into an official IKVM release? Note: the attached patches apply to IKVM
>> release 7.2.4630.5
>>
>> We had the following problems:
>>
>> 1. The code editor provides an autocompletion pop-up dialog as in any
>> standard IDE. The pop-up is a JWindow with focusableWindowState set to
>> false, so that it should never be focused. However, when clicking the
>> pop-up in the cross-compiled .Net editor, it gets focused. Therefore, we
>> now override the WndProc() method of ikvm.awt.UndecoratedForm and
>> explicitly ignore the WM_MOUSEACTIVATE message (see attached
>> toolkit.diff for details).
>>
>> 2. In the cross-compiled editor, copy/paste does not work correctly.
>> Text copied from another program cannot be pasted to the editor's
>> textarea. Inside the editor, copy/paste works fine. The fix is to invoke
>> Clipboard.getDataObject() from ikvm.awt.NetToolkit's thread (see
>> toolkit.diff).
>>
>> 3. Drawn text looks ugly, because the TextRenderingHint AntiAlias is
>> used. We changed this to TextRenderingHint.ClearTypeGridFit (see
>> graphics.diff).
>>
>> Best regards,
>> Maria
>>
>> --
>> Maria Papendieck                Phone: (+49) 0391 544569-34
>> pure-systems GmbH               Fax:   (+49) 0391 544569-90
>> --
>> pure-systems GmbH
>> Geschäftsführung: Danilo Beuche, Holger Papajewski Sitz der
>> Gesellschaft: Magdeburg
>> Registergericht: Amtsgericht Stendal, HRB 113044


-- 
Maria Papendieck                Phone: (+49) 0391 544569-34
pure-systems GmbH               Fax:   (+49) 0391 544569-90
-- 
pure-systems GmbH
Geschäftsführung: Danilo Beuche, Holger Papajewski
Sitz der Gesellschaft: Magdeburg
Registergericht: Amtsgericht Stendal, HRB 113044



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.