World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Ashley 16-Apr-2007 [6112x3] | 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). |
Plus your patches above ... | |
For you edit-text patch, where do you place the attempt? (caret is handled in quite a view places there). | |
Graham 16-Apr-2007 [6115x3] | after : scroll: face/para/scroll to ] ;;GC show face ] feel: make object! [ |
which basically stopped any more caret errors I was having. | |
brute force method :) | |
Ashley 16-Apr-2007 [6118] | I've wrapped both in a gui-error/continue test which will write out diagnostic information to %error.txt but ignore the error. |
Graham 16-Apr-2007 [6119x5] | Hmm. I'm stuck in a edit-list .. can't tab out of it |
and can't use the mouse to take the caret elsewhere :( | |
what a life .. trapped in an edit-list! | |
I have edit-list in caret-on-focus | |
and I did a show-focus to get to the edit-list | |
Ashley 16-Apr-2007 [6124] | Yep. Reproduced. Give me another 10 minutes on the upload. ;) |
Graham 16-Apr-2007 [6125] | thanks |
Ashley 16-Apr-2007 [6126] | Uploaded build#81 to SVN. Includes the following changes: Fixed label & text auto-sizing (now defaults to -1x-1) Spinner now accepts an empty starting value hilight-on-focus now works again [edit-list field password spinner] are now hilight-on-focus (area remains caret-on-focus) edit-list fix Also updated: http://www.dobeash.com/RebGUI/widgets.html http://www.dobeash.com/RebGUI/functions.html |
Anton 17-Apr-2007 [6127] | Ashley, View system has broken highlighting and caret positioning with center and right aligned text. It's been a problem for a long time. |
Ashley 17-Apr-2007 [6128] | Well, the problems I hit were all at the mezz level (focus) so easily fixed. |
Pekr 17-Apr-2007 [6129] | why table and text-list are not hilight on focus too? |
Ashley 17-Apr-2007 [6130] | Ah, because they don't get keyboard focus like area and field do. The fact that they are not tabbable [yet] is a separate issue. |
Pekr 17-Apr-2007 [6131] | How is getting the keyboard focus solved in widget? Via some method? What is new widget supposed to implement in order to support it? |
Graham 17-Apr-2007 [6132x3] | I'm getting a 5 second delay on using the "close" button in the spell checker, or on the final "add". I wonder if it's better to close the spell checker window down first and then do the file maintenance. |
Sometimes you need to disable buttons etc, until an action has been completed. Rather than redefining the action of the face, how about a putting a flag that signifies whether the action is active or not? | |
in request-spellcheck.r, what does this line do? ; do we have a string with > 1 char? any [not string? face/text 2 > length? face/text] [exit] | |
Ashley 17-Apr-2007 [6135] | Checks that face/text is in fact a string and has a length greater than one char. We don't really want to spellcheck an empty string or one with a single character in it. Why, is it causing a problem? |
Graham 17-Apr-2007 [6136] | How come you don't need an 'if in front of that? |
Ashley 17-Apr-2007 [6137] | getting a 5 second delay Got it. Hard to believe, but: write file form sort unique dict is about a hundred times slower than: write file form dict Sorting isn't so bad, but unique absolutely grinds it to a halt. Timings are: parse 00:00.2 plus sort 00:00.8 plus unique 00:05 |
Graham 17-Apr-2007 [6138x2] | Isn't the dictionary already unique ? |
Why check it again? | |
Ashley 17-Apr-2007 [6140x2] | Doh! Thanks, that's now two errors I need to fix in spellcheck. Will upload fix in a few minutes. |
Uploaded build#82 with above changes. Note also that the request-spellcheck function now has a /anagram refinement (don't ask). | |
Graham 17-Apr-2007 [6142x3] | :) |
Do you have a utility for us to build our own dictionaries? Or is it just a collection of unique words? | |
What do you think about my question on disabling the action block? | |
Ashley 17-Apr-2007 [6145] | The dictionary files are just a collection of sorted unique space separated words (all on one line, no carriage returns). I extracted them from the latest Abiword dictionary files. No utility as such, but the trick to generating them in REBOL is to get a block of strings then do a: write %my-dict.dat form sort unique my-block-of-strings As for the button disabling question, I thought it was specifically related to the spellcheck taking 5 seconds. But, more generally, I'm against that type of thing. Far better to pop up an alert or progress bar for actions that will take time. Pressing a button should provide *immediate* feedback or results. |
Graham 17-Apr-2007 [6146x3] | Ok, how about ghosting a button then? |
or other face ... | |
instead of unless any [ (length? word) < 2 how about unless any [ 1 = length? word | |
Ashley 17-Apr-2007 [6149] | Button and many other widgets have an 'info option already. Any solution to disable a widget dynamically would have to be generic and done via functions like: set-disable set-enable On a related note, I'm thinking a request-progress function might be handy. Would have the following format: request-progress 10000 [foreach f read %. [...]] request-progress/cancel 10000 [foreach f read %. [...]] [...] Advantage would be that it is modal and provides useful feedback. The /cancel block provides a "cleanup" routine if the window is closed the cancel button is pressed. Without the refinement no window close button would be present and no cancel button. Useful? |
Graham 17-Apr-2007 [6150x4] | A progress function would be useful .. but less useful for me, because modal windows can disrupt BEER async communications |
hence I strive to avoid any modal windows if I can | |
I don't know if this applies to the async protocol in general as well | |
async tcp ie. | |
Ashley 17-Apr-2007 [6154] | All the request-* functions are modal. (length? word) < 2 ... I think that was guarding against the empty string case as well. But can be expressed better as "2 > length? word" anyway. Or just drop the condition entirely. After all, "a" is a valid "word" "z" is not. |
Graham 17-Apr-2007 [6155] | yes, I know about the modal request functions, and I have to write my own non-modal ones |
Ashley 17-Apr-2007 [6156] | What a pain :( |
btiffin 17-Apr-2007 [6157] | Spell checking 'a' and 'I', note uppercase only, would be handy. Then math gets in the way :) I'd be 'either or' on that one. No vote. Wait, I take that back. I haven't been in a math class for 25+ years now. :) I vote yes on one-letter words, IFF those words are a, A and I. |
Ashley 17-Apr-2007 [6158x2] | write my own non-modal ones ... what do you do about drop-list and edit-list then? |
if those words are a, A and I ... is that an [English] language assumption? | |
btiffin 17-Apr-2007 [6160x2] | Correct. Damn Canadians :) I should know the French words as well. J, J' |
Am I ever glad there are more thorough people in the REBOL community than your's truly. I'll shut up now, and then try and figure out how much I weigh in kilograms. :) | |
older newer | first last |