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
22-Apr-2007
[6348x2]
View-face is now gone from display.r
now called 'spec ...
Ashley
22-Apr-2007
[6350x2]
It now reuses the spec word.
Build#90 uploaded to SVN with mouse focus hack borrowed from VID. 
Run this script:

	display "" [

  field on-unfocus [either (length? face/text) > 3 [true] [false]]
		button [print "click"]
		calendar
	]


Click in the field and type a character, then try clicking the button 
or calendar, continue typing and then click the button and calendar 
again.
Graham
22-Apr-2007
[6352]
can't keep up :(
Ashley
22-Apr-2007
[6353]
with what?
Graham
22-Apr-2007
[6354]
all these changes!  :)
Ashley
22-Apr-2007
[6355]
I'm hoping today's builds fix *all* outstanding focus/caret problems, 
many of which have been around for a long time now. ;) If that's 
the case then I'll do a public build and the pace of changes will 
slow.
Graham
22-Apr-2007
[6356]
I need an automated merge utility!
Ashley
22-Apr-2007
[6357x2]
Anyway, whatever happened to release early, release often!
What do you need to merge, I thought I'd inlined all your changes 
by now?
Graham
22-Apr-2007
[6359x5]
custom widgets
error trapping in area.r for caret errors
extra ( redundant ) options in 'display
don't mind me .. just carry on :)
is it feasible to allow one to pick a symbol on the fly rather than 
defining in symbol.r ?
Ashley
22-Apr-2007
[6364]
%create-distribution.r should make the widget merge pretty easy.

Recent changes hopefully make the %area.r caret error trap redundant 
(if not, I'll add that in with the next build)
What extra refinements do you have for display?
Graham
22-Apr-2007
[6365x2]
I wasn't clear on how to create borderless windows, so I added an 
options refinement to allow for that.
as in Vid
Ashley
22-Apr-2007
[6367]
What do you set your options to?
Graham
22-Apr-2007
[6368x3]
let me have a look
[no-border]
It's just so i can create a clean screen capture with out the borders
Ashley
22-Apr-2007
[6371]
re: symbol. You acn do that easily with:

	symbol "&" font [name: "Wingdings"]
	symbol 20x20 "&" font [name: "Wingdings"]
Graham
22-Apr-2007
[6372]
easy enough then
Ashley
22-Apr-2007
[6373]
Isn't no-title what you're after then?
Graham
22-Apr-2007
[6374]
is no-title the same as no-border ?
Ashley
22-Apr-2007
[6375x2]
The following works well enough:

	display "" [
		button [unview]
		do [face/options: [no-title no-border]]
	]
On windows, no-title replaces the windows title-bar and blue 3 pixel 
border with a 1 pixel black border. no-border in conjunction with 
no-title removes the black 1 pixel border. no-border does nothing 
by itself (at least on my WindowsXP box).
Graham
22-Apr-2007
[6377x5]
Except I was displaying a user's template ...
so, this way I guess I'll have to add to the user's form the do block
before I display it.
not a biggie.
Was there a no-hide refinement in the past ?
Ashley
22-Apr-2007
[6382]
Yes, required by the old [rather dysfunctional] modal system.
Graham
22-Apr-2007
[6383]
I need to clean up my old source then!
Ashley
22-Apr-2007
[6384x2]
About the only display refinement that's still specific to dialogs 
is, well, the /dialog!
The /scroll refinement has also gone as on-scroll lets you trap this 
at the widget level now.
Graham
22-Apr-2007
[6386]
I see that I had an alert based upon your old code but allowing for 
much more text ...hence the no-hide
Ashley
22-Apr-2007
[6387]
So that leaves good, sensible refinements (I'd calss the ones that 
were dropped as "hacks" to get some other functionality working).
Graham
22-Apr-2007
[6388]
Is there a way I can make it so that escape always closes the current 
window?  Or, do I have to put a widget with escape as the key ?
Ashley
22-Apr-2007
[6389]
Build#91 uploaded to SVN with inbuilt ESC handling. The processing 
 logic is:


1) If a widget has focus (e.g. an area or field) let it handle the 
ESC
2) If it's assigned to a widget then do the associated action

3) If a popup (including choose: drop-list, edit-list, menu) is active 
close it

4) Otherwise, treat the ESC as a close event (i.e. invoke close handler, 
check for app exit, etc)
Graham
22-Apr-2007
[6390]
Nice
Graham
23-Apr-2007
[6391]
Any chance of capturing control and shift Function keys?
Pekr
23-Apr-2007
[6392x2]
does Alt work? (for menu)
and I buy a beer to person, who makes ctrl tab, and ctrl shift tab 
working (tab widget) :-)
Graham
23-Apr-2007
[6394]
Also, cursor key to change focus on buttons
Pekr
23-Apr-2007
[6395]
yes ....
Graham
23-Apr-2007
[6396]
In the spell checker, the word you were checking used to remain high 
lighted even if you clicked on one of the suggestions ( I think ). 
 Now it doesn't;
Ashley
23-Apr-2007
[6397]
Any chance of capturing control and shift Function keys?

 I certainly don't want to have 36 function key handlers, but enhancing 
 the function key handler spec to support refinements should be easy 
 enough; so:

	make function! [face] spec

becomes:

	make function! [face /control /shift] spec

does Alt work? (for menu)
 ... see http://www.rebol.com/docs/view-system.html#section-5.9

Short answer, no. But if R3 supports it I will.