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

World: r3wp

[!RebGUI] A lightweight alternative to VID

BrianW
26-Aug-2005
[1870x2]
neat. got my very simple gui app working in View, and I'm suddenly 
overwhelmed by the urge to try it with RebGUI instead.
How do I right-align the text in a field?
Graham
26-Aug-2005
[1872]
right
Henrik
26-Aug-2005
[1873]
field font [align: 'right]
should work
BrianW
26-Aug-2005
[1874]
perfect, thanks
Ashley
26-Aug-2005
[1875]
Graham, best you can do is remove #Y directive from first 3 widgets. 
To make things even clearer, revert the span-resize function to its 
pre-0.3.4 definition (i.e. replace the following:

			;	protect against negative sizes
			if find face/span #"W" [
				...
			]
			if find face/span #"H" [
				...
			]

with:

			if find face/span #"W" [face/size/x: face/size/x + delta/x]
			if find face/span #"H" [face/size/y: face/size/y + delta/y]

in %rebgui.r (as has been done in the next build).
Graham
26-Aug-2005
[1876x4]
ok.
I've got to keep the #Y as otherwise the top three widgets don't 
move down on resizing ( there are widgets not shown above them ).
that change doesn't seem to have helped :(
Oh, and how do I scroll the text in the chatarea using the slider?
Ashley
26-Aug-2005
[1880]
The area widget, like text-list, should have a slider that appears 
as needed. Hope to have that in the next build.
Graham
26-Aug-2005
[1881]
Ok.
Graham
27-Aug-2005
[1882]
The action associated with the first tab of a tab-panel does not 
fire when first viewed ... wonder if that should be the case.
Graham
28-Aug-2005
[1883x2]
Is there a way to alter the spacing vertically in a check-group? 
 It doesn't respond to space nxn ...
Do group-boxes resize?
Ashley
28-Aug-2005
[1885x2]
No, but they should.
Latest build available at: http://www.dobeash.com/files/RebGUI-035.zip

Issue log: http://www.dobeash.com/it/rebgui/issues.html


*** Unzip this file into your existing RebGUI 0.3.0 distribution. 
Requires View 1.3.1 ***

Highlights include:


 - generic face-iterator function shared by all lists (text-list, 
 table, edit-list & drop-list)

 - new improved table widget finally supporting row (including multiple) 
 selection

 - updated drop-list & edit-list widgets (defocusing support still 
 limited though)
	- area widget now sports a slider by default

 - resizing code (supporting negative sizes) reverted to pre-0.3.4

 - IMPORTANT: resizeable windows that don't have min-size specified 
 are automatically assigned one the same as the original window size
	- Various multi-row text selection issues resolved
	- Various focus issues resolved
	- numerous other minor bug fixes and coding improvements

In the works

	- basic menu widget
	- revamped documentation 
	- stabilize existing code-base for 0.4.0 beta release
Graham
28-Aug-2005
[1887x4]
note that show-focus replaces rebfocus
Page up, down, and cursor keys do not scroll text within an area.
Great news on the table selection .. must try that out.
I want to scroll the pane within a tab panel.  It's the 7th tab. 
 I can find the tab itself

tp2/pane/8/offset/x: 

but what is the path to the panel face ?
Ashley
28-Aug-2005
[1891]
Something like this:

display "" [
	t: tab-panel data ["A" [field] "b" [field]]
	return
	button "<" [t/pane/1/offset/x: t/pane/1/offset/x - 10 show t]
	button ">" [t/pane/1/offset/x: t/pane/1/offset/x + 10 show t]
]
Graham
28-Aug-2005
[1892]
Ahh.. it's the first pane in the main pane.
Graham
29-Aug-2005
[1893x3]
On reflection, I think I want to actually scroll the contents of 
that pane, and not that pane itself.
I've got about 80 check boxes on one tab panel scattered through 
a number of group checkboxes ... need to clear them in one hit. 
Need some way to run thru all the checkboxes and reset them.
Perhaps the 'clear-text accessor function can generalised to a clear-face 
function ?
Ashley
29-Aug-2005
[1896]
display "Test" [

 c: check-group 30x15 data ["Item 1" true "Item 2" false "Item 3" 
 none]
	button [foreach item c/pane [item/data: true] show c]
]
Anton
29-Aug-2005
[1897x2]
if item/style = 'check [...]
oops, sorry, non-VID..
Ashley
29-Aug-2005
[1899x2]
if widget/type = 'check-group [...]
Graham, I think a clear-widget accessor (with a "/default value" 
refinement) would make a good addition.
Graham
31-Aug-2005
[1901]
What do feel about adding a right mb click to tables ?  Just thinking 
of way to remove items from tables.
Ashley
31-Aug-2005
[1902]
Sounds reasonable. What about a double-click action as well? I was 
thinking of expanding the layout parsing rules such that *any* widget 
could be specified as:


 widget [default left-click action] [default right-click action] [default 
 double-click action]

