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

World: r3wp

[!RebGUI] A lightweight alternative to VID

btiffin
5-Apr-2007
[5727]
Thanks Ashley.
I'm hoping to have screenshots of the FirM app up soon.
Ashley
5-Apr-2007
[5728]
This API reminds me of Hypercard
 ... is this a good thing or a bad thing? ;)
btiffin
5-Apr-2007
[5729]
I'm liking the new %tour.r Ashley.  The font selector works great 
on this Debian box...Thankees.
Ashley
5-Apr-2007
[5730]
What font names look good? List them here and I'll add them to the 
default ones.


Note that as the new ctx-rebgui/font? function filters out fonts 
not available on the machine running RebGUI we can build up a superset 
of default font names for the big three: Win, Max and *nix.
btiffin
5-Apr-2007
[5731x3]
Oh, your defaults.  monspace and serif, everything but courier on 
this box.
I'll do some more investigating and get back to you here.  Thanks 
again.
Ashley;  Well I'm more confused than when I started.  I got sick 
of bad Courier and fixed it.  It had to do with the order of 100dpi 
and 75dpi font lists and removing ghostscript font mapping.  Anyway, 
now REBOL/View can't find Serif, Sans Serif or Monospace.  The "real" 
names "DejaVu Serif", "DejaVu Sans", and "DejaVu Sans Mono" work 
in font [name: ] blocks.  So, I can't help much yet.

The short list (and I'll need to look into this more)  is
DejaVu Sans Mono
  for a good font-fixed
DejaVu Serif
 for a good font-serif
DejaVu Sans
 for a good font-sans-serif
These names may be very specific to my setup...not sure yet.


These fonts should map to "Monospace" "Serif" "Sans Serif", which 
I just broke.


And after I mucked around   the stock font names, which on this REBOL/View 
 2.7.5.4.2 18-Mar map to

font-fixed = "courier"  font-serif = "times"  and font-sans-serif 
= "helvetica", all look way better now.


Maybe I'll just let you get on with it, and quit mudding the waters 
 :)
Ashley
6-Apr-2007
[5734]
FYI, View sets its fonts in %gfx-objects.r (part of the SDK) with 
the following code:

set [font-serif font-sans-serif font-fixed] any [
	select [
		1 ["CGTimes" "CGTriumvirate" "LetterGothic"]
		2 ["times" "arial" "courier new"]
		3 ["times" "arial" "courier new"]
		5 ["baskerville" "zurich" "courier10 bt"]
	] system/version/4
	["times" "helvetica" "courier"]
]
Frank
6-Apr-2007
[5735]
With my config  (Mandriva 2007) fonts selector opens behind "user 
interface" window
Robert
6-Apr-2007
[5736x3]
RebGUI2: Cyphre and I will take a look.
format attributes: Using the DBase approach is IMO good. A lot of 
people still know it and IIRC it was pretty complete.
actions: We have added a RESET-ACTION. With this I can call something 
like my-form-gui/reset and it will reset all contained widgets to 
some default values. IMO a must have and keeps default values etc. 
near the widget, the source of information.
Gregg
6-Apr-2007
[5739]
The ON-* convention has been used in a number of frameworks. It should 
be familiar to a lot of people.
Graham
6-Apr-2007
[5740x3]
Any way to selectively change the row colors on a table ?
for the text and not the highlight
This is to indicate new messages in a forum
Ashley
6-Apr-2007
[5743]
fonts selector opens behind 

user interface" window" ... odd, does the same thing happen with 
color selectors from the same window? What happens when using the 
various requestors from %tour.r? What View version are you on? Anyone 
esle ever seen anything like this?

DBase approach is IMO good.

 ... Is there a concise reference somewhere online I can work off?

Any way to selectively change the row colors on a table?
 Not at present.
Frank
7-Apr-2007
[5744]
REBOL/View 1.3.2.4.2 16-Mar-2006 Core 2.6.3
Same problem for color selectors 
Using the requestors from %tour.r is ok.
(with REBOL/View 2.7.5.4.2 18-Mar-2007, i have the same problem)
Ashley
7-Apr-2007
[5745]
OK, so the problem is with popups that call popups. When the second 
requestor (font or color) is called does it *initially* appear behind 
the calling requestor, or are you saying that clicking on the calling 
reqestor *allows* the calling requestor to come to the foreground 
and obscure the second popup? (This later behaviour is what occurs 
on Win & Mac).


