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

World: r3wp

[!REBOL3 GUI]

Ladislav
4-Mar-2011
[6438]
hmm, interesting, it did not crash here, when I tried the same
GrahamC
4-Mar-2011
[6439]
No, not crashing again.
Rebolek
4-Mar-2011
[6440]
It's very hard to reproduce. But I found it, so it will be fixed 
in next release.
GrahamC
4-Mar-2011
[6441x2]
How to reproduce?
( fix by allow none for skip argument! )
Rebolek
4-Mar-2011
[6443]
I clicked like mad on everything ;)
BrianH
4-Mar-2011
[6444]
That would be bad, Graham. We want that error triggered, or else 
it would be more difficult to find.
Rebolek
4-Mar-2011
[6445x2]
to reproduce it I think you need one line selected and then change 
filter to show empty table.
but it's now fixed anyway for next release.
GrahamC
4-Mar-2011
[6447x3]
yes, crashed again for me
I like your testing method!
sort of genetic testing algorithm
Rebolek
4-Mar-2011
[6450]
:)
GrahamC
4-Mar-2011
[6451]
So, has anyone built any real world apps yet?
Rebolek
4-Mar-2011
[6452]
next version may have some demo apps
Claude
4-Mar-2011
[6453x2]
hi, thanks for all-styles example. it is very good all so on ubuntu 
10.10 with wine ;-)
a little problem (perhaps only with wine) it is the resize of the 
application with the left bottom corner. the app seem to not find 
a good size !!!! flashing !!!
Ladislav
4-Mar-2011
[6455]
Could you please describe your findings with some details for us 
to be able to reproduce? TIA
GrahamC
4-Mar-2011
[6456x3]
resizing using the bottom left corner is much more visually jarring 
than the right bottom corner
I think this is because it attempts to resize all the time, but the 
right bottom corner resize event only occurs on mouse release
so this differs from altme where resizing only occurs on left mouse 
release
Ladislav
4-Mar-2011
[6459]
I don't think there is any resizing attempt except after the mouse 
is released. But,there are redraws.
Claude
4-Mar-2011
[6460x7]
GrahamC is right
the app don't stop the redraws
another one
i try to put a table in a tab
tab-box [
			"tab" [
				title "tab 1"
						text-table ["1" "2" "3"][
			["text table" "a" "10"]
			["line 2" "b" "9"]
			["line 3" "c" "8"]
			["line 4" "d" "7"]
			["line 5" "e" "6"]
			["line 6" "f" "5"]
			["line 7" "g" "4"]
			["line 8" "h" "3"]
			["line 9" "i" "2"]
			["last line" "j" "1"]
		]
when i select not empty on the third colomn i have this
** Script error: path filters/:index: is not valid for none! type

** Where: function! switch -apply- apply if foreach if do-face do-popup-parent 
function! switch -apply- apply if foreach if do-face -apply- apply 
use if actor all foreach do-style switch actor all foreach do-style 
either set-face switch actor all foreach do-style case do-event do-event 
do-event either -apply- wake-up loop -apply- wait do-events if view 
catch either either either -apply-
** Near: arg :face :value :actor-arg
BrianH
4-Mar-2011
[6467]
Another good catch, Graham :)
Rebolek
4-Mar-2011
[6468]
Thanks. Claude, looking into it...
BrianH
4-Mar-2011
[6469]
Sorry, Claude. I have trouple reading names of that color on a white 
background :(
Rebolek
4-Mar-2011
[6470]
It seems like problem with compound-face?. Replaced with parent-face? 
instead and seems to work fine.
Claude
4-Mar-2011
[6471]
only missing for the moment treeview menubar !-)
Cyphre
4-Mar-2011
[6472]
so this differs from altme where resizing only occurs on left mouse 
release

 - the difference in R3 is that during the window resizing the framebuffer 
 is 'resized' and redrawn as well. This was done to support  'realtime' 
 resizing during the mouse drag in the future but not implemented 
 yet.
GrahamC
4-Mar-2011
[6473]
Good to know
jocko
5-Mar-2011
[6474]
Posted my evaluation on the compatibility of r3-gui (release v1993 
dated 2011-03-04) with the standard release (recompiled) of r3 : 
r3-a111. Result: very good. 
http://www.colineau.fr/rebol/r3-gui.html
PeterWood
5-Mar-2011
[6475]
Thanks Jocko!
Pekr
5-Mar-2011
[6476x4]
Following few things:


- why is "custom" include needed? We should either user R3 native 
facilities, or include an include as a standard into R3 :-) (this 
is no real question, just a remark that if we find it usefull, then 
why notto make it part of R3?)

- RMA does not work with CureCode tickets. It would be good to either 
dismiss/close or resolve them? E.g. I find renaming of do-style and 
do-face to do-action, do-reaction a good tip to implement


- we should resolve the size of buttons vs scroller vs tabs. In Carl's 
GUI, button is 28 pixels tall, and it feels OK. Our's here is 22, 
I have no preference here, but could be those 28 pixels. Scroller 
is only 16pix - not acceptable imo. It should be of the size of the 
progress. Tabs are proportionally too tall.

- tabs should have line removed for actual tab. I suspect it might 
be more difficult to draw the container then.

- there seems to be someone at RMA liking Old aqua interface of MacOS. 
Tabs, buttons and scrollers are a good example ... of how to not 
do visuals anymore :-)

