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

World: r3wp

[!REBOL3-OLD1]

Pekr
18-Oct-2008
[7496]
IMO instead of adding additional styles, we should be sure, that 
we can easily express such things as focusing, display of accelerator 
keys, etc.
PeterWood
18-Oct-2008
[7497]
Is it really one gob with a gob style face placed upon it? Isn't 
even something as simple as :
panel [
  button "Start"
  button "End"
]

at least 5 gobs?
Pekr
18-Oct-2008
[7498x2]
Peter - I am talking about one single style, not multiple styles 
being one gob.
From Henrik's code above, it seems we have only one draw block and 
various states (e.g. button up, down, over) are being handled only 
by parametrising via facets, but still one draw block. But is imo 
nicely simplified concept, BUT - it may not work for more complex 
styles. What if I conditionally want to draw (or not), if the style 
is focused, disabled, etc. Not everything can be imo expressed in 
one single draw block. That is why so far the removal of frames concept 
(having different draw blocks for various situations) was imo preliminary, 
but we will see ....
PeterWood
18-Oct-2008
[7500]
My guess is that the worst case would be that you have to use different 
styles and unhide and hide them as needed.
Henrik
18-Oct-2008
[7501]
Currently, PANEL produces a background along with a border. That's 
why there are a lot of rounded borders in the first screenshots. 
Due to a bug (?) in the layout engine, PANEL must have a draw block 
assigned that fills out the background with a neutral color.

GROUP behaves as follows:

- No background

- When not specifying elements in a group block, they layout vertically.

- When specifying elements in a group block, they layout horizontally.

- When specifying a number for the group block, each element lays 
out horizontally until the number is reached and then a new row is 
started.

Differences from VID3:


- There is no concept of rows and columns. Elements of uneven sizes 
will uncritically be laid out right next to eachother. I've not yet 
discussed with Carl whether this goes in or if there is a different 
solution. I've observed code for grid management in both GROUP and 
PANEL and a facet reading "grid: true", but it seems not to be working.
Graham
18-Oct-2008
[7502]
are you the only person testing AltVid?
Henrik
18-Oct-2008
[7503]
no
Graham
18-Oct-2008
[7504]
Just the only one talking :)
Henrik
18-Oct-2008
[7505]
So far :-)
GiuseppeC
18-Oct-2008
[7506]
A couple of articles I found interesting about the future of interpreted 
programming languages. 

http://weblog.infoworld.com/fatalexception/archives/2008/10/virtual_machine.html

http://weblog.infoworld.com/archives/emailPrint.jsp?R=printThis&A=/article/08/10/13/42TC-dynamic-futures_1.html

VM, JIT and access to other programming languages libraries is the 
future...
Maybe Rebol 4 ?
Henrik
19-Oct-2008
[7507]
There is no concept of rows and columns.
 <--- this was a bug and has been fixed.
