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

World: r3wp

[!REBOL3 GUI]

Henrik
26-Feb-2011
[6338]
I see. But the result is the same. You are too focused on the appearance.
Pekr
26-Feb-2011
[6339]
If we don't reuse the code, then I wonder, if we have not failed 
design wise. Because then it leads to reimplementation of arrows 
for each particular style, and then no wonder that we are in a messy 
situation, if each style uses different arrows?
Henrik
26-Feb-2011
[6340x2]
We reuse the code when it makes sense. In this case it doesn't necessarily 
make sense, because an arrow is a rectangular button with a particular 
draw block. There is no gain in trying to cram it into the scroller 
style, because skin-wise you will need to adjust it anyway, which 
is more code. That may not be the case in the finished scroller style.
ergh... delete the last sentence.
Pekr
26-Feb-2011
[6342]
ok, then appearance wise, it should use identical draw blocks? E.g. 
in Windows apps, arrow is arrow, being it part of drop-down, spinner, 
scrollbar - still the same style?
Henrik
26-Feb-2011
[6343]
it should use identical draw blocks
 - you can't count on that.
Pekr
26-Feb-2011
[6344x2]
I don't necessarily want styles being somehow magically compound, 
if the only thing you need is to use a draw block, and in fact "integrating" 
multiple styles together is even beyond my imagination technically 
wise, but I request identical visual representation ....
OK, different qeustion - how is materials influencing draw block? 
only via parameters?
Henrik
26-Feb-2011
[6346]
identical representation may not make sense, but again, you are probably 
used to only using Windows.
Pekr
26-Feb-2011
[6347]
Because I am thinking into looking into Carl's scroller, trying to 
replace RMA's draw block. I wonder, if it could break because of 
material system, or would it work?
Henrik
26-Feb-2011
[6348]
In the draw block, materials are gradients and colors, so they are 
only color and gradient parameters to draw primitives.
Pekr
26-Feb-2011
[6349x2]
Hmm, I don't have Carl's styles available :-(, only some GUI related 
code. I wonder if it was ever available.
But - technically wise I just might remove draw block (replace it 
with zero or minimal code), and style would still work? So free to 
play whatever the way I like with the style visual representation?
Henrik
26-Feb-2011
[6351]
it should work. I would try replacing each part with simple colored 
boxes, so you know where the boundaries are.
Pekr
26-Feb-2011
[6352x3]
good tip, thanks ....
what is viewport-box? Something related to the box model?
hmm, viewport-box, margin-box, padding-box, border-box. It seems 
the viewport-box is the total outer bounding box for the face ....
Ladislav
26-Feb-2011
[6355x3]
Yes, these are the boxmodel attributes, as named in the recent versions 
of the R3 GUI
Cyphre promised to update the documentation for the boxmodel, as 
a part of the upcoming update.
The updated version of the %r3-gui.r3 currently looks as follows:

REBOL [
    title: "R3-GUI"
    from: "RM-Asset"
    license: http://www.rebol.com/r3/rsl.html
    version: 1917
    date: 25-Feb-2011/17:50:30.907555
]


Note, that this is a version, that is not available yet for the download, 
since it is being updated. Also, the VERSION number and DATE are 
values taken from the RM-Asset Subversion repository.


Anybody knows what happened to the license page Carl originally kept 
at

http://www.rebol.com/r3/rsl.html

? Another question: do you miss any other info in the header?
jocko
26-Feb-2011
[6358x2]
Seems ok.
Mayby a link to the page with the changes list ?
but not in the header.
Henrik
26-Feb-2011
[6360]
I think the timestamp needs to be more accurate :-)
Ladislav
26-Feb-2011
[6361]
LOL
Pekr
26-Feb-2011
[6362]
:-)
Ladislav
26-Feb-2011
[6363]
Header update:

