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
21-Mar-2008
[7511]
I'm not 100% sure what Graham requests about the sliders, but it 
might be the same as a feature I wanted. I wrote alot of text to 
an area with a scroller, and I want to be able to remove text at 
the top and insert at the bottom - while keeping the horizontal scroller 
at the bottom (unless the user wants to scroll up ofcourse, in case 
the scroller should stay exactly where it is). In other words similar 
to a DOS prompt with some scrollback buffer.


Can't remeber exactly what problems I had with it, but it didn't 
work as intended :) Now I'm using a chat widget instead and it works 
pretty good. Not a bad feature to have though.
Graham
21-Mar-2008
[7512]
Johan, if you have a large amount of text, and the slider is set 
to the bottom, and then you set-text with a small amount of text, 
it doesn't show up until you physically scroll the slider up to the 
top.
Graham
22-Mar-2008
[7513]
Any suggestions on how to "lock" an application while it is running? 
 Unview all the windows and bring up a requester?  Then restore all 
the active windows?
Ashley
23-Mar-2008
[7514]
You need a requestor with the no-title option so they can't OS close 
the dialog .... that or a /close refinement to trap and ignore it. 
Have a look at the source for both request-progress and request-password.
JohanAR
23-Mar-2008
[7515]
Is it possible to display a modal window, without using dialog? My 
program gets screwed up if display calls do-events and disables tooltips, 
but I don't want users mucking about with the main window while another 
window is open.


And speaking of which.. Is disabled tooltips in dialogs a new feature? 
I suspect it's the reason my tooltips stopped working a while ago 
:\
Graham
23-Mar-2008
[7516x2]
A modal window might interfere with the async events happening in 
the background.
Yes, a modal requestor halts all timer events that are occuring.
JohanAR
23-Mar-2008
[7518x3]
Hmm, but is there an easy way to disable/enable all interactive widgets 
in a particular window?
I'm also trying to find a way to hide/show a single window. Would 
work in my app too, but I haven't found out how yet though :)
More specifically it's the main window I'm trying to hide...
Graham
23-Mar-2008
[7521x2]
what I am doing is to unview the main window, and then when the user 
enters the correct password, just view/new main-window
Maybe what i need to do is keep a record of all the active windows, 
unview/all and later on view them all again.
So, need a view/all windows [block!]
JohanAR
23-Mar-2008
[7523x2]
Where is the initial position calculated for a widget with #XY span 
set?
I'm changing the pane of a window by calling layout manually, but 
all widgets with span seem to be placed regarding to the old layout's 
size :(
Ashley
23-Mar-2008
[7525]
Note that layout and ctx-rebgui/layout are different funcs ;)
JohanAR
23-Mar-2008
[7526]
indeed :) It's the latter I'm calling, to get the neat rebgui look. 
just can't figure out the internal workings of #XY though
yeksoon
25-Mar-2008
[7527]
is there 'grid' support in RebGUI?

Could not find it in the docs. I may have miss it.
Pekr
25-Mar-2008
[7528]
there is a widget, which is quite cool by its functionality, but 
it was never adapted to one architecture change in RebGUI
Sunanda
25-Mar-2008
[7529]
Support request on Mailing List:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-message.r?m=rmlRHXC
Graham
25-Mar-2008
[7530]
There is the spreadsheet thingy which is a grid.
yeksoon
25-Mar-2008
[7531]
thanks. will look into it.
JohanAR
5-Apr-2008
[7532x2]
Maybe it would be more consistant if rebgui loaded ui.dat and request-ui 
saved the file in the same dir? request-ui saves in current script 
dir, while the main script loads from it's own dir?
I also suggest "theme" is extended with one or two colors. For example 
to use on panels. It looks weird with buttons if I use either theme-light 
or theme-dark on a grouping panel, and I don't want to use custom 
colors that won't appear in request-ui
Graham
11-May-2008
[7534]
I've got a tab-panel next to a panel - where the panel is on the 
right.  I wish to hide the panel ( set the width to zero, and hide 
it ), and shrink the whole window by the space previously occupied 
by the panel.   But if I do this, the tab panel also resizes.  Is 
there a way I disable resizing temporarily?
Ashley
11-May-2008
[7535]
Just set the tab-panel's span attribute to none! and reset after 
the resize ... untested, but it should work.
Graham
11-May-2008
[7536x3]
Thanks.
Didn't seem to work.
that is, if I wait until the window has resized and reset the span 
attribute after this .. then the tabs along the top did not resize, 
but the panel still does.
Graham
15-May-2008
[7539x2]
I think if I want panes that slide into view displacing other widgets, 
and panes that slide out extending the window size, I'm going to 
need a more generalised way to kill resizing.
How would one toggle the arrow widget? I tried in the action block 