Gabriele
19-Oct-2008
[7508]
Petr, most of the styles in VID3 use just one draw block. Also when 
using multiple gobs, eg. in a scroller, they have one draw block 
each too, and state is just changing the value of some words. Carl's 
version just limits this to a single draw block, without automatic 
resizing. Which, you're forced to do if you remove the distinction 
between feel and look (you're stuck with whatever gob structure was 
in the original style anyway without that distinction).
Pekr
20-Oct-2008
[7509]
Henrik - it seems your button design does not work for darker button 
variants, does it?
Henrik
20-Oct-2008
[7510]
It's very difficult to produce anything useful with a darker color.
Pekr
20-Oct-2008
[7511]
maybe changing button text color to white will be needed in such 
cases, or white 1px outline of text, but not sure how would it turn 
out ...
Henrik
20-Oct-2008
[7512]
That would complicate the code a bit too much. We can only recommend 
that people don't use dark buttons. :-) It's easy for the user to 
adjust anyway.
Pekr
20-Oct-2008
[7513x3]
Henrik - you latest screenshot simply shows, that 'label should be 
antialiased imo ....
Carl's now describing a bit sizin model in following chapter - http://www.rebol.net/wiki/GUI_Panels
New VID related blog posted - http://www.rebol.net/r3blogs/0152.html
- GUI: Thin skins, thick skins, and in-between
BrianH
20-Oct-2008
[7516]
That Panels doc is a work in process.
Pekr
21-Oct-2008
[7517]
Color picker example - http://www.rebol.net/r3blogs/0153.html- I 
gues now with Carl's frequent enough blogging, there is no point 
in posting such links?
Geomol
21-Oct-2008
[7518]
I mostly find links to Carl's blog these days by first going here. 
So it's good from my point of view.
Pekr
21-Oct-2008
[7519]
It kind of made point, when Carl posted once in two months. But now 
it is almost daily, so maybe I will stop it, to not flood here. Surprised 
a bit by low number of reactions. I thought ppl will be more interested 
in new GUI and how it starts to turn out ....
Graham
21-Oct-2008
[7520]
Generally we are people who do things, not read about them!
Gregg
21-Oct-2008
[7521]
My free time is not proportional to Carl's posts. :-\
PeterWood
21-Oct-2008
[7522]
I hope the subject of the example, a colour picker, isn't an indication 
that the new Rebol GUI isn't going to native dialogs. Windows, Gnome, 
KDE and Mac OS X all have native colour pickers don't they?
Pekr
22-Oct-2008
[7523]
Can anyone guess, what is "Face DO reactor (event action) reuse" 
in Color picker blog? It is represented by code like:

set-clr: when [enter] do [ ... some code here ...]
Graham
22-Oct-2008
[7524]
so, enter is the event being passed to 'set-clr ?
Pekr
22-Oct-2008
[7525]
Yes, 'set-clr itself belongs to what widget? To window itself?
Graham
22-Oct-2008
[7526]
It's a function of some type defined lower down
Pekr
22-Oct-2008
[7527]
... from source code it seems though, that the action is somehow 
fired from slider? But you drag slider by mouse, no? So how are you 
supposed to get 'enter event there? I would understand it, if particular 
slider would be focused ...
Graham
22-Oct-2008
[7528x3]
it's not an enter
it's an event
when you slide the slider, the event is passed to set-clr
Pekr
22-Oct-2008
[7531]
what is "when [enter]" then? 'enter being just a function argument 
name?
Graham
22-Oct-2008
[7532x3]
guessing so
can't be all events ...
so perhaps 'enter refers to some particular type of event
Pekr
22-Oct-2008
[7535x2]
So we have got high level (VID) ability to define actions ....
I would welcome more real-life scenarios, which are not yet implemented. 
Accelerator keys and focusing. We need to be able to follow OS compatible 
behavior.
Graham
22-Oct-2008
[7537]
basics first
Pekr
22-Oct-2008
[7538]
Isn't it basic? Those things can not be easily plugged into imo. 
They might influence the design (look at VID2). VID3 hopefully counts 
on it. E.g. if button or other elements are supposed to support accelerator 
keys, you need to use rich-text there instead of text for the description 
....
Graham
22-Oct-2008
[7539]
what's an accelerator key?
Pekr
22-Oct-2008
[7540]
Hmm, keyboard shortcut to get focus to the element you want? #key 
in R2 VID.
Graham
22-Oct-2008
[7541]
uh.. ok
Gabriele
22-Oct-2008
[7542x2]
petr, from what i see, on [enter] means that the action is executed 
when the window is shown (you "enter" the window), and it is also 
executed when the sliders change (do 'set-clr), so it's reused.
i don't like at all the lab50 thing. that will NOT allow localization, 
just to make an example. i consider having to size things explicitly 
a HUGE mistake and i will never say it loud enough.
Pekr
22-Oct-2008
[7544]
E.g. with labels the situation is interesting :-) You have to somehow 
display in label (usually by underscoring particular letter), what 
key is going to be used as an accelerator, but the focus is supposed 
to be given to the field ....
Henrik
22-Oct-2008
[7545]
Gabriele, Carl does not like it either.