- area - enter few lines, go to bottom, and try to hilite the text 
by keyboard (shift plus arrow-up). It always hilites only actual 
line

- info areas, labes, etc., should prohibit display of caret, maybe 
allow hilighting, but allowing to have caret in "disabled" area is 
not looking nice

- text-table buttons are Excel filter inspired, but looking strange 
- some more thoughts needed
- select-an-option does not allow keyboard navigation

- text-list does not scroll, when navigated by keyboard, ditto text-table

- tabbing feels strange for text table. I alway said, that we need 
nested tabbing. I can imagine tab stopping on table, but next tab 
moving away, not actually going into tabbing in terms of the hilited 
widget. Enter should enter the more complex style, escape move away. 
That is not typical also at OS level, but then - everybody has it 
wrong :-)

- between the text-list and text-table, I have to press tab three 
times -visually I am not sure, "where" hilite disappears

- is text-table a compound style? What sense does it have to have 
buttons hilighted, not being able to enter the action? Why are not 
arrows tabbable? Table headers cells should be one style, not two.

- text-table is the weakest "grid" we ever had. Comparing to Cyphre's 
style pack, and rebgui grid. This is like 5% of functionality, not 
thought out style, useless for any serious data. I want to see the 
display of infiinte amount of data, proper caching.

- tab should be tabbable, ctrl-tab allowed to switch between the 
tabs  


I find the styles/gui inconsistent. There should be someone defining 
the styles, their behaviour to keyboard navigation, tabbing, etc. 
So far it seems like style being put together with no deeper thought 
about the end result of the whole GUI.
Someone might have a feeling, that I sound negative. I don't :-) 
The achievement is concrete, material, good. But to have consistent 
and well behaved GUI, business grade, we need to introduce anyther 
layer - consistency:


- tabbing and visual representation of in-focuse styles - currently 
very inconsistent. Maybe not just implemented for all styles

- keyboard navigation is a must. We have to be able to navigate by 
keyboard thru allowed guielements, consistently
- keyboard acceleration keys are completly missing so far
- style metrics
- final design/skin as a last one
Resizing - very nice, predictable.
from tab-box docs - what is 'some?

tab-specs: some [
Rebolek
5-Mar-2011
[6480]
Thanks for reply, Pekr.

- curecode - I'm not sure about others but I don't have enough rights 
on curecode to change state of tickets.

- visuals - 1) as has been said many times, not a priority right 
now and also 2) highly subjective

- tabs should have line removed - see above reply to Graham, why 
it's problematic

- keyboard navigation is broken in this release, subject for next 
release

- text-table is useless - I really like these statements of yours 
without any serious backing. "I want to see the display of infiinte 
amount of data, proper caching." - please, elaborate of what's not 
possible here.
Pekr
5-Mar-2011
[6481x3]
Rebolek - easy to describe. Cyphre is the guru of grids. I remember 
his Cyphre styles grid, and I also do remember grid my company paid 
for, for RebGUI. And I really don't understand, why witch each new 
GUI, we have to start from scratch, and introduce something which 
is clear departure from what was achieved before? Here's few features, 
which were supported:

- cell can be ANY style (VID dialect)

- virtual columns/rows. Simply put - no need to reformat data obtained 
from some data source. Easy to switch/hide columns/row. Only pointers 
to data moved, no need to reformat data, easy to submit back to db 
backends, without the need to reformat the data again

- hilighting - row or cell or cell + row, full keyboard navigation
- horizontal scrolling
- ultra fast, unlimited amount of records


In the past (1998) we bought a product called GridPlus for our CA 
Visual objects. It was few thousands of lines of code, but it just 
smashed any other grids from Delphi, etc. Ditto for DOS era - EzBrowse 
- it even allowed to freeze columns, save set-up of grid plus filters 
for particular windows etc. I have very good idea what kind of functionality 
should grid allow.
Keyboard support - I'll wait for next release then ...
As for the consistency, and my complaint that the whole gui is not 
build with unifying idea - it has NOTHING to do with the skin. Just 
look at arrows:

- arrow button
- arrow button of scroller
- arrow button of drop-down
- arrow button of text table


Those are all different, and this is exactly the reason why some 
ppl try to do comound styles - to have just one arrow. If you are 
not carefull, you end up with above different arrow representations 
...
Henrik
5-Mar-2011
[6484]
Pekr, it might actually be that it's not a good idea to use the same 
arrow for things that are quite different, for skinning reasons. 
But I also suspect, you wouldn't complain, if the arrows were skinned 
identically.
Rebolek
5-Mar-2011
[6485x3]
- cell can be ANY style - this is TEXT-TABLE so it's clearly not 
intend of this style

- no need to reformat data, easy to switch/hide columns/ rows - data 
are referenced, simple update-face will update table, columns can 
be hidden, that's specified in dialect, row hiding can be done with 
filters

- unlimited amount of records - if you mean limited by RAM then yes, 
that's implemented and only visible lines are displayed, not everything

- save set-up of grid - yes, text-table supports that. You can store 
state of whole table and create new one from this state in one line 
of code.

- horizontal scrolling - wasn't needed, but isn't problematic. text-table 
can support unlimited columns.
visual consistency - it has been said many times (but probably still 
not enough) that it's not priority.
there is TABLE style that can has cell of any type. It was too slow, 
but it should be much faster now, so you can expect in one of next 
releases.