ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I started using Monodevelop in Linux Mint, to write up a gui in c#, but I'm finding using gtk to make a gui isn't
as easy as it is in Visual Studio (in Windows). One problem I've run into is when I add a "text view" widget
it's only showing 1 line for text, and it isn't wrapping text, I'm not sure why.
There's no toggle for the widget setting for text wrapping either.
Anyone know how to get it so a text window in Monodevelop is capable of multiple lines ?
Sorry, I think I found the problem, I added an Entry instead of a TextBox,
now I have multiple lines including a workable scrollbar.
Although, on the MonoDevelop website they have an example of using TextBox : https://www.monodevelop.com/document...-gui-designer/
which uses a buffer for (delayed) sending text to the textbox.
Anyone know why ? and if there's a more immediate way to append/add text to the textbox ?
Ok, thanks.
Hopefully last question regarding this textbox in MonoDevelop.
When I write a simple loop to generate some text, it doesn't show the
text, nor update the progressbar, until after the loop is actually over, code here :
Yea, I think that describes the problem going on
This makes making GUIs with MonoDevelop & GTK a lot more complex than I prefer,
especially after using the much simpler Visual Studio on Windows.
Does anyone know a alternative to MonoDevelop that makes it simple for creating GUIs to
work with C#, C, or C++ on Linux Mint ?
Sorry if I sound lazy, I just don't like spending extensive amount of time dinking around
with having to code and/or design GUIs and getting them to work
I'm not sure if there is another C# IDE but of course there are many C and C++ alternatives. Are they simpler? I guess that's a judgement call.
I use C# and VS extensively, on Windows, in my professional life and it can get pretty complex depending of course on the complexity of the project and the gui library.
All the gui libraries I've used have some form of loop in which events are handled. Updates outside of the thread where the loop runs usually require some tap dancing to manage data integrity; in the main event thread, timing issues often require management.
I recently took a new look at some of the libraries around for C and C++ gui development. I personally wound up continuing with QT though I'm opting to learn to use it without relying on the macros that often seem to muddy things (for me). Ultimate++ is an IDE for cross-platform C++ development with a strong business leaning (i.e. its libraries are oriented towards business applications) that impressed me but since my personal interests don't run to doing business applications the QT libraries were of greater interest to me.
GTK has been ported to many languages and so there might be an advantage to learning it, I suppose depending on your own approach to programming.
Does anyone know a alternative to MonoDevelop that makes it simple for creating GUIs to work with C#, C, or C++ on Linux Mint ?
Sorry if I sound lazy, I just don't like spending extensive amount of time dinking around
with having to code and/or design GUIs and getting them to work
Glade is the GUI builder for GTK. For a complex GUI, using Glade is much easier than writing C code.
That being said, GTK is not particularly good at minimizing the number of lines of code. A simple GUI starts at around 500 lines. Once written, that can be used as a template for additional GUIs.
Ed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.