184 karma · joined August 19, 2016
I thought that was GLib, and GTK+ was using GLib to implement controls.
Which library does one need to build their own controls?
Is there anything Tk can't do?
Also a question on fonts. Does Tk make it possible to use webfonts I see on websites?
What can Tk not do, specifically? This thread believes Tk is as good as QT https://news.ycombinator.com/item?id=12380456
I'm not disputing this but I've yet to see a clear explanation why it's harder to get right than it seems.
I want to understand, precisely, what makes this hard.
Besides antialiasing on a canvas, does antialiasing also work in text in labels, buttons, etc? Can I get in Tk all the fonts I can get in a Mac? Is Helvetica there?
Why can't I find on the web screenshots of Tk apps running on Mac OS X? Is the only way to get Tk to look good on a Mac using Tile http://tktable.sourceforge.net/tile/screenshots/macosx.html ?
From what I'm reading now there might be 4 options: Tk, wxWindows, QT, and a custom "thin layer".
I want to know the difference between the thin layer and the existing libraries. Not in vague terms but specifically with a code example.
If there were such a language I wouldn't be asking this question on HN. I have yet to see a clear answer why there is no such kind of language or run-time.
> the same code written for the DSL is not likely going to run well or even be considered for use by your other target platforms.
Why? Can be you more specific with an example?
I didn't understand this. When you say you implement the UI as a thin layer do you mean you wrap only the few controls you need?
I didn't understand why the nativeness of the UI must bifurcate (fork) the codebase. In your example, can't non-modal on Mac vs modal on Windows be a config value in the cross-platform UI?
I also didn't get an answer to one of my questions. Why can't applications have low level access to create controls on their own?
What do you think is the right thing to do? To have a common denominator kind of approach where a control works on all platforms but with fewer features, or to reimplement the control?
Do you have an example handy of a control/idiom that caused this problem?
It sounds like reimplementing (emulation) is a good thing.
I want it to look great, especially on the Mac.
No SWT.
It sounds like GTK is eliminated too.
What's left now, QT and wxWidgets?
Emulating sounds like an extra layer one could do with out.
What I want is closer to writing my own Xojo.
> have it translate into the correct API calls on each platform under the hood.
What if instead of writing controls for applications, the applications had low level access to create controls on their own?
Why?
I want to be able to fine-tune the UI.
I used QT before. Please don't be presumptuous.