Secondly, is the second popup modal (i.e. after it appears can you 
still interact with the first popup)? On Win & Mac the popup is truly 
modal (apart from the windowing issue, which I think can be solved 
by use of the 'parent option).
Pekr
7-Apr-2007
[5746]
Graham - why don't you use grid? Is it incompatible with current 
rebgui version? It is not as powerfull as Henrik's grid, but surely 
few light years ahead of table. You've got very simple usage help, 
but workable imo ...
Frank
7-Apr-2007
[5747]
Ashley, the second requestor appears between the calling requestor 
("user interface") and the main window ("tour") and i can't interact 
with the calling requestor ("user interface').
Graham
7-Apr-2007
[5748x2]
Grid ?  Never thought of it.
No examples of grid given ... and Ashley has marked it as needing 
more work.
Ashley
7-Apr-2007
[5750]
Frank, could you please test this fix for me. Edit %rebgui.r and 
replace the following:

	either parent

with:

	either any [dialog parent]


This *should* force the popup to appear and remain on top. Thanks.
Graham
8-Apr-2007
[5751]
table/select-row is still missing the no-action refinement.  Is it 
not needed?
Robert
8-Apr-2007
[5752]
In my version I have it. IMO it's required.
Graham
8-Apr-2007
[5753]
I put it back into mine as well.
Frank
8-Apr-2007
[5754]
Ashley, it works fine, thx.  Back on thursday....
Ashley
8-Apr-2007
[5755]
IMO it's required
 ... agreed. Added to both table and text-list.
Pekr
8-Apr-2007
[5756]
Graham - IIRc I sent you very brief doc, which shows some usage. 
Even with such doc, you are able to have xy times better grid than 
table is. But - I have to check with Cyphre and I already asked him 
for upgrade, as his grid worked with his RebGUI version, and I would 
like to use official beta 2 definitely ....
Ashley
8-Apr-2007
[5757]
Build 74 uploaded to SVN. Includes the following additions:

1) New action object used as follows:

	box "" red
		on-click		[
			print "click"

   system/view/focal-face: face	; required to pick up scroll events
			system/view/caret: face/text	; required to pick up key events
		]
		on-alt-click	[print "alt-click"]
		on-dbl-click	[print "dbl-click"]
		on-scroll		[print scroll]
		on-key			[print ["key" event/key]]
		on-over			[print "over"]
		on-away			[print "away"]
	;	on-focus		[print "focus"]
	;	on-unfocus		[print "unfocus"]

2) New layout keywords added as follows:

	text "Test" text-color blue
	text "Test" bold
	text "Test" italic
	text "Test" underline


3) New 'examine function added to provide detailed information about 
a widget:

	>> examine table

Also a number of fixes:

1) Multi-row Shift hilight selection fixed (pekr)
2) Dialog has parent option by default (Frank)
3) Keystrokes on a button no longer passed along (Graham)
4) request-password enhanced to allow following:

		request-password/check [if (length? text) < 6 ["Problem"]]

5) /scroll option removed from display

6) /min-length & /max-length refinements removed from request-password

7) /no-action option added to select-row function of table & text-list


WARNING: These changes are wide-reaching and have not been fully 
tested ... some things may have been broken. Full documentation in 
preparation.
Pekr
8-Apr-2007
[5758]
very nice, going to SVN now  to download new build ...
btiffin
8-Apr-2007
[5759]
Ashley...you are da' man.
Pekr
8-Apr-2007
[5760]
As RebGUI is aproaching 1.0 release, I would like to know your opinion 
on following - how do you construct and optimise your GUI? So far, 
if you look at tour.r, it reminds me of one big dialog configuration 
box. Not sure what to do about it, maybe it is a given, as widgets 
we have do suggest such layouting. This debate could open discussion 
about eventual addition of potentially missing widgets. My questions 
are:


