World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Graham 13-Apr-2007 [5865x2] | Wonder how easy it would be to do real time spell checking? |
as Firefox does ... | |
btiffin 13-Apr-2007 [5867] | Isn't that just look up and highlight...quite a bit easier/faster than offering corrections? |
Ashley 13-Apr-2007 [5868] | how easy it would be to do real time spell checking ... with a cut-down version of Ladislav's code (mainly limiting edits to one char distance) speed is no longer an issue. I'm looking at using draw to red underline all spelling errors in a text face and then only popping up the spellcheck box on right-clicking a misspelled word. Problem is synchronizing red underlines with scrolling. R3's rich text support would make this trivia [by comparison] to implement. |
Steeve 13-Apr-2007 [5869] | R3 will support rich text format ? where is this claimed ? |
Ashley 13-Apr-2007 [5870] | http://www.rebol.com/article/0123.htmland follow-up references in some of Carl's blogs. |
Steeve 13-Apr-2007 [5871] | old speech from Carl |
Ashley 13-Apr-2007 [5872] | Yea of little faith! ;) We'll know after the Devcon one way or the other. |
Steeve 13-Apr-2007 [5873x2] | it's no so difficult to synchronize draw effects with scrolling |
i've done it many times | |
Ashley 13-Apr-2007 [5875] | The source code for area is here: http://trac.geekisp.com/rebgui/browser/widgets/area.r?format=raw feel free to propose a solution. |
Steeve 13-Apr-2007 [5876x9] | ah ah |
you got me | |
there are several ways | |
we should first define an api | |
an interface | |
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 [5914] | drop-tree ? |
older newer | first last |