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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Graham
10-Nov-2006
[4942]
Ok, problem is fixed in latest rebgui.
Ashley
10-Nov-2006
[4943]
Build#42 (Trac only) has your "return none" fix plus a fix to the 
long-standing tool-bar tooltip bug (tooltip not hiding after tool-bar 
button clicked).
Graham
11-Nov-2006
[4944x2]
I would like to see an enhancement to tables so that /selected/block 
returns series of blocks.
the reason is that if you are have anonymous tables, the only way 
to work out the length of a row is to take all the selected and divide 
by the length of picked
Ashley
11-Nov-2006
[4946]
How about just adding 'cols and 'rows attributes then?
Anton
11-Nov-2006
[4947]
What if rows have variable lengths ?
Graham
11-Nov-2006
[4948]
don't think allowed ...Anton
Anton
11-Nov-2006
[4949]
(Ok, sorry, that was not a well-considered comment of mine.)
Ashley
16-Nov-2006
[4950x3]
Build#45 (Trac only). Includes the following enhancements:
- display now returns face

 - clear-widget uses radio-group/select-item and table/text-list select-row
 - table/rows attribute added to complement table/cols
 - text-list/rows attribute added
 - get-input and set-input funcs added


These later functions allow you to easily get and put values into 
a display or tab-panel, even one containing nested grouping widgets 
such as 'group-box or 'tab-panel. Handles the following input widgets: 
area check check-group drop-list edit-list field group-box password 
radio-group slider tab-panel table text-list.


The /type refinement of get-input is usefull in design/debug mode 
to get a formatted list of widget type/value pairs.
Example code to demonstrate the use of these two functions.

d: display "Test" [
	after 3
	area "area"
	check true
	check-group data ["check" true]
	drop-list data ["drop-list"]
	edit-list data ["edit-list"]
	field "field"
	group-box "group-box" data [
		field "field"
	]
	password "password"
	radio-group data [1 "radio-group"]
	slider data .5
	tab-panel data ["A" [field "Tab-panel"] "B" []]
	table options ["col" left 1.0] data ["row1" "row2"]
	text-list data ["line1" "line2"]
	button [a: get-input d b: get-input/type d halt]
	button [

  put-input d ["Text" true [false] "A" "B" "text" ["xx"] "" 1 1 ["Bob"] 
  [1] [2]]
		show d
	]
]
Pekr
16-Nov-2006
[4953]
put-input?
Graham
16-Nov-2006
[4954]
or set-input ?
Ashley
16-Nov-2006
[4955]
I'm still open on the names, and will probably add a 'clear-input 
type function to round out the set. I chose the word 'input as both 
'form and 'values implies a superset of input [values]. I also considered 
other action words such as read, write, load and save; but to my 
mind they are so well established in REBOL that they already have 
other meanings (e.g. load-form, like load-image, would imply loading 
a form from disk).

'set is OK except that the logical complement is 'unset.
Graham
16-Nov-2006
[4956x2]
load-fields?
the ? above is because you introduce it as saying you have implemented 
'set-input and then the example uses 'put-input ....
Ashley
16-Nov-2006
[4958]
Ah, missed that. It should be get and put.


load-fields suffers from the dual problems of "load" (as described 
above) and begs the question, "what about other widgets that are 
not fields but except input". We'de have folks looking for load-area, 
load-text-list, etc
Graham
16-Nov-2006
[4959]
fill-fields
Robert
17-Nov-2006
[4960x3]
Ashley, please take a look at the xpeers RebGUI stuff. We have added 
a lot and should align the code lines.
Resizing: I have a question how to best implement the following:
- I have three tables from left to right

- I want to make a horizontal resizing in that the middle and right 
table are moved and narrowed.
- The left most tables only uses #X
- The moving should be right aligned to the left side table


I hope you understand what I mean. Using #WX screws up the layout 
as the gaps between the table get to big
any idea how I can get the desired resizing effect?
Ashley
17-Nov-2006
[4963]
Not exactly sure what you want, something like this:

	display "Test" [
		table #W options ["" left 1.0] data []
		table #X options ["" left 1.0] data []
		table #X options ["" left 1.0] data []
	]
Robert
18-Nov-2006
[4964]
But than the tables 2 and 3 don't change their width, right? So what 
I want is that all three tables get narrowed and are still horizontally 
aligned with the distance given by SPACE 2x2 for example.
Ashley
18-Nov-2006
[4965]
Current system does not support more than one resize per axis (i.e. 
you can have one #W per x axis and one #Y per y axis). What you are 
asking for is a form of proportional resizing.
Pekr
20-Nov-2006
[4966]
Robert - what are your xpeers additions to RebGUI?
Robert
20-Nov-2006
[4967]
We enhanced a lot of the widgets etc. to much to list here. The problem 
is I don't find the time to document everything and publish it. So, 
if someone want to do it, let me know.
Pekr
20-Nov-2006
[4968x2]
are results even mergable?
I will need to release grid too :-( I want to have it out 1.12 as 
is - just a bit of further documenting needed
Robert
20-Nov-2006
[4970x2]
It takes time but yes, the changes are mergeable.
Overall I think I have invested about 8000€ into RebGUI so far.
Graham
20-Nov-2006
[4972]
What are you building?
Pekr
20-Nov-2006
[4973x3]
uh, so you use Rebol commercially?
btw - isn't area enhanced to the state, that hiliting text by mouse 
will cause it to scroll?
Robert - any screenshots? I do remember some of your older stuff, 
which looked pretty. I wonder if you use default RebGUI look, or 
you tweked it a bit, to something more pleasantly looking?
Graham
20-Nov-2006
[4976]
area remains a big weakness for me.
Robert
20-Nov-2006
[4977]
Graham, I have build a cost-analysing software. With this it's possible 
to identify cost optimizing potential within the complete supply-chain.
Pekr
20-Nov-2006
[4978]
you should sell it to SAP :-)
Robert
20-Nov-2006
[4979x3]
Yes, it's commercial. The app is supported by hughe benchmark databases. 
I have about 400MB raw data, pressed into 66 MB final database.
Petr, I'm currently the interims purchasing manager for SAP AG region 
Central:-)) So, three days a week I'm in Walldorf.
Let's see... ;-)
Pekr
20-Nov-2006
[4982x2]
:-)
I hope we meet once I am at IBM :-)
Robert
20-Nov-2006
[4984x3]
Styling: I kept it mostly as is, because of lack of time. It's OK 
but a bit more eye candy would be nice.
Area: I just use it for notes and therefor it's OK.
OT: Just posting from a ICE-3 running at 300km/h
Pekr
20-Nov-2006
[4987]
:-)
Maxim
20-Nov-2006
[4988]
still have an RS6?
Pekr
20-Nov-2006
[4989]
fast train - in Germany?
Maxim
20-Nov-2006
[4990]
hihi
Robert
20-Nov-2006
[4991]
Yep, RS6... but for only 3 weeks, than I have to return it.