|  | windows dev, cross-platform GUI? |  | |
| | | Guest |  |
| Posted: Wed Aug 27, 2008 2:24 pm Post subject: windows dev, cross-platform GUI? |  |
I'm developing a GUI app on Windows XP. I'd like it to look native (or at least, look good) on Windows, but I would also like to be able to port it to another platform if a future client wants.
Of course I'm hesitant to use Windows API, since to port it requires rewriting the whole display part.
Is there a simple solution? A cross-platform GUI library? After a day's work on GTK+, I haven't figured out how to get a test program to compile in Windows environment. I probably could if I kept up the effort (though strangely there's no tutorial). Is this the way I should go, or should I be looking into other options?
(I also looked into perl/Tk, but IMHO the GUI windows didn't look very good.) |
| |
| | | Juha Nieminen |  |
| Posted: Wed Aug 27, 2008 2:24 pm Post subject: Re: windows dev, cross-platform GUI? |  |
steve.breslin@gmail.com wrote:
| Quote: | Is there a simple solution? A cross-platform GUI library? After a day's work on GTK+, I haven't figured out how to get a test program to compile in Windows environment.
|
It is possible to compile and run Gtk+ programs for Windows, but IMO they have the inconvenient requirement that the Gtk+ runtime environment DLLs must be installed in the system for the program to work (alternatively you could supply these DLLs with the program itself, which is only a slightly better option, but not much).
If I'm not mistaken, the wxWidgets is portable and can produce native applications which do not rely on third-party DLL files.
LINK |
| |
| | | Friedrich |  |
| Posted: Wed Aug 27, 2008 2:24 pm Post subject: Re: windows dev, cross-platform GUI? |  |
| |  | |
steve.breslin@gmail.com writes:
| Quote: | I'm developing a GUI app on Windows XP. I'd like it to look native (or at least, look good) on Windows, but I would also like to be able to port it to another platform if a future client wants.
Of course I'm hesitant to use Windows API, since to port it requires rewriting the whole display part.
Is there a simple solution? A cross-platform GUI library? After a day's work on GTK+, I haven't figured out how to get a test program to compile in Windows environment. I probably could if I kept up the effort (though strangely there's no tutorial). Is this the way I should go, or should I be looking into other options? Hm, I did not found getting an gtk+ example running unders windows |
that hard. You just have to have the proper includes and libraries. I guess you've downloaded the windows binaries? IIRC there are some project files part of it which you just can load into MSVC and run them.
| Quote: | (I also looked into perl/Tk, but IMHO the GUI windows didn't look very good.) Hm Tk on Windows looks as windoish as can on Windows, what you are |
objections?
there are other cross-platform choices. E.g if you'd use some Smalltalk then you would get a decent gui stuff also (check e.g Cincom Smalltalk) LispWorks provides CAPI which looks good enough for me on Windows. So what you can try is some other language which has been ported to diverse platforms....
Regards Friedrich
-- Please remove just-for-news- to reply via e-mail. |
| |
| | | Guest |  |
| Posted: Wed Aug 27, 2008 3:58 pm Post subject: Re: windows dev, cross-platform GUI? |  |
| |  | |
Friedrich wrote:
| Quote: | Hm, I did not found getting an gtk+ example running unders windows that hard. You just have to have the proper includes and libraries. I guess you've downloaded the windows binaries? IIRC there are some project files part of it which you just can load into MSVC and run them.
|
Yes, at the point when I temporarily halted my efforts, I was having trouble getting the compiler directive to work properly. (cmd.exe doesn't know what to do with backticks.) I was making a weak effort using MinGW, which was giving me more trouble. The compiler couldn't find the header file, which I think I could fix by changing the include directive in the sourcecode or maybe by adding another PATH. etc.
It was just a frustrating day of zero progress, each 'solution' leading to more problems. Maybe you know the feeling. :)
| Quote: | Hm Tk on Windows looks as windoish as can on Windows, what you are objections?
|
Mostly cosmetic. I mean that this...
LINK
....doesn't really look like normal windows.
Also, it doesn't "feel" like native. I'm not sure why I say that; it might be just visual, or it might be subtle functional differences as well, which I would have a difficult time pinning down. Anyway, this is really just another cosmetic/aesthetic 'issue,' since obviously Tk is functionally fine, no question about that!
It might just be a matter of re-skinning, and there's probably Windows- skins already available, so maybe I'll do some more research in this direction.
| Quote: | there are other cross-platform choices. E.g if you'd use some Smalltalk then you would get a decent gui stuff also (check e.g Cincom Smalltalk) LispWorks provides CAPI which looks good enough for me on Windows. So what you can try is some other language which has been ported to diverse platforms....
|
Thanks for suggesting more alternatives! Choice is good! |
| |
| | | Guest |  |
| Posted: Wed Aug 27, 2008 4:55 pm Post subject: Re: windows dev, cross-platform GUI? |  |
Juha wrote:
| Quote: | If I'm not mistaken, the wxWidgets is portable and can produce native applications which do not rely on third-party DLL files.
LINK
|
That looks perfect! I can't wait to get home and try it out! Thanks for the link. |
| |
| | | cr88192 |  |
| Posted: Thu Aug 28, 2008 11:59 pm Post subject: Re: windows dev, cross-platform GUI? |  |
| |  | |
<steve.breslin@gmail.com> wrote in message news:cf3991b0-a0d9-486f-b902-fd0cf5a7ac4b@w7g2000hsa.googlegroups.com...
| Quote: | I'm developing a GUI app on Windows XP. I'd like it to look native (or at least, look good) on Windows, but I would also like to be able to port it to another platform if a future client wants.
Of course I'm hesitant to use Windows API, since to port it requires rewriting the whole display part.
Is there a simple solution? A cross-platform GUI library? After a day's work on GTK+, I haven't figured out how to get a test program to compile in Windows environment. I probably could if I kept up the effort (though strangely there's no tutorial). Is this the way I should go, or should I be looking into other options?
(I also looked into perl/Tk, but IMHO the GUI windows didn't look very good.)
|
....
would be nice though if there were some standard or de-facto standard for inter-OS GUIs.
in my case, there was not, and since I mostly use GL (which is far more common than most GUI frameworks), I ended up making my own GUI stuff in GL. of course, GL-based GUIs are not exactly "native" though.
now, as for "look and feel", it looks to me like at times not even like MS and friends can exactly preserve these between windows versions (when using the most "classic" style GUIs, not the big funky GUIs MS has been using by default recently for whatever bizarre reason...).
for example, XP has many subtle visual differences from 2K, and Vista has further differences from XP. 2K was again different from NT4.
is a result, just showing a few apps on an NT4 box, and a Vista box, one will likely notice that the "look" is not exactly the same, even if set up right the Vista box will look fairly similar...
of course, go and use some 3rd partly library, and things look a little more different.
also possibly "interesting": part of the Windows API has been standardized (albeit, the Win16 API). however, other OS's have generally not implemented it (and, even if they did, it would not help much with porting "most" windows software, which no longer uses many of these calls...). |
| |
| | | Dann Corbit |  |
| Posted: Fri Aug 29, 2008 2:16 am Post subject: Re: windows dev, cross-platform GUI? |  |
| |  | |
"cr88192" <cr88192@NOSPAM.hotmail.com> wrote in message news:16b39$48b7506c$7937d7da$12800@saipan.com...
| Quote: | steve.breslin@gmail.com> wrote in message news:cf3991b0-a0d9-486f-b902-fd0cf5a7ac4b@w7g2000hsa.googlegroups.com... I'm developing a GUI app on Windows XP. I'd like it to look native (or at least, look good) on Windows, but I would also like to be able to port it to another platform if a future client wants.
Of course I'm hesitant to use Windows API, since to port it requires rewriting the whole display part.
Is there a simple solution? A cross-platform GUI library? After a day's work on GTK+, I haven't figured out how to get a test program to compile in Windows environment. I probably could if I kept up the effort (though strangely there's no tutorial). Is this the way I should go, or should I be looking into other options?
(I also looked into perl/Tk, but IMHO the GUI windows didn't look very good.)
...
would be nice though if there were some standard or de-facto standard for inter-OS GUIs.
in my case, there was not, and since I mostly use GL (which is far more common than most GUI frameworks), I ended up making my own GUI stuff in GL. of course, GL-based GUIs are not exactly "native" though.
now, as for "look and feel", it looks to me like at times not even like MS and friends can exactly preserve these between windows versions (when using the most "classic" style GUIs, not the big funky GUIs MS has been using by default recently for whatever bizarre reason...).
for example, XP has many subtle visual differences from 2K, and Vista has further differences from XP. 2K was again different from NT4.
is a result, just showing a few apps on an NT4 box, and a Vista box, one will likely notice that the "look" is not exactly the same, even if set up right the Vista box will look fairly similar...
of course, go and use some 3rd partly library, and things look a little more different.
also possibly "interesting": part of the Windows API has been standardized (albeit, the Win16 API). however, other OS's have generally not implemented it (and, even if they did, it would not help much with porting "most" windows software, which no longer uses many of these calls...).
|
I have not read the thread, but I imagine someone has mentioned wxWidgets: LINK
** Posted from LINK ** |
| |
| | | Ole Nielsby |  |
| Posted: Sat Aug 30, 2008 6:04 pm Post subject: Re: windows dev, cross-platform GUI? |  |
<steve.breslin@gmail.com> skrev i en meddelelse news:86b40655-4b1d-4378-bee6-73f78431d3db@z72g2000hsb.googlegroups.com...
| Quote: | Juha wrote: If I'm not mistaken, the wxWidgets is portable and can produce native applications which do not rely on third-party DLL files.
LINK
That looks perfect!
|
It isn't.
The juce framework LINK isn't perfect either, but it's much easier to find the bugs and deal with them.
wxWidgets may have a more native look but juce is more consistent across platforms.
Things like document-centric single-instance applications are a pain in wxWidgets, in juce it just works. |
| |
| | | Juha Nieminen |  |
| Posted: Sun Aug 31, 2008 7:15 am Post subject: Re: windows dev, cross-platform GUI? |  |
Ole Nielsby wrote:
| Quote: | wxWidgets may have a more native look but juce is more consistent across platforms.
|
What is more important from the point of view of the user, that the program works like all the other programs in the same OS, or that the program looks identical in all possible OS's (from which the user probably uses just one)? |
| |
| | | Juha Nieminen |  |
| Posted: Sun Aug 31, 2008 7:29 am Post subject: Re: windows dev, cross-platform GUI? |  |
Ole Nielsby wrote:
| Quote: | http://www.rawmaterialsoftware.com/juce/index.php
|
As seems to be *way* too common nowadays, also this project seems to provide only doxygen-generated lists of classes and member functions, and nothing else. That's great when you already know very well how to use the library, and only need a reference manual for the details. However, it's completely unhelpful for the first-time user who wants to get started.
What on earth happened to first-time tutorials and simple introductions? I mean, like this:
LINK
Can't developers understand that it's extremely hard to start using a complicated library when all you have is basically its commented header files? (Doxygen-generated documentation is nothing more than just a bit more convenient way of browsing the (preferably commented) header files. They are not *real* documentation.) |
| |
| Page 1 of 2 .:. Goto page 1, 2 Next | |
|
|