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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Pekr
31-Oct-2006
[4885]
such doc should exist before we get ourselves onto VID+ :-)
Henrik
31-Oct-2006
[4886]
such as document is already being compiled for VID+
Pekr
31-Oct-2006
[4887x2]
maybe better - http://developer.gnome.org/projects/gup/hig/2.0/hig-2.0.pdf
(watch out - nearly 2MB file)
is it? Where? Last time I asked the answer was, that VID+ group did 
not start working yet ...
Henrik
31-Oct-2006
[4889]
I don't know if it's official...
Pekr
31-Oct-2006
[4890]
it does not have to be, the good thing is, if you guys are working 
on something ...
Gabriele
31-Oct-2006
[4891x2]
no wonder the ui for the detective is good - it was designed by Chris 
:) and implemented by Romano.
that screenshot seems very old though... 1.9...
Ashley
31-Oct-2006
[4893]
Would it be difficult to make Rebgui look by default as Network Detective?
 ... Yes and no. Several things would need to be changed:

1) Default window background color and effect
2) Default color scheme
3) Default spacing, font and font size

which are all easy, and then some widget specific changes:

1) Tab-panel tabs drawn differently
2) Scroller effect added (so the background has a nice gradient)
3) Check-box and radio-button changes
4) Other widgets?


The hard part is to do all this and maintain a consistent look and 
feel. An added complexity is that RebGUI widgets are scaleable, which 
means it can't cheat and use bitmaps and pre-defined pixel metrics. 
Have a close look at the Apple user-interface guidelines ... they 
handle multiple widget sizes by hard-coding the pixel metrics for 
each pre-determined size. It looks great, but it's not a generic 
solution. You can't easily take the Apple interface and make it work 
on a mobile-phone ... or a 90" Plasma display.


I'm no graphics artist, but if someone can come up with a RebGUI 
style guide that plugs the values into the questions posed above, 
and a majority of folks think it looks "cool *and* professional", 
then I'll implement it. If it means taking a cue from Aqua, Vista 
or whatever then so be it. Anyone up to the challenge?
[unknown: 9]
1-Nov-2006
[4894]
I tried to explain that about Apple GUI here once, and no one seemed 
to understand my point.  Which is the same point you are making. 
 I think the general solution is "hinting" like they do with fonts, 
but do it at the GUI level.  So you have one set for the 640x480 
all the way to 2Kx1K group, then a supper small set for cell phones.
Henrik
1-Nov-2006
[4895]
it will be interesting to see how they will handle resolution independency 
in Leopard. It partially works in Tiger.
Louis
1-Nov-2006
[4896]
Is it possible to display an HTML page in a RebGUI window? Not display 
HTML code, but to display the formatted HTML page.
Pekr
1-Nov-2006
[4897x2]
no, how could it be technically possible?
we have no rebol binding to activeX or xpcom components, which could 
be put inside the face, nor do we have html parser/displayer, for 
which, rich-text would be needed
Louis
1-Nov-2006
[4899]
Hummmm. I'm always wanting to do the impossible.
Pekr
1-Nov-2006
[4900]
you have to bear in mind, that to include such an engine, which would 
handle all possible www.w3c.com standards, it will be much bigger 
than rebol itself. Some kind of integration would be nice though, 
especially with mozilla runtime engine. But maybe we will have to 
wait for better integration interfaces, as we expect them with R3
Louis
1-Nov-2006
[4901]
What does this function do?