REBOL [
    title: "R3-GUI"
    file: %r3-gui.r3
    from: "RM-Asset"
    url: http://www.rm-asset.com/code/downloads/
    history: http://www.rm-asset.com/code/level1/r3-gui/
    license: http://www.rebol.com/r3/rsl.html
    version: 1917
    date: 25-Feb-2011/17:50:30.907555
    purpose: "REBOL 3 GUI module"
]
jocko
26-Feb-2011
[6364]
nice !
Pekr
26-Feb-2011
[6365x2]
jocko - your demo is more complete than mine - I ported only something 
like 60% of demos. I will stop working on mine version from now on.
but please include the fix to the stack overflow, to ease some console 
testing ...
jocko
26-Feb-2011
[6367]
Don't stop, I hope some help from you to make the draw examples work
Ladislav
26-Feb-2011
[6368]
Notice, see

    history: http://www.rm-asset.com/code/level1/r3-gui/


, that there are other changes, and more important, than just the 
correction of the SHOW-NATIVE definition
jocko
26-Feb-2011
[6369x2]
Is this fix mentioned in the tickets you put ?

I did not read them up to now, I wanted to correct quickly the version 
which used an out of date r3-gui file.

For the other fixes, I will introduce them later (Or you, if you 
want). And I will take some time to make the other examples work, 
out of RMA documentation.
Ladislav, thanks, I was just explaining that we need to introduce 
the other changes from the RMA doc ... it may take some time, and 
I have not so much.
Ladislav
26-Feb-2011
[6371]
You already have the other fixes as listed in the history page, if 
you updated to the latest public version of the %r3-gui.r3
Pekr
26-Feb-2011
[6372]
jocko, the fix is in view-show.r


; this is a run-once-code, i.e. it causes problems when LOAD-GUI 
is run twice
;show-native: :show

; this is a way how it can be corrected:
if command? :show [show-native: :show]
jocko
26-Feb-2011
[6373x2]
the two fixes that I put in my demo file are on the doc style, and 
on the request function
I do not think that they are working in the public version
Ladislav
26-Feb-2011
[6375]
yes, they are newer than the last public version
jocko
26-Feb-2011
[6376x3]
Pekr - will put it next time
Pekr - I checked, the fix is already introduced in the last public 
r3-gui.r3 (which is in my zip tests-R3Gui-3.zip) so, you normally 
should not see the problem.
did you use the right one ?
http://www.colineau.fr/rebol/downloads/tests-R3Gui-3.zip
BrianH
26-Feb-2011
[6379]
Kaj, I wouldn't say that telling you to use Windows is constructive 
:)
Please continue testing in Wine - someone has to do it.
Kaj
27-Feb-2011
[6380]
:-)
jocko
28-Feb-2011
[6381]
is the "drawing" style working in r3-gui ?
Kaj
28-Feb-2011
[6382]
Look for the discussion from February 19 here
Pekr
28-Feb-2011
[6383]
jocko - I think it is not. Drawing style is not much complex, one 
binding line, but I think that there was some underlying change in 
hostkit interface to drawing, I just don't know. IIRC Cyphre or someone 
here stated, that there are going to be some changes with the next 
release ....
jocko
28-Feb-2011
[6384]
Already there are some changes compared to the Carl's code, so I 
wondered if it was adapted or not . But so far, I did not succeed 
to use it (although it does not produce any error or crash). Anyway, 
I will be interested to test it in the next release.
Rebolek
28-Feb-2011
[6385]
Pekr, Carl's scroller was just different draw block. You can change 
it yourself.
Pekr
28-Feb-2011
[6386]
Rebolek - thanks for the info. I would try to change it even if it 
was your implementation, just as an excercise to become familiar 
with draw blocks for the first time. Henrik's suggestion was to use 
plain colored boxes, to become better familiar with borders, margins, 
paddings, edges and all that stuff :-)
Rebolek
1-Mar-2011
[6387]
You're of course free to write new skin for scroller or any other 
style, because we're not going to do much about it right now. You 
can also try to write scroller as coumpound style of two arrows and 
one slider but I do not recommend this overkill.