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

World: r3wp

[!RebGUI] A lightweight alternative to VID

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.)
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.