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
16-Apr-2007
[6063x2]
I get a red line, which is deeper than specified
I want to hide the widget so, I really want to set it to 0x0
Ashley
16-Apr-2007
[6065]
what about:

	text "blah" false
Graham
16-Apr-2007
[6066x2]
Hmm.  That works
Can I put that in the widget definition?
Ashley
16-Apr-2007
[6068]
show?: false
Graham
16-Apr-2007
[6069x2]
I'm using these hidden widgets to controll the low, high range of 
acceptable values in a widget, and to provide them with database 
field names
ie.form validation and not field validation
Ashley
16-Apr-2007
[6071]
Seems an obscure way of doing it ...
Graham
16-Apr-2007
[6072x3]
It allows a user to define a template like this:


label "Tender joint count? (0-28)" outcome "tender28" ifield  low-range 
"0" hi-range "28" return
so, outcome refers to the database field, and the user has integer 
field for the data, with a low range of  0, and a high range of 28
I guess I could use a custom widget and use options instead
Ashley
16-Apr-2007
[6075]
or a spinner?
Graham
16-Apr-2007
[6076x3]
takes too many clicks
you have to highlight a spinner and type over it
extra work
Ashley
16-Apr-2007
[6079]
then add spinner to hilight-on-focus and they can just type overtype 
the value directly.
Graham
16-Apr-2007
[6080x2]
I think I created this dialect pre-spinner days :)
Does a spinner allow blank field to start off with ?  Trying to avoid 
users accepting default values
Ashley
16-Apr-2007
[6082]
Not at the moment. Should it? And if so, should it let them leave 
the widget without entering a value?
Graham
16-Apr-2007
[6083x5]
Well, I don't want to present a template with prefilled values
because then the user doesn't know which ones they filled in or not
Hmm.  Adding show?: false to the widget definition is not helping.
I guess the other reason I don't like using spinners in data entry 
forms is that it forces the user to switch from keyboard to mouse
Unless the spinner also accepts cursor keys
Ashley
16-Apr-2007
[6088]
Agreed. It's one of the things my users have asked for (especially 
on drop-list/edit-list).
Graham
16-Apr-2007
[6089]
Guess my fix is going to be to add 'false to all the templates I 
have to hide the widgets in question
Ashley
16-Apr-2007
[6090]
show?: false *should* work, haven't tracked down why not yet. Also, 
if you're going to be placing "hidden" widgets consider using box 
with a 0x0 size. This involved less processing and lets you use the 
data facet without having to "hide" the widget per sa. e.g.

	box 0x0 data "Text"

does what you want.
Graham
16-Apr-2007
[6091x2]
it would mean changing all the form processing logic which currenlty 
looks at the text facet
and also again all the templates
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
[6112]
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).