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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Chris
3-Apr-2005
[477x3]
nb. Shadwolf: as our Arrow style was pre-AGG, glyph rendering does 
not take advantage of the newer draw commands.  Therefore, it may 
be possible to reduce or eliminate calculations used in 'compose-arrow.
OT: the problem with AGG AA on smaller glyphs (not just arrow) is 
that it tends to have an adverse effect on glyph weight.  'course 
it beats bitmaps when it comes to scaling, but even pre-AA Draw gave 
more precise control -- hence the deterioration of the Arrow glyph 
post-AGG.  Illustrated here: http://www.ross-gill.com/r/chevron-test.png
Btw, if they are any use, I still have some UI design guides online: 
http://www.ross-gill.com/r/guides.html
Gabriele
3-Apr-2005
[480]
Chris: i think that your example above turned out being a bug in 
gamma handling in earlier versions of view/agg. i'm not sure if it's 
the same on the latest version (especially if you adjust gamma properly 
for your monitor - the default should be ok for crt monitors i think)
Ashley
3-Apr-2005
[481x2]
UI design guidelines: thanks Chris, I was trying to find those the 
other day. I'll add that link to the RebGUI Widget Designer's Guide.
Just noticed some cursor placement issues with the new pwd-field 
widget. Add these two lines to fix:

	font:	make default-font [name: font-fixed space: 2x0]
	para:	make default-para [origin: 5x2]
Richard
4-Apr-2005
[483]
Have you been following what Ashley has been doing with RebGUI ?
Scot
4-Apr-2005
[484x2]
Ashley. I would suggest talking to Maxim...I think he may have quite 
a few of those things worked out.
On low memory VID replacement.
Vincent
4-Apr-2005
[486]
a security issue with new password field: with the use of ctrl-left 
/ ctrl-right, spaces in hidden string are easy to find.
shadwolf
4-Apr-2005
[487x4]
chris in all cases I find your work on arrow pretty interresting. 
I done the first adaptation I let AShley to design it closely to 
he's preferences ...
Asley will use them in many thing like sliders those arrow will perfectly 
complement it ;)
Well  In fact I figured out there was lot of problems with my first 
 port of the arrow and arw widgets made by Chris & Gregg  initialy 
for VID/AGG. So now it's mutch better I solve all existing problems 
in my first implementation.  I made lot  of code cleaning. I let 
implementation samples in commentary and comments maide by initial 
authors ;). Can be found here: http://shadwolf.Free.fr/arrow-RebGUI-port.r
Have a nice try ;) It was my birthday today 4/4/5 I reatch 28 yo 
... Damn !!!
shadwolf
5-Apr-2005
[491x2]
My actual effort in dev leads me to rebGUI project so MDP-GUI is 
in pause until rebGUI reatch stability then I would make a brand 
new version of MDP-GUI including the RebGUI look&feel. Once all this 
work will be done I could switch back to "One render/input window" 
problem :)
But as you say it normand it's not an easy topic so being able to 
solve it will be in my opinion a community effort because we need 
a little more than TDM  (to render tables for example... )
Maxim
5-Apr-2005
[493]
is there a one-liner I can type on rebol console I can use to see 
something built with rebGUI. just curious how it looks and feels...
shadwolf
5-Apr-2005
[494x7]
Last thing the pointer is slow on hudge text because of this F***King 
mad system base on caret  to handle the cursor position you store 
the current text that belongs after the cursor Writing and rewriting 
every time into this caret buffer the most part of the document is 
super slow  !!!
sorry wrong group posting ...
MAxim hum do %tour.r ?
REbgui wasn't forge tobe one linered  (no dialect for the moment 
...)
so things like view layout [ btn "EXIT" [quit]] would be writed in 
more than a sigle line in REBGUI ;)
like do %gui.r display "Test window" [ button [text "Exit " size 
50x20  action [ quit]] ]]
Ashley : Chris made a minimalistic version of the arrow widget based 
on my actual version HERE IS THE LINK:  http://www.ross-gill.com/r/arrow-RebGUI-port.r
about 100 lines  ;)
Ashley
6-Apr-2005
[501]
OK, integrated arrow style plus proto-type widgets that use them 
can be found here: http://www.dobeash.com/files/arrow.r(thanks to 
Chris & Gregg for the base arrow code).
shadwolf
6-Apr-2005
[502x2]
pretty nice ;)
mutch better than my code ;)
Ashley
9-Apr-2005
[504]
Latest build available at: http://www.dobeash.com/files/RebGUI-019.zip

