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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Steeve
13-Apr-2007
[5881x4]
how to add, remove  drawable items
or define a dialect for this purpose
the issue is not to create synchronisation but to have a good interface
the syncronisation part is trivial, i''ve done it in "easy drawer" 
script
Graham
14-Apr-2007
[5885x4]
Updating my script to latest rebgui .. have to do show-color: :set-color 
etc as too much code to change.
what's the equivalent of 'set-sizes  now?
and 'set-fonts ?
And where is this error from ?

make object! [
    code: 300
    type: 'script
    id: 'no-value
    arg1: :on-focus
    arg2: none
    arg3: none
    near: [focus-action: :on-focus 
        unfocus-action: :on-unfocus 
        init:
    ]
    where: 'init
]
Ashley
14-Apr-2007
[5889x2]
ctx-rebgui/widgets/rebind is what you're looking for. Note that if 
you're using request-ui then this does it for you. Basically each 
widget now knows how to refresh itself when relevenat colors, sizes, 
relevant or effects are set/changed.
Error looks like it comes from old drop-list code.
Graham
14-Apr-2007
[5891]
I ask the user to choose the text size etc at startup ...
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
[5930]
global name space