World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Pekr 26-Aug-2009 [8466x2] | hmm, after RebDOC restart, hilighting works, but resizing still behaves strangely ... |
I second Bobik's request - when I hilite text by mouse, I expect the area to autoscroll, to allow me to select more of text, not just the visible part ... | |
Ashley 26-Aug-2009 [8468x3] | Autoscroll and request-edit issues noted. |
Build 213 - layout moved to global context - renamed request-edit to editor - renamed set-enable to enable - renamed set-disable to disable - added in-widget function - enable/disable now accept block of faces - fixed arrow/list bug - changed popup auto-hide from away to click - fixed menu - added toggle widget - changed hard-coded green/red to use colors/true & false - updated tour.r and RebDOC.r | |
Example usage of new in-widget func and toggle widget: display "Sample" [ field field button [set-text second in-widget face/parent-face 'field "Hello"] toggle green data ["A" "B"] [print face/data] toggle data ["AA" "BB"] options [on] [print face/data] ] | |
Pekr 26-Aug-2009 [8471x7] | Toggle effect a bit mild.If there would not be 2 buttons on screen, I would not easily mean, if it represent pushed status, or let's-pus-me status, even if on/off text is available .... |
- menu and lists - much better behaviour with auto-hide on click. One small note to menu - if you have one branch opened and you move to the sibling, it should not require click to have the first one closed, and open the one under the mouse pointer. But current behaviour is accpetable enough, it is just if we would like to have OS exact behaviour ... | |
- editor (and not only editor) - I can see that when hilighting, REBOL is not doing it all that correctly. Try to open editor, type in few lines (or just paste some text in there), and then try to mouse hilite. It works, but stops to hilite, when you move your mouse out of current window region. It should work even outside, at least it is what OS does. Open Notepad to compare ... it should not be difficult to do, and would improve usability ... | |
- what happened to the tree-view? I can see I can't collapse it by double-clicking parent node in the tour.r, nor can I see arrows in there. Is it just not configured, or? | |
Ashle - changed your code above to allow disable. Try pressing first button twice. It crashes RebGUI: do %rebgui.r display "Sample" [ field f: field button [set-text second in-widget face/parent-face 'field "Hello" disable f] toggle green data ["A" "B"] [print face/data] toggle data ["AA" "BB"] options [on] [print face/data] ] do-events | |
error is near: "set-text second in-widget face/parent-face 'field" - maybe disabled face is somehow shifted from parent-face, so that it can't be found in subsequent call? | |
btw - error windows could have some "copy" button, or allow text copying by mouse-hilighting, or it is difficult to get the error message - you have to write it down somewhere else ... | |
Graham 26-Aug-2009 [8478x3] | the hilight issue is one I noted on the tracker, and exists for fields as well |
How do you have a widget disabled by default? options [info] doesn't work now on area. I tried do [ disable f ] but got an error. | |
Does splash still work? I get an error when I supply a spec block Also, is there any alternatives to the vid 'flash ? | |
Ashley 27-Aug-2009 [8481] | Disable: field disable Splash: splash [text: "Hello" font: ctx-rebgui/widgets/default-font] ... unview Flash: Adding to next build ... |
Maarten 28-Aug-2009 [8482] | Ashley, how do I set focus to a button when I hit enter in a field? |
Graham 28-Aug-2009 [8483] | It's always been difficult to control the focus from another widge because each widget has its own focus handlng which could switch it back to the widget you're using.. |
Ashley 28-Aug-2009 [8484] | It's a lot easier now: display "Sample" [ field [set-focus b] field field b: button "Go" ] |
Maarten 28-Aug-2009 [8485x2] | Thanks (I use build 211, pretty awesome stuff) |
While we're at it: can I set the width of a drop down box when a string is a bit longer? | |
Ashley 28-Aug-2009 [8487] | Sure: drop-list 50 (remembering that 50 is cells not pixels ... http://www.dobeash.com/RebGUI/user-guide.html#section-3.3 ) |
Maarten 28-Aug-2009 [8488] | Hm, I think I tried that. I'll retry and post a bug here if it doesn't work |
Ashley 28-Aug-2009 [8489] | display "Sample" [ drop-list data ["Short text"] drop-list 50 data ["Some longer text"] ] |
Graham 4-Sep-2009 [8490x2] | 'flash ?? |
Any reason why you dropped the 'splash demo from tour.r ? | |
marek 5-Sep-2009 [8492x2] | Just tried to |
Just tried to create custom widget (213 and 212 distibutions). Simply running %create-distribution.r crashes because %btn.r and %chat.r widget files are missing. They must be included in %rebgui.r file as it comes. I will try to recreate missing widgets from %rebgui.r to solve this problem for now. And hopefully will be able to add my custom widget after that. | |
Graham 5-Sep-2009 [8494] | edit the widget list? |
marek 5-Sep-2009 [8495x2] | Before one touches widget list, simply - do %create-distribution.r - fails because of missing 2 files, as I stated before. I hope, I'm not doing anything wrong getting this result. I should eventually overcome this problem temporarily, until it's fixed in next release. |
Just confirmed that btn and chat widgets are included in supplied %rebgui.r file but corresponding widgets files are missing in widgets directory. I'm sure Ashley will fix it one day. My custom widgets work ok now with 213. | |
Graham 5-Sep-2009 [8497x2] | and you checked against the SVN? |
Hmm.. I have mine. | |
marek 5-Sep-2009 [8499] | Do you mean you have the same problem? |
Graham 5-Sep-2009 [8500] | Yes, same issue. |
marek 5-Sep-2009 [8501] | Fix is very simple, anyway. |
Graham 5-Sep-2009 [8502] | Yes |
marek 5-Sep-2009 [8503x3] | Out now, thanks for little help. See ya. |
I found another bug in version 213. Yesterday I managed run %create distribution.r after recreating %btn.r and %chat.r widgets first. Today I found out that some requestors don't work:- >> alert "test" ** Script Error: image has no value ** Where: layout ** Near: image images/alert text 60 "test" >> It works from original %rebgui.r file. It seems that images exist in re-created one, but they cannot be found. Unfortunatelly, I've got no idea how to fix it | |
My last problem is probably my fault. I excluded icon widget from my custom %rebgui.r. | |
Graham 6-Sep-2009 [8506] | Is there any easy way to determine which word has been hilighted in a text area? |
Ashley 7-Sep-2009 [8507x3] | Build 214 - updated toggle (2x2 edge on select) - added missing btn widget - added missing chat widget - added flash requestor - added request-about - renamed request-password to request-pass Flash is used as follows: ... flash "message" ... hide-popup wait [] ... request-about is used as follows: request-about/url "MyProj" 0.0.1 "Copyright (c) MyCo" "www.site.com" ; or a url! Note the logo is located in ctx-rebgui/images/logo and defaults to the info icon ... replace with your own logo image as follows: ctx-rebgui/images/logo: load %my-logo.png |
easy way to determine which word has been hilighted in a text area ... display "Sample" [ a: area button [ all [ ctx-rebgui/edit/copy-selected-text print read clipboard:// ] ] button [ all [ ctx-rebgui/edit/hilight? set [start end] ctx-rebgui/edit/hilight-range? print copy/part start end ] ] ] | |
First method is easier but trashes the clipboard ... | |
Graham 7-Sep-2009 [8510x2] | Thanks. I was doing complicated things on the area/caret |
I must have an old version of rebgui .. I aways get none on ctx-rebgui/edit/hilight? and copy-selected-text is not working for me either. | |
marek 7-Sep-2009 [8512x2] | There are at least 3 problems needing fixing in 214 (and 213) version. When using drop-list or edit-list if one will hit <TAB> button when list line is hilighted stack overflow eventuates. One, of course, doesn't need to do that, but it may happen. Slider button, as presented in RebDOC, bombes out for simple reason. Formula used is [slider] but minimum required seems to be [slider []] - compulsory action needed. In RebDOC editor requestor hitting "Open" or "Save" button triggers feature-na script error. |
Even more serious problem discovered. Maybe only on Linux Mint. Pressing <Esc> button simply causes your program to go away. Checked with tour.r too. | |
Graham 7-Sep-2009 [8514x2] | Esc by default closes the currenlty open window. However, it should not close the main window. |
Hmm.. well, that's how I have it setup. | |
older newer | first last |