World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Robert 5-Mar-2007 [5635x2] | Simplest way is, log into XPEER and take a look at D:\rebol\link\xpeers\users\cyphre\tooltip-test |
To use our latest RebGUI version, just create a distirbution from projects/rebgui and use this rebgui.r file instead of the one included in the test directory. | |
Ashley 5-Mar-2007 [5637] | Could you please run %tour.r against your version of rebgui.r and report the CPU usage? I suspect the problem relates to the number and depth of widgets within a display. %tour.r is an extremely complex single display app in that regards. |
btiffin 5-Mar-2007 [5638] | Ashley; (If you are typing at me...) CPU usage is negligible; loading, interacting, exiting. All widgets snappy. |
Graham 5-Mar-2007 [5639x2] | He was talking to Robert. |
However, if you are able, can you check on the cpu usage while running tour.r ? | |
Graham 6-Mar-2007 [5641] | Furthermore, don't make me click on the little tiny arrow to the right of the edit box before you pop up the combo: let me click anywhere on the combo box. This expands the click target about tenfold and makes it that much easier to acquire the target with the mouse pointer. http://www.joelonsoftware.com/uibook/fog0000000249.html Is this a reasonable thing to try ? |
Rebolek 6-Mar-2007 [5642] | I think yes. I don't like combo boxes where I have to click on tiny arrow or radio buttons where I cannot click on text (in VID radio vs radio-line). I don't want to perfect my aiming, I just want to select an option. |
Graham 6-Mar-2007 [5643] | Anyone have an example of how the drop-tree works? This brings up a drop tree but can't figure out how it is supposed to work yet display "drop tree test" [ drop-tree data [ "root" [ "item1" [ 1 2 3 ] "item2" [ 4 5 6 ] "item3" [ 7 8 9 ] ]] [ pri nt face/text ] box 40x60 ] do-events |
Ashley 7-Mar-2007 [5644] | What's the "standard" keystoke(s) to make a drop-list appear? Down arrow? |
Graham 7-Mar-2007 [5645] | think so. |
Brock 7-Mar-2007 [5646] | on a Windows OS I thought it was the Alt-Down Arrow |
Ashley 7-Mar-2007 [5647] | Time to clean up radio-group and drop-list. With radio-group I'm contemplating getting rid of all the ID code and making it default to: data [1 "Opt 1" "Opt 2"] if no option is selected. You'll still be able to start with no option selected (either by specifying none or 0), it's just that having no option selected by default is confusing to new users. For drop-list, I want to fix some of the remaining bugs and add the two changes discussed above; clicking anywhere in the area to activate the drop list and pressing DnAr to activate it by keystroke. The first change could really confuse folks used to changing focus by mouse click so I'm thinking of making it an option, say "options [click]". Comments? |
Graham 7-Mar-2007 [5648x2] | I have hundreds of templates in use that rely on the current behaviour ... for radio-group |
If you do change it I will just have to keep the old version | |
Sunanda 8-Mar-2007 [5650] | RebGUI expert needed on REBOLTalk: http://www.reboltalk.com/forum/index.php/topic,739.0.html |
Ashley 8-Mar-2007 [5651] | Done. |
Robert 9-Mar-2007 [5652x5] | radio-group: Ok, we are going to give our version a new name. As I still think, our approach is much more advanced WRT code maintenance and flexiblity. So, we have the choice. |
I keep investing into RebGUI and it will continue, but at the moment, I think we drift to far away. IMO it doesn't make sense to have two forks. I really want to backport/merge things but for this I need some help. | |
Gregg: drop-tree works like a menu system. display "drop tree test" [ drop-tree data [ "root" [ "item1" [ item-1-action-code] "item2" [ item-2-action-code] "item3" [ ] ][root-action-code] ] ] That's it. | |
Further: http://trac.geekisp.com/rebgui/wiki/WidgetList#drop-tree | |
Sorry, you need to use the ACTION keyword before an action-block. | |
Ashley 9-Mar-2007 [5657x3] | Robert, did you get a chance to do the tool-tip test with tour.r against your version of rebgui.r? If so, what was the CPU reading and what value did you have for tool-tip-delay? As I mentioned before, I think tool-tips are dying on 'find-face when the display is sufficiently "complex". |
I think we drift to far away ... depends on the extent to which you have changed/enhanced core RebGUI functionality (e.g. rebgui-*.r scripts). If most of your changes are isolated to new/enhanced widgets then there is really no drift; you can plug your widgets into the standard RebGUI engine and it will all work. If you want to keep your changes in sync then I suggest 2 simple practices: 1) If you need a version of a standard widget (e.g. radio-group) to do things that are app or design philosophy specific then create your own widget instance and suffix it with an identifier, say XP for XPeers in your case (e.g. radio-groupXP). Suffixes are preferred over prefixes as the alphabetical sort order of the widgets determines their load order which may affect dependencies ... see text.r and label.r for examples of this. 2) Only keep and maintain a divergent Widgets directory ensuring that your widgets continue to work with the standard RebGUI engine (i.e. rebgui-*.r scripts). If you need the base engine enhanced (e.g. to support tool-tips or proportional resizing) then let's isolate those changes and get them into the base distribution. You should be able to create and maintain your own widgets without worrying about divergence as most of the design effort should be going into the functionality of the widget(s) themselves. If your widget needs specific changes/enhancements to the base engine then we need to sync those changes at the point you need them. Trying to retrofit these after the event, and after multiple divergent engine changes, is going to cause problems as you've discovered. From my end, the 3 major changes you should probably try and work back into your fork are: 1) UI settings: mostly confined to rebgui-ctx.r 2) rebind func added to all widgets prior to init and rebgui-widgets.r enhanced 3) tab-panel rewritten to operate significantly more efficiently (tab-panel.r and associated rebgui-edit.r changes) | |
A word on my design philosophy, which might help determine whether you can live with the standard widgets or not. I like widgets that are small, efficient and satisfy the majority usage case. I want to be able to look at a widget I or someone-else wrote and "grok" it quickly. When I rewrite a widget I'd like to make it simpler and more efficient. Let's look at tab-panel as a case in point. It now does everything I'd reasonably expect it to do: 1) Multiple tabs 2) Auto label size determination 3) Automatic widget size and resize 4) Supports Tab actions 5) Options to start with another tab selected and fire the initial action The code is simple, clean, efficient and weighs in at just over a hundred lines. I can look at it and "grok" it in a couple of seconds. But there are many additional things it could do: 1) Ability to add/remove tabs at runtime 2) Ability to rename/reorder tabs 3) Handle case where tabs > available display width But you get diminishing returns when you implement functionality to support these operations as they don't constitute the major usage case, and you can code most of them at the app layer by treating the tab-panel data block as a block of data that you can manipulate and display (via an unview/redisplay sequence). But what about the third point, where the tabs don't fit? Isn't that a problem? No, that's an app design issue. It's no different from: display "Test" [ text 10 "Some long text that doesn't fit" radio-group 20x5 data ["Option 1" "Option 2"] drop-list 15 data ["Some long text that doesn't fit"] ] You have to allocate sufficient space for your widgets to render correctly. If you need to render volumes of data that won't fit then use area or a list type widget (e.g. text-list, drop-list, table, grid, etc). My aim is to progressively review and rewrite each widget to conform to the above design philosophy, starting with the simpler widgets and leaving the more complex ones till last. I'm about half way through at present. | |
Pekr 10-Mar-2007 [5660x6] | And that is something I am not sure I agree with. For me, the widgets should be "trouble-free". If tabs don't fit, there should be arrows, or drop-down menu, which should allow you to scroll imo .... |
The same goes for menu. When I was testing for Cyphre (his stylepack), I pushed Cyphre to solve menu resolving screen position, to enable it to always fit the screen = menu displayed always to be visible. | |
Simplicity is good, but what is your point here actually? | |
I don't care if particular style has hundred or thousand of lines, if it runs fast, is trouble-free, I don't really care for how many lines of code it contains. | |
And I can guarantee you, that once the style is "over-simplified", it can just piss-off ppl. Just look at list-box, allowing you to scroll-under the border. The style is small, yet I I am not able to fix it myself, and I don't want to care - I just want to use it. | |
So - that is just my perspective, perspective of user :-) | |
Robert 10-Mar-2007 [5666x6] | Tour: Sorry guys for being late with this test. After making some minor modifications to get tour.r to run with our version and adding a TOOLTIP to the password page "Some Text" field I can say that I don't see any CPU usage. |
It's not noticeable at all. | |
The value for TOOL-TIP-DELAY I use is 0:0:1 | |
forking: Ok, adding specific version of widgets is OK for me. Even we really should avoid this. But anyway, I seem to be the only one seeing a problem with the standard radio-group thing. We take a look at the three major changes you have mentioned. | |
And my philosophi lies between Ashley and Petr. I'm in more favour to spend time designing simple widgets that have a hughe feature set. Because than, my app development times are reduced radically. Hence, thinking once at the widget level, saves you factors of time on the application level. | |
And, RebGUI has shown to be asolutly perfect in this. It's simple, efficient, and comfortable enough to write big apps. My app's code base is about 400K now, than we add 190K RebGUI, and some other stuff. So overall the pre-processed script is about 1MB in size. | |
Pekr 10-Mar-2007 [5672x2] | Robert - 400K? That is monstrose, in REBOL terms, isn't it? What is reaction of your users to non-OS compatible app? Just curious ... |
forgot to add smiley to "monstrose" :-) | |
Robert 10-Mar-2007 [5674x2] | Well, the app is quite complex. |
I have never been asked about non-OS like GUI (I think that's what you mean). They like the app and it's simple design. | |
Ashley 10-Mar-2007 [5676x2] | Still having problems with tooltips. I've cut & paste your tool-tip code from XPeers and I still get 60%+ CPU use with tour.r. Where can I grab a copy of your rebgui.r that you tested with? |
Also your modified tour.r. Thanks. | |
Graham 2-Apr-2007 [5678] | Is there a suitable widget that can simulate the messages list here? I built one before for Vid based upon DideC's code ... |
btiffin 2-Apr-2007 [5679] | Isn't Ashley making a Chat widget? |
Graham 2-Apr-2007 [5680] | Not that I am aware of. |
Gabriele 2-Apr-2007 [5681] | Petr: the Detective is around 750k once preboled. And I better not tell you how big Qtask is. |
Maxim 2-Apr-2007 [5682x2] | I've got a few scripts that live in the several hundred kbs... in fact GLayout now weights in at 180k (far too much of that being comments and history ;-) |
gabriele: does the 750k count all the sdk libs themselves? | |
Graham 3-Apr-2007 [5684] | Ashely, Gabriele and Romano did a RTF style |
older newer | first last |