r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 GUI]

Henrik
22-Jul-2010
[2093x2]
and yes it was started with RebGUI, mainly because that was the standard 
GUI system to use at the time.
and yes, it could easily have been written in the vid extension kit.
Graham
22-Jul-2010
[2095]
I recall that Robert forked his own version a while back
Henrik
22-Jul-2010
[2096]
yes, that's the one we use.
Andreas
22-Jul-2010
[2097]
yeah, it looked a lot like rebgui to me; but who knows, maybe you 
just imitated that style :) thanks for clearing that up!
Graham
22-Jul-2010
[2098x2]
Dunno if it's just me .. but often I will get RebGui crashes because 
part of the gui being referenced has not yet appeared.
Is instantiation of widgets much faster in the new R3GUI ?
Maxim
22-Jul-2010
[2100x2]
I'd say much faster since there is a specific lightweight datatype 
for them
(but i'm just assuming here)
Henrik
23-Jul-2010
[2102]
can you give an example, Graham? that sounds interesting
Graham
23-Jul-2010
[2103]
Not really ... it just happens and I just have to wrap as much code 
as I can with attempts
Henrik
23-Jul-2010
[2104]
that sounds very odd. I've never encountered this issue.
Graham
23-Jul-2010
[2105]
I do a lot of dynamically creating layouts .. I suspect it's related 
to that
Henrik
23-Jul-2010
[2106]
hmm... yes. I still don't see how you are able to do that. From what 
I can gather, it's not much different from VID in that face names 
are set as they are laid out, and when that's done, you can use the 
face. Talking about the *speed* at which widgets are instantiated 
worries me a bit. :-) That should never be an issue unless you are 
doing some form of multithreading.
Graham
23-Jul-2010
[2107]
All I can say then is that I do see a lot of rebgui errors if I use 
the gui too quickly
Henrik
23-Jul-2010
[2108]
ok
Graham
23-Jul-2010
[2109]
If I use the GUI in a sedate mode .. then no errors
Henrik
25-Jul-2010
[2110x2]
if anyone has looked at it, do you think adding function as argument 
for the CLOSE reactor could be considered a security problem?
adding function => "adding function!"
Anton
25-Jul-2010
[2112x2]
Henrik, I haven't looked at it, but if I guess right, you mean you're 
considering adding a callback ability to the window close function. 
Surely it would be a gui programmer who would be able to use this 
callback, right? You haven't programmed the close button to pop open 
a dialog for the end-user asking for arbitrary rebol code to execute 
with security off, have you? ;-)
What makes you want this callback, anyway? (I'm not implying it's 
bad or good.)
Henrik
25-Jul-2010
[2114x3]
I wanted it for dialogs, and correctly, it's just another option, 
since CLOSE offers the ability to set a value (logic!, block!, word!) 
in the window face, as the window is closed. The SUBMIT reactor allows 
a call-back.
I guess that SUBMIT and CLOSE both offering it won't make a difference, 
security wise.
now that I think of it, I'm not sure how much good it will do to 
add callbacks to CLOSE, since CLOSE for dialogs is meant to give 
a fixed way out of a dialog.
Anton
25-Jul-2010
[2117]
Hmm yes. If ever a dialog's close button does not simply close the 
dialog, I'm probably going to wish that the designer had found a 
better way to program the gui.
Henrik
25-Jul-2010
[2118]
as it is now, the dialog system "forces" some specific routes. the 
intent is that dialogs must allow dozens of different standard dialog 
layouts and standard buttons. combined, forms in layouts would automatically 
be validated and the dialog would behave appropriately, i.e. not 
closing if the form and provide warnings is invalid. this works now 
in the prototype, and the end user won't have to do anything to use 
it in the standard dialogs.
BrianH
25-Jul-2010
[2119x2]
You need a close reactor to do the save-your-stuff prompts.
Not all apps are form-based. Some are document-based.
Henrik
26-Jul-2010
[2121]
these aren't apps, but dialogs. dialogs have different behavior and 
use a short life cycle. the behavior for application windows is different 
and requires, correctly, management of the close action.
Pekr
26-Jul-2010
[2122]
Any news how implementing command wrappers for AGG goes? Or on GUI 
status in gerenal? :-)
Henrik
26-Jul-2010
[2123x2]
- Cyphre is implementing remaining DRAW commands in hostkit.
- Ladislav has been working on resize code for a bit

- I'm studying whether it's possible to replace arguments for reactors, 
an esoteric, but necessary part of dialogs.
- Bolek is working on style code, but I've not seen any activity 
for the past few days.
Pekr
26-Jul-2010
[2125]
thanks Henrik - such a short summary is absolutly perfect to keep 
us informed. I will ask in 2 weeks the same question :-)
Ladislav
26-Jul-2010
[2126x2]
Resizing news: the latest state is, that there are two "container 
styles", the first one being a group - a layout in which graphic 
objects are arranged into either rows or columns, not necessarily 
into *both rows and columns* at the same time, the second one is 
a panel - a layout in which graphic objects are arranged into both 
rows and columns at the same time.
I guess, that it does not surprise you, that the resizing algorithms 
for group and panel differ...
Henrik
26-Jul-2010
[2128]
yes, I've suggested calling PANEL a TABLE instead, since it more 
clearly defines how it lays things out.
Ladislav
26-Jul-2010
[2129]
Regarding the names: Cyphre thought, that the "table" name should 
be reserved for something even more "specialized"
Pekr
26-Jul-2010
[2130]
Table could be mixed with ppl expecting grid widget imo ...
Henrik
26-Jul-2010
[2131]
Ladislav, ok, maybe "array" or something?
Pekr
26-Jul-2010
[2132]
or "block", "matrix" ... but I am ok with "panel" anyway ...
Henrik
26-Jul-2010
[2133]
the problem with PANEL as it works now is that it lies, name wise 
too close to GROUP, which has significantly changed behavior now.
Ladislav
26-Jul-2010
[2134x2]
It may be the time to discuss the style name, I just do not know 
what is the best forum for it
(we should let Carl to have his say too, I guess)
Henrik
26-Jul-2010
[2136x2]
we'll take it here for now, then make one conclusion and bring that 
conclusion to Carl.
If it's not clear, the GROUP style produces this flow:

http://rebol.hmkdesign.dk/files/r3/gui/225.png


If you turn that 90 degrees, you'll see that it's like how newspapers 
arrange columns, so I would want to find a familiar DTP term for 
it.
Ladislav
26-Jul-2010
[2138]
Henrik, sorry, this is a misunderstanding
Henrik
26-Jul-2010
[2139]
ok, backpedalling a bit :-)
Ladislav
26-Jul-2010
[2140]
Do you have a picture for the other orientation?
Henrik
26-Jul-2010
[2141]
it seems 214 is the closest one
Ladislav
26-Jul-2010
[2142]
OK, thanks.