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
14-Apr-2007
[5892]
ctx-rebgui/sizes/font: new-size
ctx-rebgui/widgets/rebind
reshow-main-display (if relevant)
Graham
14-Apr-2007
[5893x4]
Ok, I see rebind.
I am using your drop-list code .. no changes.
I see 'process-keystrokes has now gone.
I was adding function key handlers there .. 

eg. f1 [ f1-handler ] f2 [ f2-handler ]

...
Ashley
14-Apr-2007
[5897]
Does your app specify an on-focus trigger anywhere? If so, which 
widget?
Graham
14-Apr-2007
[5898x2]
no ...
don't use any on-focus triggers
Ashley
14-Apr-2007
[5900]
process-keystrokes has been inlined into the display function. This 
fixes those errors where typing while the focus is on a button placed 
the characters into the previous field/area with focus.
Graham
14-Apr-2007
[5901x3]
Ok, so I can add my function key handlers there then.
Have you thought of adding them to rebgui ?
afterall, they are on the keyboard !
Ashley
14-Apr-2007
[5904]
Are these global in nature or specific to a display?
Graham
14-Apr-2007
[5905]
mine are global .. and are just redefined by the user at startup.
Ashley
14-Apr-2007
[5906x2]
e.g.

	display/F9 "Test" [...] [print "I pressed F9 on this display]
AT what point do you get the focus error? On app startup or tab navigation?
Graham
14-Apr-2007
[5908]
don't understand
Ashley
14-Apr-2007
[5909]
Does the focus error occur before anything is displayed?
Graham
14-Apr-2007
[5910x3]
on app startup
I have one password entry screen, then a status window, and then 
before the main window pops up, I get this error.
password screen closes, status window appears, and then the error
Ashley
14-Apr-2007
[5913]
Can you grep your source code for "focus-action: :on-focus" ... that 
line doesn't exist in the standard SVN source. Using any custom widgets?
Graham
14-Apr-2007
[5914x2]
drop-tree ?
yes, its in drop-tree
Ashley
14-Apr-2007
[5916]
Is that a critical widget for you?
Graham
14-Apr-2007
[5917x2]
No, I am removing it now.
It was nice to have but no critical
Ashley
14-Apr-2007
[5919]
chart, 
drop-tree, 
grid & 
input-grid need a bit of work to get 
them working again with Beta 2.
Graham
14-Apr-2007
[5920x2]
Ok.
What do you think then of adding global function key handlers?
Ashley
14-Apr-2007
[5922]
Not a bad idea. How do you specify them (i.e. if not via a display 
refinement then where/how)?
Graham
14-Apr-2007
[5923x6]
It would make it easier for me each time I have to merge my sources 
with yours ;-)
well, I just have these functions f1-handler: does []
and just redefine them when I need to use them.
ie. stubs
f10 is inaccessible though
it appears to be trapped by windows
Ashley
14-Apr-2007
[5929]
So they reside in the global name space, or do you define them within 
ctx-rebgui?
Graham
14-Apr-2007
[5930x2]
global name space
but one could put them into ctx-rebgui
Ashley
14-Apr-2007
[5932]
F1 - F12? Do you have a sample of the code you've had to add back?
Graham
14-Apr-2007
[5933x7]
I just had this
in process-keystroke

			#" " [
				;	do button action on SPC
				if all [view*/focal-face view*/focal-face/type = 'button][
					view*/focal-face/action view*/focal-face
				]
			]
			
			;; GC function key handlers
			f1 [f1-handler]
			f2 [f2-handler]
			f3 [f3-handler]
			f4 [f4-handler]
			f5 [f5-handler]
			f6 [f6-handler]
			f7 [f7-handler]
			f8 [f8-handler]
			f9 [f9-handler]
			f10 [f10-handler]
			f11 [f11-handler]
			f12 [f12-handler]
BTW, in chat.r, in a multi line text message, the blue divider cuts 
across the first line of text
It fixes when you risize
resize
If there is a lot of text, it won't display all the text in a message
It preserves the formatting of the original size and needs to reflow 
the text
Ashley
14-Apr-2007
[5940]
Got it. I've been thinking that the following accessors would probably 
cover most usage cases:

	add-message
	add-message/top
	delete-message
	delete-message/top
	set-user-color
	set-message-color
	redraw
Graham
14-Apr-2007
[5941]
edit-message ??