but I'm not sure whether this is overkill or not.
Graham
31-Aug-2005
[1903x3]
choice is good... already have tristate widgets :)
It also means we have a cleaner screen .. fewer widgets to clutter 
it up to do the things we need to do with tables ie. add, remove, 
elements
Another wish for tables .. a way to set the colour of a row, which 
is controlled programmatically.  So, you might have a table of messages 
in your inbox, some of which you have read ( one colour ), and those 
to be read ( another colour ).
Robert
1-Sep-2005
[1906]
Ashley, good idea. As long as the later two are optional.
Graham
2-Sep-2005
[1907x7]
display "" [ p: password return button "Login" [ if empty? p/text 
[ show-focus p ]] do [ show-focus p ] ] do
-events


if you tab out of the password field, and then activate the button 
with the spacebar, the password field fills with one character.
tabbing does not seem to work between fields in a modal window.
the docs says that display has a /layout refinement, but it doesn't.
Looks like the layout is not parsed correctly when you specify a 
modal layout with /dialog
Retract that last statement.
Should <CR> act the same way as tab in shifting focus ?
Should tab also fire an action associated with a field ?
display "" [ group-box 60x20 "Test" data [ a: field 40 [ show-focus 
f]] return group-box 60x20 "Test2" data
[ f: field 40 ]] do-events
** Script Error: Cannot use path on none! value
** Where: edit-text

** Near: if all [tmp/x < 0 tmp2/x < 0] [face/para/scroll/x: tmp2/x 
- tmp/x]
tmp3:


After typing a few times in the top field, and then hitting enter, 
the error above can occur.
Robert
3-Sep-2005
[1914]
CR: For single line fields OK (in addition to TAB), for multiple 
NO. Standard is to use TAB to shift focus.
Graham
3-Sep-2005
[1915x2]
In that case, actions should fire on tab and not just on cr as at 
present.
Ashley, how do I set the radio buttons?  I tried this


 display "" [ sexfld: radio-group 30x5 data [1 "M" "F"] button "change" 
 [ sexfld/data: 2 show sexfld ] button
 "show" [print sexfld/data ]] do-events
Ashley
3-Sep-2005
[1917]
Simulate a click, as in:

	button "change" [
		sexfld/pane/2/feel/engage sexfld/pane/2 'down none
	]


but long-term this needs to be handled by a generic show-widget function. 
Other points above have been noted. ;)
Graham
3-Sep-2005
[1918]
Yep, that works.  Thanks.  I am trying to provide field level data 
validation so do need actions to fire on tab as well as on enter.
Ashley
4-Sep-2005
[1919]
Latest build available at: http://www.dobeash.com/files/RebGUI-036.zip

Issue log: http://www.dobeash.com/it/rebgui/issues.html


*** Unzip this file into your existing RebGUI 0.3.0 distribution. 
Requires View 1.3.1 ***

Highlights include:

	- All widgets now support alt-action & dbl-action blocks

 - Table & Text-list widgets now have a selected function to access 
 selected data directly

 - New clear-widget accessor function to handle setting values within 
 iterated faces
	- Added a clear-text accessor function
	- Documentation updated to reflect above changes
	- Number of minor bug fixes

In the works

	- revamped focus system
	- basic menu widget
	- context menu widget
	- stabilize existing code-base for 0.4.0 beta release