[REBOL] Re: [native-UI] What's native?
From: carl:cybercraft at: 24-Jun-2004 21:33
>On Wednesday 23 June 2004 14:28, Romano Paolo Tenca wrote:
>> I do not see it here on XP.
>> It does not seem to me too complex changing "50x50" with 2 words
>> (screen-offset? face).
>> The problem is lack of documentation. I'ld be happy if solutions in C would
>> be of the same complexity.
>> A better choose function should permit to set the offset automagically. the
>> point is that it can be done: only 2 or 3 lines of code to add to the
>> choose function.
>Well thanks for yet another attempt at a solution. Yet the fact remains that
>this popup menu acts in highly non-standard ways. On X11 the title bar *is*
>present. When you click somewhere off the popup it does *not* dissapear as
>it should. And when the window is near the screen border the popup will
>appear at a random location (sometimes on the opposite side of the screen).
>It is simply not something I'd use in a professional application.
>The same widget coded in C++/Qt only takes about twice the amount of code as
>REBOL. The neat thing is, it actually works properly (and on all platforms).
Yes - all true, or at least about the title bar. I've just checked it in Linux. The
problem appears to be that they're using a window for CHOOSE and on some platforms a
window's border can't be got rid off. The following in Windows gives you a borderless
view/options layout [button "Close" [unview]] [no-border no-title]
but not in Linux. What's more, on Amiga the NO-TITLE isn't needed to get rid of the
border, but it is in Windows. (Though Amiga's depricated with regards to Amiga, at least
at the moment, so...:) So windows' borders are a real problem for cross-platform apps
in REBOL, never mind attempting to create popups.
The real question I guess is what platforms RT plans to support with regards to View
in the long-term. Will they go back to supporting all the platforms they started out
supporting if resources ever permit them to again, or just stick with four or so of the
main ones? As a limited number would perhaps allow them to do more as well as reaching
a higher level of cross-platform compatibility.
In the meantime though, it looks like we'd be best to stick to menus within a window...
All that said, I'm still very impressed at the level of cross-platform compatibility
View does achieve.
-- Carl Read