[Mono-winforms-list] MS Access DataBase and Winforms on MONO Linux
Hi All, Please any one help because I am stuck with this problem for some time! I have a application that is developed in .net 2.0 vs2005, and uses a access data base. But now this application shold work on linux (openSuSE). I tried it to start it with mono on openSuSE and the application runs untill there is no connection to database. The moment when the app needs any data from the database, the app crashes. I was reading and surfing around and I found that the GNOME.org has a library for access data base connection. I am installing it but still the same error. Please suggest, help if any. With best regards, Dimce Ivanoski -- View this message in context: http://www.nabble.com/MS-Access-DataBase-and-Winforms-on-MONO-Linux-tp21551515p21551515.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Re: [Mono-winforms-list] Treeview with svn123706
Hey - check out bug 46722it might be related. David -- View this message in context: http://www.nabble.com/Treeview-with-svn123706-tp21522757p2152.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[Mono-winforms-list] WinForms + WebKit + Mac OS X
Hi, I'm trying to use WebKit in a C# WinForms application running on Mac OS X and I have problems. Currently, I'm able to put WebKit control on System.Windows.Forms.Form instance, but it has rendering problems: the WebKit is overdrawn by the form background. It might have other event-related issues--not sure currently. Other approach was to create a native Carbon window using HIWindowCreate and put WebKit there. This works for WebKit, but not for WinForms controls: e.g., a Button added to such native window is painted, but doesn't respond to events (click, etc.) I _need_ both WinForms controls and WebKit[1] in one window. What I'm missing and what are the odds that this could be accomplished? More related details: The WinForms application is a sample with the only bare Form generated in Visual Studio. I'm using WebInitForCarbon() + HIWebViewCreate() to get a raw HIView pointer. I'm using Monobjc to wrap the native handle into WebView class and load a simple request--this part works w/o a problem. Any help and suggestions are very much appreciated. :) -- Cheers, Alex [1] Preferrably, but any other decent browser engine (like Gecko) will do the trick. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[Mono-winforms-list] OSX TextBox accepts no input?
I'm kind of baffled by this. I can create a Form object and add a TextBox object to it. I can give the TextBox focus and get a cursor. Nothing I type while the TextBox has focus shows up. gmcs and mono both report version 1.9. Code follows: using System.Windows.Forms; using System.Drawing; public class MyC : Form { public MyC() { Text = "Simple"; Size = new Size(250, 200); TextBox tb = new TextBox(); tb.Parent = this; tb.Location = new Point(5,5); tb.Size = new Size(200,180); tb.Multiline = true; tb.ScrollBars = ScrollBars.Vertical; tb.AcceptsReturn = true; tb.AcceptsTab = true; tb.WordWrap = false; CenterToScreen(); } static public void Main() { Application.Run(new MyC()); } } I'm compiling thusly: gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll MyC.cs If there's something wrong with my code, I can't find it. Is this just a limitation of mono on OS X? -- View this message in context: http://www.nabble.com/OSX-TextBox-accepts-no-input--tp21567608p21567608.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Re: [Mono-winforms-list] OSX TextBox accepts no input?
You need to add "this.Controls.Add(tb);" towards the end of your constructor. http://msdn.microsoft.com/en-us/library/aa287574(VS.71).aspx gohanman wrote: > > I'm kind of baffled by this. I can create a Form object and add a TextBox > object to it. I can give the TextBox focus and get a cursor. Nothing I > type while the TextBox has focus shows up. gmcs and mono both report > version 1.9. Code follows: > > using System.Windows.Forms; > using System.Drawing; > > public class MyC : Form > { > public MyC() > { > Text = "Simple"; > Size = new Size(250, 200); > TextBox tb = new TextBox(); > tb.Parent = this; > tb.Location = new Point(5,5); > tb.Size = new Size(200,180); > tb.Multiline = true; > tb.ScrollBars = ScrollBars.Vertical; > tb.AcceptsReturn = true; > tb.AcceptsTab = true; > tb.WordWrap = false; > > CenterToScreen(); > } > > static public void Main() > { >Application.Run(new MyC()); > } > } > > I'm compiling thusly: > gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll MyC.cs > > If there's something wrong with my code, I can't find it. Is this just a > limitation of mono on OS X? > -- View this message in context: http://www.nabble.com/OSX-TextBox-accepts-no-input--tp21567608p21576886.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Re: [Mono-winforms-list] [Mono-dev] Complex script / international support in Winforms/libgdiplus
On Fri, 2009-01-23 at 10:34 +0700, Jonathan Anderson wrote: > Hello, > > I posted a note on mono-devel a couple months ago about possible work on > libgdiplus to get pango support working well. I've been working on > doing just that for a little while now, and I'm getting close to having > something that does reasonably well within the gdi+ framework. That's great news! > I don't > have all the formatting options supported yet, but then again, it > doesn't look like the current cairo text module does either. Right. Only the most "common" formatting options are supported. A few of them have some limitations as well. > With getting pango working, it will be able to render complex scripts > correctly to support languages like Arabic, Thai, Hebrew, Burmese, etc. > I'm currently doing some volunteer work for SIL Internatioal > (www.sil.org) where we do lots of work with minority and complex > scripts, so this support is essential for widespread adoption of mono, > which we're using to do ports of windows forms apps. > > However, I've discovered that getting pango working in libgdiplus is > only part of the story for getting good complex script support in > winforms. With pango in libgdiplus, you get well-rendered strings for > any controls that just draw a whole string, which is most controls, > although some need work on right-to-left support. The TextBox control > and any controls that share the TextBoxBase implementation > (MaskedTextBox, RtfTextBox) are where the biggest problems are. > > The problem is that the implementation of the TextBox makes some very > basic assumptions that don't work for complex scripts, i.e. the width of > a string is not necessarily equal to the sum of the widths of the > individual characters. This can even be true for Latin fonts that use > kerning and ligatures like ae, ff, and fi. Also, separate code points > can form one grapheme (one rendered symbol). All this causes problems > with selection, caret placement, and line breaking. > > Now, all that being said, I've been working on the TextBox as well to > improve the implementation. I'm not done yet, so I don't have any good > code to post here yet. One of the problems that I'm working against is > that the gdi+ interface doesn't supply the information needed to do the > TextBox correctly, that is, if I want to work with libgdiplus to make > the pango calls, I'll need to add some linux-specific functions that I > can call for text metrics. I noticed there are some other functions in > libgdiplus with "_linux" in the names, so I'm assuming that this won't > be a huge problem - otherwise, a lot of code for the cairo/pango > interaction would have to be copied into winforms. It's hard to say without seeing the code. Winforms does not depend, directly, on libgdiplus, System.Drawing does. *_linux functions are used in limited cases (like some OS specific stuff to generalize creating a graphic instance). At the end both Mono's System.Drawing and Winforms* needs to be able to execute under Windows. * Mono's Winforms also needs to be able to execute on top on MS S.D. > I'm doing the extra text metrics by adding methods in the > TextBoxTextRenderer class, which seemed to be the best place to do that. > For the Windows side of things, I'm having it make calls to gdi, which > provides some better metrics than gdi+, although not quite everything > I'd like. I can fill in the rest by making best guesses which won't be > any worse than the current situation. Since complex script rendering > through gdi gets passed into uniscribe on Windows, I think that gdi may > be a good place to start, but it would probably be best to use uniscribe > directly at some point in the future for the best complex script support > in Windows. One of the problems with the vanilla gdi interface is > handling drawing bits of text in different colors like you could get > with the RtfTextBox or with any selection, whereas uniscribe provides > methods to do that sort of thing. > > I just wanted to let everyone know that I'm working on this, and I > wanted to see if the direction I'm taking using TextBoxTextRenderer and > libgdiplus seemed appropriate. Also, as I'll have a good bit of code > for both libgdiplus and winforms that will depend on each other, what's > the best way for me to get it into the project once I've got it working. On each other ? Really ? because I don't see why libgdiplus would depend on winforms changes (unless you meant S.D versus Winforms). Generally you should plan to merge the libgdiplus changes first, then System.Drawing and finally Winforms. Of course it's quite possible that it will require more than a single iteration. > I know I'll need to have all the current unit tests passing with new > code, and quite possibly some new tests. Yep, new features will need new tests. There are also a lot of open bugs (most with test cases) about string drawing/measuring that should be helpful. > Also, I m
[Mono-winforms-list] Windows Form with Crystal Viewer
Hello, I know it`s hard but i need to run application Windows Form with Crystal Viewer on Linux. Someone had some experience like? -- View this message in context: http://www.nabble.com/Windows-Form-with-Crystal-Viewer-tp21762831p21762831.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[Mono-winforms-list] Problem with accessiblename property
Hi, I have a c# winforms application developed with VS2008. It runs merrily on a Suse Linux VM until the code tries to use the .AccessibleName property of a Label control. It then crashes. The same code runs OK back on the Windows development box which is referencing the Mono.Data and Mono.Data.tds dll's. Using MessageBox debugging I have ascertained that the code does not error when setting .AccessibleName to a value. However when checking for that value later in the code in the .AccessibleName attribute it isn't there. The same is also true about the AccessibleDescription property. I am an enthusiastic newbie to Mono and I am impressed with performance of the .Net c# running on Linux. Any comments or pointers would be most appreciated. regards Aardsoft -- View this message in context: http://www.nabble.com/Problem-with-accessiblename-property-tp21777910p21777910.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Re: [Mono-winforms-list] [Mono-dev] libgdiplus pango patch
Hello Jonathan, On Tue, 2009-02-10 at 13:53 +0700, Jonathan Anderson wrote: > Hi all, > > I was wondering if anyone has had a chance to look at my patch submitted > last week yet. Any and all feedback is appreciated, and if I need to do > some more work to get this accepted, I just need to know what to do. I only had a quick look last week, but will look at it more carefully soon. A quick comment: it needs a ChangeLog ;-) > Should I create a bug in the tracker to help track the work on complex > script support? Yes, that would be useful - which brings me to a "long term" comment: libgdiplus can't switch to pango output until it becomes a superset of the features that it currently (custom text renderer) support - i.e. complex script support is awesome but not enough as many people depends on other features not yet available in the pango renderer. > Thanks, > Jonathan Anderson > > Jonathan Anderson wrote: > > I mentioned earlier that I was doing work to get pango support working > > properly in libgdiplus. Here's a patch with my work so far. Most of > > the formatting options are supported, but some of them aren't (like > > digit substitution), and some are not fully supported (like certain > > string trimming behavior). I did my best to match gdi+ behavior as seen > > on Windows for things like white space trimming, new lines, wrapping, > > etc. I've tested most of the options that I worked on with the > > exception of tab stops. > > > > Let me know what you think. > > > > I'm getting ready to do work on the TextBox control to get it to handle > > complex scripts better as well. This will most likely end up in putting > > some pango and uniscribe (for Windows) calls in the TextBoxTextRenderer > > class. One question I have about this, is would it be possible to have > > the Windows TextBox use pango? I know that pango on windows will pass > > things through to uniscribe, and it would be easier to not have to use > > two different text rendering backends if possible. > > > > Jonathan Anderson > > > ___ > Mono-devel-list mailing list > mono-devel-l...@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[Mono-winforms-list] third party tools
Hello: I am using visual studio 2005 and third party tools like a datagrid and input controls. It is possible to run this app in linux and Mac or i must use only the default controls that comes in vs2005. Thanks Pablo -- View this message in context: http://www.nabble.com/third-party-tools-tp21997998p21997998.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[Mono-winforms-list] Missing Text in WinForms Applications
First, I would like to thank all those who have put a tremendous amount of effort into getting mono running on other platforms. I have been aware of the mono project for years, but have never had a need for it until now. I am trying to run some basic WinForms applications using mono on Fedora 10. Thus, I installed mono 1.9.1. Everywhere there is text on the applications, whether the menu, buttons, checkbox controls, or anything else, my text has been redacted. In other words, there is no text there, just a black hole. Now, I have been out of the Unix / Linux loop for years now, and have not been very familiar with the current state of affairs. I am sure this problem I am having is a simple configuration issue, and I have tried looking about, but have not been able to find an answer. Anyone who can help me with this, I would greatly appreciate it. -- View this message in context: http://www.nabble.com/Missing-Text-in-WinForms-Applications-tp22032464p22032464.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Re: [Mono-winforms-list] MS Access DataBase and Winforms on MONO Linux
Hi, so you use Gnome-DB (libgda & libgnomedb) with mdbtools ? I was facing the same situation a few month ago, but did not set it up yet. Maybe this may help you : http://www.gnome-db.org/Manual or man gda-config-3.0 Thomas -- View this message in context: http://www.nabble.com/MS-Access-DataBase-and-Winforms-on-MONO-Linux-tp21551515p22156930.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list