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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Ashley
16-Apr-2007
[6093x2]
This should do the trick then:


 append-widget [outcome: make rebgui/subface [size: 0x0 init: none]]

	display "" [outcome "blah"]
BTW, what changes are you having to add back in every time you do 
an SVN sync? I'll look at incorporating the more generic ones.
Graham
16-Apr-2007
[6095x4]
basically error trapping
though my changes are getting fewer and fewer as rebgui improves 
:)
in 'current-word, add a check for series? str
in 'edit-text, add an attempt around the caret handling
Ashley
16-Apr-2007
[6099x3]
A list of your changes would be good, might help to nail the remaining 
problems.
Ah, beat me to it.
How curious, I've just discovered that hilight-on-focus doesn't work 
with align: right. Need to fix this (for spinner).
Graham
16-Apr-2007
[6102x4]
I also redefined spellchecker ... to do other things
but I need to revert that back to yours
I've also got a sparker widget
sparkline widget
Ashley
16-Apr-2007
[6106]
Which does what? ;)
Graham
16-Apr-2007
[6107x3]
http://synapsedirect.com/forums/permalink/3012/3046/ShowThread.aspx#3046
A sparkline is a graphic intense object of word size
I've got about 30 of these mini graphs to display patient status 
on multiple parameters
Ashley
16-Apr-2007
[6110]
Probably not something that will ever be part of the base release, 
but feel free to check it in to SVN and add an entry to WidgetList. 
The pie-chart widget and Robert's chart widget probably fall into 
the same category. I'll eventually figure out a good way of providing 
a base + optional widgets download facility. What I really want is 
a checklist of widgets to download which dynamically builds a tailored 
%rebgui.r ... sort of a "would you like fries with that" type facility.
Graham
16-Apr-2007
[6111]
have a file named custom-widgets.r ??
Ashley
16-Apr-2007
[6112x3]
Something like that. I'm about 10 minutes away from uploading all 
the changes we've been discussing (text size fix, spinner fixes, 
hilight-on-focus fix).
Plus your patches above ...
For you edit-text patch, where do you place the attempt? (caret is 
handled in quite a view places there).
Graham
16-Apr-2007
[6115x3]
after : scroll: face/para/scroll

to 

] ;;GC
		show face
	]

	feel: make object! [
which basically stopped any more caret errors I was having.
brute force method :)
Ashley
16-Apr-2007
[6118]
I've wrapped both in a gui-error/continue test which will write out 
diagnostic information to %error.txt but ignore the error.
Graham
16-Apr-2007
[6119x5]
Hmm.  I'm stuck in a edit-list .. can't tab out of it
and can't use the mouse to take the caret elsewhere :(
what a life .. trapped in an edit-list!
I have edit-list in caret-on-focus
and I did a show-focus to get to the edit-list
Ashley
16-Apr-2007
[6124]
Yep. Reproduced. Give me another 10 minutes on the upload. ;)
Graham
16-Apr-2007
[6125]
thanks
Ashley
16-Apr-2007
[6126]
Uploaded build#81 to SVN. Includes the following changes:

	Fixed label & text auto-sizing (now defaults to -1x-1)
	Spinner now accepts an empty starting value
	hilight-on-focus now works again

 [edit-list field password spinner] are now hilight-on-focus (area 
 remains caret-on-focus)
	edit-list fix

Also updated:
	http://www.dobeash.com/RebGUI/widgets.html
	http://www.dobeash.com/RebGUI/functions.html
Anton
17-Apr-2007
[6127]
Ashley, View system has broken highlighting and caret positioning 
with center and right aligned text. It's been a problem for a long 
time.
Ashley
17-Apr-2007
[6128]
Well, the problems I hit were all at the mezz level (focus) so easily 
fixed.
Pekr
17-Apr-2007
[6129]
why table and text-list are not hilight on focus too?
Ashley
17-Apr-2007
[6130]
Ah, because they don't get keyboard focus like area and field do. 
The fact that they are not tabbable [yet] is a separate issue.
Pekr
17-Apr-2007
[6131]
How is getting the keyboard focus solved in widget? Via some method? 
What is new widget supposed to implement in order to support it?
Graham
17-Apr-2007
[6132x3]
I'm getting a 5 second delay on using the "close" button in the spell 
checker, or on the final "add".  I wonder if it's better to close 
the spell checker window down first and then do the file maintenance.
Sometimes you need to disable buttons etc, until an action has been 
completed.  Rather than redefining the action of the face, how about 
a putting a flag that signifies whether the action is active or not?
in request-spellcheck.r, what does this line do?

	;	do we have a string with > 1 char?
	any [not string? face/text 2 > length? face/text] [exit]
Ashley
17-Apr-2007
[6135]
Checks that face/text is in fact a string and has a length greater 
than one char. We don't really want to spellcheck an empty string 
or one with a single character in it. Why, is it causing a problem?
Graham
17-Apr-2007
[6136]
How come you don't need an 'if in front of that?
Ashley
17-Apr-2007
[6137]
getting a 5 second delay
 Got it. Hard to believe, but:

	write file form sort unique dict

is about a hundred times slower than:

	write file form dict


Sorting isn't so bad, but unique absolutely grinds it to a halt. 
Timings are:

parse		00:00.2
plus sort	00:00.8
plus unique	00:05
Graham
17-Apr-2007
[6138x2]
Isn't the dictionary already unique ?
Why check it again?
Ashley
17-Apr-2007
[6140x2]
Doh! Thanks, that's now two errors I need to fix in spellcheck. Will 
upload fix in a few minutes.
Uploaded build#82 with above changes. Note also that the request-spellcheck 
function now has a /anagram refinement (don't ask).
Graham
17-Apr-2007
[6142]
:)