face/effect/rotate: 180
show face

which didn't do much :(
Graham
18-May-2008
[7541x2]
Often you see this >> widget which is oriented 90 to the clock, and 
it inverts .. used for hiding and showing more information.
Is it this » character?
BrianH
19-May-2008
[7543]
Some people do it that way, but many just use a picture fot the button.
Graham
22-May-2008
[7544]
Ashley, the tree widget is not indexed here http://trac.geekisp.com/rebgui/wiki/WidgetList
though it appears in the source code list
Graham
25-May-2008
[7545x2]
I'm trying to create a widget that resembles the one from the MS 
demo

http://screencast.com/t/unHPOZ0oP


I've got a bunch of panels inside a scroll-panel.  When I click on 
a panel, I recreate the whole layout using replace-tab which is okay 
if I haven't scrolled down the panel, and add the area below the 
panel I clicked on.


If I have scrolled down, I capture the scroll-panel/panel/1/offset 
and then try and set it back again ... but when I show the scroll-panel 
even though the offset is eg. 0x-188, I stil need to scroll down 
to see it.

Ideas on how to show the scroll panel at the current pane offset?
I suspect the slow opening and closing of the text in the MS demo 
is an animation effect
Graham
26-May-2008
[7547]
I see there is a new on-resize handler which is undocumented.  Info 
on how it is used?
Graham
30-May-2008
[7548]
An odd error .. if I do this on a table ... face/remove-row I get 
an error complaining of an invalid path.  I have to use the table 
name
Normand
4-Jun-2008
[7549]
Hi, folks.  I am getting back to an application I developped with 
RebGui in 2006.  I did download the last one from SVN, but the app 
no longer works under the current version of RebGui.  I get a lot 
of error messages about show-text, even the most simple ones, like 
--> show-text Fmsg "Warning --  Unable to read Products, Phone&Meet 
and Notes.  No file to read." <--.  Looking at docs, I still see 
the show-text function; there is still some appearances in some docs, 
but there are not much.  Maybe it is deprecated now?  I see set-text, 
but it talks about attributes of text, not its content.  So not shure 
it is the one to use now.  I would need to show the app soon, but 
hesitate to retarget the code, seing the frequency of the error message 
** Script Error: show-text has no value.  Inexistant function, bad 
assignement (for unknown reasons), or something else.  For me, hard 
to know now. From the 2006 epoch, is there a lot of change.  The 
app still get drawn a bit, though.  Thanks for an answer that would 
me out of problem.
Graham
4-Jun-2008
[7550]
show-text: :set-text
Normand
4-Jun-2008
[7551]
Thanks ; I converted show-text to set-text; show-values to set-values; 
show-title to set-title; show-focus to set-focus; the demo works 
back.
Graham
14-Jun-2008
[7552]
I see a number of on handlers.  Is there a way to have a on-drag 
handler as well for dragging objects?
Graham
15-Jun-2008
[7553x3]
Using Henrik's images
wait-images: copy []
  bg: make image! [20x20]
  forall bg [change bg 0.0.0.255]
  colors: copy []
  for i 8 1 -1 [
    dr: copy [pen none fill-pen black translate 15x8]
    for j 0 7 1 [append colors 0.0.0.255 - (j * 35)]
    for j 0 7 1 [
      append dr compose/deep [
        fill-pen (pick colors (j + i) // 8)
        rotate 45
        translate 3x3
        circle 2x2
      ]
    ]
    append wait-images draw copy bg dr
  ]
anim wait-images rate 10
Henrik
15-Jun-2008
[7556]
cool
Graham
15-Jun-2008
[7557]
yep, cool :)
Pekr
15-Jun-2008
[7558]
Hello. One of my friends, not even a probrammer, jut Perl user, was 
asked to prepare solution for their production line. They will need 
to cover more than 100 Terminals with touch screens. He is a friend 
of Bobik and mine, so Perl, Python, and REBOL alternatives were possible. 
I have the pleasure to aanoucne, that REBOL + RebGUI was choosen.


While app is rather primitive - few fields on the left, numeric + 
few alphabetic keys on the right, connecting to mySQL, the environment 
is also very restrictive - Terminals (don't remember the model) are 
older ones, 24MB of RAM, no hardisk, P300 performance. The solution 
boots Linux from network and RebGUI app is loaded ... only 1MB or 
RAM is left, so the solution is so so ...


I would like to ask, if RAM consumption could be improved with encapping 
app with rebface for e.g.?
Henrik
15-Jun-2008
[7559]
probably a little bit, since you can select what to include. I suppose 
VID can be removed if RebGUI is going to be the GUI for the application.
Ashley
16-Jun-2008
[7560]
Graham, very clever ... that's almost worth a widget in its own right.