World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Ashley 5-Nov-2007 [6907] | I remember looking at this and concluding that ctx-edit.r would have to be changed rather dramatically to allow this ... it has to do with the order in which set-focus and show are called. Several minor hacks I experimented with (mainly in set-focus) just didn't cut it. I put it in the "too hard" basket but may revisit this now that the long-running (for me at least) pick-list bug has been fixed; and I also have a few users asking about this as well. |
btiffin 5-Nov-2007 [6908] | I'd 'here here' on that one. I've been mucking with a RebGUI based editor and getting a Find/Replace dialog working has been an excercise in hackery that I'm not a huge fan of. (Much chasing of tail and subverting of code that I have too much respect for to allow the hackery.) |
JohanAR 6-Nov-2007 [6909] | Any easy and good looking way to get a return key press (in a text field) to trigger an ok-button? |
btiffin 6-Nov-2007 [6910] | Johan; Try display "test" [f1: field [b1/action/on-click b1 none] b1: button "Ok" [print "The action"]] You may need to check with on-key if you want to restrict it to just "Enter", I'm not real sure what activities cause the action for fields to fire. (Could be focus/unfocus...have to experiment) and note this will not "click" the button, just evaluate it's on-click action code. This advice is just in-the-meanwhile. Ashley will no doubt have thee easy and good looking solution. :) |
Graham 6-Nov-2007 [6911] | Just wondering if it's better to allow one to copy text from an alert .. often they're error messages, and users like to copy them and email them. |
Micha 9-Nov-2007 [6912x2] | how to change this code ? display "test" [ area button "yes" button "no"] . button "yes" have to be under button "on" |
so as on this image http://jacek.x10hosting.com/test.jpg | |
Graham 9-Nov-2007 [6914x2] | you culd try using a panel |
area panel -1x-1 none data [ button "yes" return button "no" ] | |
Micha 9-Nov-2007 [6916] | thanks |
Micha 10-Nov-2007 [6917x2] | how to show image ? |
dispray [ panel: panel white 80x12 data [ ] button "img1" on-click [ panel/image: load %img1.png] button "img2" on-click [ panel/image: load %img2.png] ] | |
Robert 10-Nov-2007 [6919x4] | Micha, a "show panel" is missing after setting /image |
And, you shouldn't use the key-word PANEL as variable name. | |
And, I don't think that PANEL has an /IMAGE ;-) | |
my-pic: image ... my-pic/image: load %img1.png show my-pic | |
JohanAR 13-Nov-2007 [6923] | rebgui ver 93 seems to crash when a drop-list is double clicked |
Graham 13-Nov-2007 [6924x3] | reported in Sept. Ashley suggested I think adding the dbl-action facet to the choose function in ctx-widgets.r will 'fix' the problem, as in: choose: make function! [ ... ][ ... popup: make face-iterator [ ... alt-action: none dbl-action: none ] ... ] |
as he never saw this, perhaps it's not in SVN yet | |
He meant rebgui-widgets.r | |
DanielSz 13-Nov-2007 [6927x2] | My rebgui UI gets unresponsive while some code is running. Since rebol doesn't have threads, I wonder what solution you'd recommend. Does the trick of assigning a rate of 0 to a GUI element work in RebGUI? Or would you perhaps separate the offending code and use "launch" to run a separate rebol process? Or maybe you know some other magic that I don't? |
The code that blocks the UI is a ftp file upload, which to the best of my knowledge is done synchronously, hence the blocking. | |
Graham 13-Nov-2007 [6929x2] | It happens in VID as well |
You need an async version of ftp, or spawn another process to do this. | |
DanielSz 13-Nov-2007 [6931x4] | OK, that's what I was suspecting. Thanks. |
For the moment I'm using a progress bar incrementing with each file upload. | |
At least the user has something to look at :) | |
Correct me if I'm wrong, but there doesn't seem to be an async ftp handler available despite the existing async network ports implemenation. | |
Ashley 13-Nov-2007 [6935x2] | ver 93 seems to crash when a drop-list is double clicked ... fixed in later builds. |
RebGUI build#101 released. Release notes here: http://www.dobeash.com/RebGUI/release.html#section-10 | |
Graham 13-Nov-2007 [6937x3] | Correct,there is no async ftp implementation |
Ashley is there a simple input requestor? | |
I know we have a request-password ... | |
btiffin 13-Nov-2007 [6940] | I always use display/dialog for requestors. Works well; not a whole bunch of code to write. If you do %rebgui.r (and don't encap an app) you still have access to view's request-text. |
Ashley 13-Nov-2007 [6941] | is there a simple input requestor? ... no, and define "simple" ;) |
btiffin 13-Nov-2007 [6942] | Ashley; How hard would it be to add a 'bistate or 'no-none option to check? I've had to explain the right-click to get the red X a few times (and the whole "but it's ok...empty tests the same as the red X in the application I wrote for you" discussion). It would be nice to have none/false as one state, true as the other, never an empty check box and simple left-click to toggle. Keyword nice. Not critical. |
Graham 14-Nov-2007 [6943x6] | tristate is not necessary in my experience so far |
request-value prompt which takes possible refinements of /decimal or /integer or /whatever | |
whereby the prompt is the string that appears next to the field | |
that simple | |
Is there anything that can be done easily about implementing Cyphre's grid into latest Rebgui? | |
Pekr commissioned it for Rebgui .. so it shouldn't be too far off should it? | |
amacleod 14-Nov-2007 [6949] | I did not know that...That's great news. Will grid be expanded further or just an implimentation of what exists? |
Graham 14-Nov-2007 [6950x2] | it was a working implementation, but then Ashley changed RebGUI and broke it. At that point the funding for Cyphre had already been completed as he had delivered a working grid. Not sure if anyone is able to take it up again and get it working with the latest RebGUI. |
that's my recollection anyway. | |
Pekr 15-Nov-2007 [6952x2] | well, it came at the time when Ashley was doing some changes to API. And it was not adapted ...... |
ah, you just sait it :-) | |
Henrik 15-Nov-2007 [6954] | wish I had time to port LIST-VIEW to RebGUI. would seem useful there. |
Robert 16-Nov-2007 [6955] | I think I need to provide my own "fork" of RebGUI again to Ashley. We have worked on the grid and extended it. Works pretty well. |
Pekr 16-Nov-2007 [6956] | Robert - is it the same grid Cyphre did for me? That would be really good, because imo it was well and sufficiently abstracted (e.g. visible, non-visible columns, without the need to resort data block, etc.) |
older newer | first last |