Highlights include:


 - Integrated language localization (see http://www.dobeash.com/it/rebgui/locale.html)
	- New arrow widget (run %arrow.r to see it in action)
	- Use of as-pair
	- Minor updates to pwd-field
	- title-group simplified

Known issues


 - radio-group fails under 1.2.1 and rebface 1.2.10 (but not view 
 oddly enough). Comment / uncomment radio-group block under %tour.r 
 to see.
	- Need a "safe" implementation of 'construct for 1.2.1
Guest
9-Apr-2005
[505]
hi. .. how is localisation done, pleae? Is there anything like default 
language set? And what precisely is localised?
Anton
9-Apr-2005
[506]
Gabriele has some way of doing localisation of applications.
Guest
9-Apr-2005
[507x2]
I know. There were ones some time ago too ... just curious what aproach 
Ashley took ....
btw - pekr here, connecting via wireless, so dont know my login info 
right now....
Brock
9-Apr-2005
[509x2]
Wow, localisation integrated.  Thanks.
Wondering if there are any plans to include group element validation, 
ie, mutlple radio-buttons or checkboxes validated based on group-name 
rather than each item checked individually?
shadwolf
9-Apr-2005
[511x3]
where are menu ?
and why arrows are not integrated ? arrow are usefull for drop-down, 
slider, and notepad for example on tour.r as the window is resizabe 
that when the buton bar is (number of buttons) are more big than 
the window to have two arrow to scroll the buttons bar to acces to 
the unviable button and to indicate to the user that the button bar 
of the note pad is bigger than he can see
integrated into tour.r
Ashley
9-Apr-2005
[514]
Pekr: It's all explained in http://www.dobeash.com/it/rebgui/locale.html


Brock: radio-group does this already (set of mutually exclusive choices) 
and I was contemplating a check-group widget which uses the data 
attribute to store a block containing state information for each 
check-box in the group.


shadwolf: menu and tabbing are still WIP. The arrow widget is integrated 
into %widgets.r, I just ran out of room (> 1024 pixel width) with 
the current %tour.r. Once the scroller and spinner widgets are complete 
I'll redo %tour.r breaking it down into sub-widget categories (the 
real solution is to enhance the tab-panel widget but one thing at 
a time).
shadwolf
9-Apr-2005
[515]
ashley it could be cool to add 2 arrows left and right in the notepad 
header (where you have the buttons to open the panels of the notepad) 
when they  are hided because the size of the window is smaller than 
the needed
Brock
9-Apr-2005
[516]
Okay Ashley, thanks.
Ashley
9-Apr-2005
[517]
shadwolf: It's on my (growing) ToDo list. ;)
Brock
9-Apr-2005
[518]
Since you are also responsible for RebForms maybe this can be a feature 
request.  In .Net, you can have a form Validation Control, that confirms 
all of the validation checks on the fields of the form.  You are 
also allowed to indicate for each form element, whether it is to 
be included in the form-level validation or not (ie, free form text 
fields typically don't need validation).
shadwolf
9-Apr-2005
[519x2]
AShley maybe I can help you to implement this ...
how do you plan to detect the fact that the button header content 
of the notepad widget is bigger dans the window :)
Ashley
9-Apr-2005
[521]
Brock: validation is also on my ToDo list (you can see the beginnings 
of it in the field widget character length limits). A couple of questions 
though (both how it is done in .Net and how it *should* be done in 
RebGUI):

	What's the granularity of the validation?

 Does it allow the specification of a mask (e.g. for phone numbers)?

 Is it validated as I type, when I leave the field, or when I save 
 the form? (Or is it flexible enough to let me choose the level of 
 validation?)


shadwolf: Haven't really thought about it much, but I figured the 
tab-panel redraw feel was a logical place to do the work.
shadwolf
9-Apr-2005
[522]
oki thank you I will try to implement it if I have a succefull code 
I'll share it with you
Graham
9-Apr-2005
[523]
Didier did some work on field validation with VID

http://membres.lycos.fr/didec/rebsite/styles/filter-field/test-filter-field.r
Vincent
9-Apr-2005
[524x2]
'construct for 1.2.1 :
construct: func [
    block [block!] /with object [object!]
/local nb spec values name value
][
    if not with [object: object!]
    spec: copy []
    values: copy []
    parse/all :block [
        any [
            to set-word! (nb: 0) some [
                set name set-word! (nb: nb + 1 append spec :name)
            ]
            set value skip (

                insert tail values nb insert/only tail values :value
            )
        ]
    ]
    append spec none
    object: make object spec
    foreach [nb value] values [
        loop nb [
            set in object (to-word first spec) 

                either find [true false none on off] :value [do value][:value]
            spec: next spec
        ]
    ]
    object
]
Ashley
10-Apr-2005
[526]
Impressive! ;)