r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!RebGUI] A lightweight alternative to VID

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.)
Ashley
16-Nov-2007
[6957]
Robert, what build# did you fork on? From memory Cyphre had to make 
a lot of grid-specific changes to rebgui-edit.r
Robert
17-Nov-2007
[6958x4]
Petr, yes we used this version as base.
Ashley, I must say I don't remember. I will pack all files together 
and send them over to you. Ok?


Overall our RebGUI branch is very stable now. I'm using it in a quite 
complex application (1 MB of source code) and it's really nice.
Ashley, just log into xpeers if possible and you get the latest version 
synced. See: projects/reggui and _todo.txt for all our changes / 
bug fixes.
If not let me know and I mail it to you.
amacleod
17-Nov-2007
[6962]
Robert, I've been playing with grid a bit and I really like it. If 
it is possible I would not mind checking out your version...
Ashley
17-Nov-2007
[6963x2]
Email it to me as zip. Thanks.
Uploaded build#102 with 'bistate option for check and check-group. 
Option disables right-click state selection.
btiffin
17-Nov-2007
[6965]
Ashley;  Whoa...another out of the blue present.  Thank you sir.
Ashley
17-Nov-2007
[6966x2]
My pleasure. And now one for Graham ...
Uploaded build#103 with new request-value function.

USAGE:

    REQUEST-VALUE prompt /title text /default value /type datatype

DESCRIPTION:
     Requests a value.
     REQUEST-VALUE is a function value.

ARGUMENTS:
     prompt -- Prompt text (Type: string)

REFINEMENTS:
     /title
         text -- Title text (Type: string)
     /default
         value -- Default value (Type: any-type)
     /type
         datatype -- Return type (Type: datatype)
btiffin
17-Nov-2007
[6968]
Whoa! again.  Cool.   Just tested 102;
Just tested 103;  Nice!
Graham
17-Nov-2007
[6969]
:)
DanielSz
18-Nov-2007
[6970]
Ashley, this is to express my thanks for rebgui. It is wonderful, 
and a *huge* relief from VID. I spent the week developing a GUI for 
a pet project of mine. Great documentation. Great demo. Great syntax. 
Pure enjoyment!!!
Pekr
18-Nov-2007
[6971]
Robert - any other widgets with your branch of RebCode? E.g. tree-view?
Robert
19-Nov-2007
[6972]
Yes, we have a tree-view as well.