World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
CharlesW 13-Jan-2007 [5212] | What's interesting is that I don't believe I am using tool-tips either. |
Ashley 13-Jan-2007 [5213] | Fixed in build#46 (Desktop -> Demos -> RebGUI will fix it). |
Graham 13-Jan-2007 [5214] | Aren't we up to #49 though? |
Ashley 13-Jan-2007 [5215] | On SVN. |
CharlesW 13-Jan-2007 [5216] | when I click on it from the desktop i get Script Error: query has no value ** Near: querying: to logic! query . |
Ashley 14-Jan-2007 [5217] | Works here with: >> system/version == 2.7.5.2.4 |
CharlesW 14-Jan-2007 [5218x2] | Thanks Ashley. I dowloaded the latest from the Doebash site and everything seems to work fine now. |
I am using the RebGui along with requests to a Rugby server. I am able to access functions on my Rugby server when calling from the action event of a button. Pretty straight forward. What I would like to do is call my rugby function async while on one of my RebGui tab-panels. I want to add the call to an event loop somewhere, but I don't know where to add it. Can you point me in the right direcion? | |
Ashley 14-Jan-2007 [5220] | Have a look at the 'ex-status text widget in %tour.r and its use of rate and feel. |
CharlesW 14-Jan-2007 [5221] | Thanks again. I believe I got it. |
Graham 18-Jan-2007 [5222] | Volker posted a solution to how to insert text into an area widget where the cursor had been before it lost focus. I don't think I got it to work properly. Will there be a way to support this? |
Volker 18-Jan-2007 [5223] | problem may be, 'focus makes sure the face/text and carfet are a string. So when you set caret to none and focus, both are strings again. Maybe focus should be patched in that case. |
Graham 5-Feb-2007 [5224x4] | Came across this when I clicked too quickly into a field |
make object! [ code: 303 type: 'script id: 'expect-arg arg1: 'find arg2: 'series arg3: [series! port! bitset!] near: [s: any [all [s: find/reverse str s next s] head str] set [ns]] where: 'current-word ] | |
So, going to have to trap this in the 'current-word function in rebgui-edit.r | |
Means I have to click twice sometimes into a field, but at least it doesn't crash on me anymore. | |
Graham 6-Feb-2007 [5228x2] | make object! [ code: 303 type: 'script id: 'expect-arg arg1: 'max arg2: 'value1 arg3: [number! pair! char! money! date! time! tuple! series!] near: [view*/caret: offset-to-caret parent-face min max] where: 'action ] |
Another intermittent area problem .. | |
Graham 9-Feb-2007 [5230] | Ashley, I'm allowing users to create their templates by loading in their own rebgui display code ( I don't have a fancy layout editor like you do!). This works, but I can't tab between the widgets though. Is there some way I can get the focus system to work on user templates? |
Ashley 9-Feb-2007 [5231] | Should work, how are you loading and "executing" the templates? Do you have a small pseudo-code example? |
Graham 9-Feb-2007 [5232] | template: copy somearea/text template: compose/deep bind template 'wide display "title" compose/deep [ (template) ] |
btiffin 9-Feb-2007 [5233x2] | Sorry for the interruption. Is there a way to link fields in RebGUI? I've got an app for volunteer fire departments that needs quite a few tabs. I want certain fields replicated across multiple screens. Right now it is all manual, with code like set-text i-incharge newname set-text ins-incharge newname etc peppered all over the app when I have common fields across screen. |
s/screen./screens./ | |
Ashley 10-Feb-2007 [5235x2] | Graham, following code works for me: display "A" [ t: area button [display "B" to block! t/text] ] so it's not a problem specific to the focus system. |
Is there a way to link fields Short answer is no, but you can structure your data into objects so multiple widgets refer to the same word or path. | |
Graham 10-Feb-2007 [5237] | Hmm. I see it works in your example, but not my working code :( |
btiffin 10-Feb-2007 [5238] | Ashley; I thought through that, but I'm not sure how that would work. f1: field f2: field How could the f1, f2 widgets refer to the same text? (Text eventually destined for a RebDB database) Again, sorry for the interruption. Love your stuff by the way. Thanks muchly. |
Graham 10-Feb-2007 [5239x5] | btiffin, what I do with common fields is keep them on the same screen, and let the tabs only show the different fields |
Ashely, I'm using custom fields ( basically text, and label fields with different names, but same function as standard text and label fields ). If I use them in your example above, the tabbing fails. So, I guess the tabbing code looks at the widget type before it can shift focus to it ? | |
My next problem is, I want to be able to create a calculation field based upon the contents of my custom fields. | |
For instance, this formula DAS28 = 0.56 * sqrt(tender28) + 0.28 * sqrt(swollen28) + 0.70 * ln(ESR) + 0.014 * GH calculates a disease activity score in arthritis. | |
I looked at the nano-sheets but they use 'do which is not going to be safe. Since this is not a Rebgui issue, I'll move this to the core group. | |
Ashley 10-Feb-2007 [5244] | re Custom widgets and tabbing. You may want to have a look at the following blocks in the edit object: tabbed hilight-on-focus caret-on-focus action-on-enter You can reference these within your init code as follows: insert tail ctx-rebgui/edit/tabbed 'my-widget |
Graham 10-Feb-2007 [5245] | cool |
Ashley 10-Feb-2007 [5246] | btiffin, feel free to interrupt, that's what this group is for. ;) A simple example of sharing the same word is: v: "Hello World!" display "Test" [ f1: field v f2: field v ] but once the display is substantiated then f1/text and f2/text contain their own copies of v. Tying them back is a manual process. If you are copying values between a database and RebGUI "forms" then you may want to take a look at the get-input and put-input functions, they were added to make forms management easier (it saves you from having to assign widgets to words). |
Graham 10-Feb-2007 [5247x2] | This is pretty cool now, I have it working so that a user can assign a calculation to a templated field ... |
Now to work out this tabbing issue. | |
Ladislav 13-Feb-2007 [5249] | this DISTANCE? version looks twice as fast as the one currently distributed: distance?: make function! [ "Returns the distance between two points." p1 [pair!] "First point" p2 [pair!] "Second point" ][ p1: p1 - p2 p1: p1 * p1 square-root p1/x + p1/y ] |
Maxim 13-Feb-2007 [5250] | thanks ladislav, I'm JUST working on this stuff for liquidator... man you fell in just at an appropriate time :-) |
Ashley 13-Feb-2007 [5251] | Thanks, adding to next build. |
Ashley 14-Feb-2007 [5252] | build#51 committed to SVN. Adds a persistent global UI settings system with a new request-ui requestor. UI settings are saved in %ui.dat. Also modified spinner (replaced two buttons with single left/right click button) and slider (allow arrow grouping to be set globally). Next build will be a bug fix build (I've hit similar problems to Graham with area and drop-list). If anyone wants to create some %ui.dat files for WinXP, OSX and Linux (even if the resemblance is only passing), feel free to drop me a copy and I'll include them in the next build. |
Graham 14-Feb-2007 [5253] | Has the problem with modal requestors raised in Dec been sussed yet? |
Pekr 14-Feb-2007 [5254] | I vote for listbox key navigation to not scroll under the horizont :-) |
Ashley 14-Feb-2007 [5255] | Yes to the modal requestors problem(s), and I think they are related to some of the drop-list issues. Listbox key navigation is far, far down my list of priorities. |
Robert 14-Feb-2007 [5256x2] | Ashley, I again would like to send you our enhanced version. We have extended the RESIZING to include proportional resizing, enhanced the widgets, made a new one graph-widget (for graph layouting) and so on. |
Ok? | |
Ashley 14-Feb-2007 [5258x2] | Sure, but manually merging enhancements is a real pain compared to SVN development ... hint, hint. ;) |
build#52 committed to SVN. Includes following fixes: - Info option now prevents tabbing - Added action-on-tab block to behaviors (works in same manner as action-on-enter) - Fixed modal requestor problem | |
Ashley 15-Feb-2007 [5260] | Graham, have you managed to pin done the field and area problems you were having? I haven't been able to reproduce either of them. |
Graham 15-Feb-2007 [5261] | If I script switching panels and setting focus to an area field ... it often crashes. |
older newer | first last |