- are you missing kind of MDI application scheme? Parent window, 
containing one or more child windows, which are not able to being 
moved away from its parent. We used that design much, but I am not 
sure anymore it is vital, as with latest system, we use two monitor 
set-up, and by simple accelerator key we can navigate window being 
moved between displays. Having MDI available, we would probably need 
rebol/view native windowing system. So - is anyone missing something 
like that?


- do you somehow optimise your display? Isn't it like following? 
- with using tabs, everything is in memory, whereas it eventually 
is not needed? How do you divide your application, if you would like 
to have kind of load-on-demand aproach?


What styles do we miss, to further help us have more complete GUIs? 
I created screenshot of potentially two usefull widgets:

http://www.xidys.com/widget-drop-tab.jpg
http://www.xidys.com/widget-vertical-tab.jpg


Especially with the second one, I think it could be usefull. It is 
used by many applications. It is kind of mixture of tab and tree, 
but not necessarily with multi-level aproach, just one level of nesting, 
mostly represented by icons, text, or icons plus text. I would like 
to know your opinion.
PeterD
8-Apr-2007
[5761]
Pekr, whre can I download the new build?. No luck finding SVN
Bloodie beginner!
Pekr
8-Apr-2007
[5762]
PeterD - ok, I can zip it and send it to your email - please give 
me your email address ...
PeterD
8-Apr-2007
[5763x2]
Thanks, please send it to: [peter-:-danek-:-com]
I like the verical tab !
btiffin
8-Apr-2007
[5765]
Pekr; If this is an open question, and not just to Ashley,


I use what I'm given.  In that I build apps (not many so far) using 
the toolkits I see in front of me.  I'll definitely retrofit my existing 
Fire and Rescue Management app with a Menu once the flurry of RebGUI 
development slows down a bit (and please don't slow down, love the 
flurry).


Unless my systems crash, I spend zero time optimizing, wait I take 
that back, I try and follow my own style guides while I'm writing. 
 There is the odd backtrack to get a tab panel to line up nicely 
inside another.  Other than fixing glaring visual ugliness, no optimizing.


I design with a 'small town business model'.  I hand deliver applications.


If I go and snag a feature that goes quirky during my initial testing, 
I dump the widget and look for another.  My 0.4.0 build of RebGUI 
had sticky persistent drop-list's so I used labels and a special 
requestor.  I'm not sure I'll retrofit these.


The easier things are out of the box for me, the happier.  Give me 
the tool, describe how it works and I'm satisfied (when it's as elegant 
as REBOL, RebGUI and RebDB).
Pekr
8-Apr-2007
[5766]
well, vertical tab - beware - those are not rebgui examples, just 
external apps - for inspiration :-)
PeterD
8-Apr-2007
[5767]
Understand, I like the "real estate handling" part of such a widget.
Is it http://trac.geekisp.com/rebgui/?
btiffin
8-Apr-2007
[5768]
I'm using http://svn.geekisp.com/rebgui
PeterD
8-Apr-2007
[5769]
Pekr, thanks 4 the zip
Pekr
8-Apr-2007
[5770]
you're welcomed ....
Robert
9-Apr-2007
[5771]
Petr, well I use one main window, it has one PANE (box) which will 
have all data-form specific parts. This PANE is changed dynamically 
depending on the user choice. I hope to have an english demo available 
of my application that I can provide for download. IMO the concept 
is quite simple to use, and simple to progam.
Ashley
9-Apr-2007
[5772]
Build 75 uploaded to SVN. Fixes some problems introduced in build#74 
and improves widget documentation. See here for a complete list: 
http://www.dobeash.com/RebGUI/widgets.htmland also the updated %tour.r 
Widget and Function Ref tabs.
Pekr
9-Apr-2007
[5773x3]
now if area could scroll by hiliting by mouse, most "bugs" would 
be fixed for me :-) Well, not me, it was Bobik who reported it to 
me, as for me, being keyboard guy - I am ok with ctrl + A :-)
hmm, maybe drop-list and-edit list could work with keyboard (arrows, 
scroll wheel) too, but those are all imo minor features missing ...
Do you think that it would be possible for tour.r, to include e.g. 
one tab, showing how focusing works, including buttons? E.g. by default 
some element would have focus and you would be able to tab-focus 
between most ui elemetns?
PeterD
9-Apr-2007
[5776]
Can I use multiple level sort on a table?
If yes how?