http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=render-rich-text.r
Pekr
1-Nov-2006
[4902]
whatever rich-text rendering, with curren R2 View kernel, will be 
slow, and if not, surely non editable ...
Louis
1-Nov-2006
[4903]
Sounds like I need to do something else then. Thanks, Pekr.
Anton
1-Nov-2006
[4904]
Louis, from memory, that script allows the display of formatted text, 
supporting bold/italic/underline, different font sizes and colours.
Louis
1-Nov-2006
[4905x2]
Thanks Anton.
Spell check in Rebgui tour.r is not working for me. What am I doing 
wrong?
Ashley
2-Nov-2006
[4907]
Download and install a dictionary file: http://www.dobeash.com/RebGUI/edit.html#section-4.2
Louis
2-Nov-2006
[4908x3]
Thanks, Ashley. I remember reading that now. RebGUI is very nice. 
I'm enjoying using it very much.
I already had the dictionary and didn't realize it. Anywat it still 
doesn't work. What else could I be doing wrong?
I don't get an error message, but nothing happens.
Graham
2-Nov-2006
[4911]
how are u checking for spell check?
Louis
2-Nov-2006
[4912]
I click on the text, then hit control-s.
Ashley
2-Nov-2006
[4913x3]
Spell-check requires a locale.dat file (which you can copy and rename 
from those under the language directory) and a matching dictionary 
file in the dictionary directory. Example:

	1) Copy %language/British.dat %locale.dat
	2) Download and unzip %British.dat into %dictionary/British.dat
	3) Run %tour.r
	4) Click "Field" then "Area" tabs
	5) Click in the area and press Ctrl+S


This should bring up a spell-check dialog with suggested word replacements.
Hmm, I've just noticed that an error occurs upon completion of spell-check. 
I'll have a look at this one.
Build#39 available. Fixes the above issue and makes two other minor 
changes:

	1) Bumped the min required View version to 1.3.2

 2) Deleted the last line of %ctx-rebgui.r (which issued a halt if 
 the script was invoked in isolation - see Ladislav's comment in the 
 SQLite group from 2nd Nov)
Louis
2-Nov-2006
[4916]
Ashley, thanks. Works now.
Graham
7-Nov-2006
[4917]
Is there an accessor that resizes eg. an area field using the current 
metrics system?
Ashley
8-Nov-2006
[4918]
Not sure I understand the question, do you simply mean the #HW directives? 
Or an accessor that you can invoke to resize manually?
Graham
8-Nov-2006
[4919]
manually
Ashley
8-Nov-2006
[4920]
Well the short answer is no [not currently]. What are you trying 
to do that would need this? Resize pretty much works behind the scenes, 
you shouldn't have to worry about it.
Graham
8-Nov-2006
[4921]
I had a screen where I had 4 area widgets and  I wanted to just expand 
the top area widget and hide all the others with a toggle button.
CharlesW
8-Nov-2006
[4922]
I am trying to get an understanding of RebGui using the tour.r. Can 
someone assist me with  bit of code that will show 3 or 4 images 
down the left side of a window and a tabbed panel directly to its 
right. IE: Icons vertically down the left next to a panel that fills 
the remainder of the window.
Graham
8-Nov-2006
[4923x3]
display "" compose/deep [ image %1.png return image %2.png return 
image %3.png @ 50x0 tab-panel 190x50 data [ "p" [] "a" [] "n" [] 
"e" [] "l" [] ]
untested
substitute "at" for "@" !
Ashley
8-Nov-2006
[4926]
Or use a group-box, as in:

	display "Test" [
		group-box "Images" data [
			after 1
			image %images/go-first.png
			image %images/go-first.png
			image %images/go-first.png
		]
		tab-panel 20x30 data ["A" [] "B" []]
	]
Graham
8-Nov-2006
[4927]
what does "after 1" do ?
Ashley
8-Nov-2006
[4928x2]
http://www.dobeash.com/RebGUI/display.html#section-3.3.2
Graham, with regards to your resize question, the following should 
be enough to get you started:

	display "Test" [
		a: area #HW
		b: area

  button [ctx-rebgui/span-resize a as-pair b/size/x 0 hide b show a]
	]


If you want to take into account margin and gap sizes then you'll 
need to use values from ctx-rebgui/sizes
Graham
8-Nov-2006
[4930]
thanks.
CharlesW
9-Nov-2006
[4931]
thanks for the code snippet. Is there any way to add a background 
to the DISPLAY?
Ashley
9-Nov-2006
[4932]
Two main ways:

	ctx-rebgui/colors/window: sky		; global change

	display "Test" [
		area
		do [face/color: sky]	; display-specific change
	]

can do similiar things with the effect facet as well.
Louis
9-Nov-2006
[4933]
How can you make a graphic to be the background?
Ashley
9-Nov-2006
[4934]
display "Test" [
	area #HW
	do [face/image: load %images/setup.png face/effect: 'fit]
]