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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Volker
8-Jul-2006
[4317]
as in http://polly.rebol.it/test/test/rebgui/../../test/rebgui/edit-area.r
Graham
9-Jul-2006
[4318x4]
** Internal Error: Stack overflow
** Where: into-widget
** Near: unless find [object! block!] type?/word get
** Press enter to quit...

Got this error again on tabbing out of a field :(
display "0" [
	button "Click me" [
		display "1" compose/deep [
			f: field "Type here" [
				display "2" [
					button "Close" [show-text f "hello" show-focus g unview]
				]
			]
			return
			label "I can tab to here but can I type?" g: field ""
		]
	]
]
do-events
click on the button, and then type in the first field, enter,  click 
the button.

you can now tab between the two fields but can not type as the window 
"0" has focus.
Odd ....
Is Rebgui not tracking the windows correctly? Or something?
Volker
9-Jul-2006
[4322]
Could be that after a button-action the focus is removed, so show-focus 
does nothing.
Graham
9-Jul-2006
[4323x2]
Except I do have some type of focus as the tab still works correctly.
Just can't type.  And the window is not highlighted as though it 
does not have focus.
Volker
9-Jul-2006
[4325]
Hmm. how about activating it first?
Graham
9-Jul-2006
[4326]
how?
Volker
9-Jul-2006
[4327x4]
IIRC, basically: win/changes: 'activate show win
but does not help on linux
display "0" [
    button "Click me" [
        display "1" compose/deep [
            f: field "Type here" [
                display "2" [
                    button "Close" [
                        show-text f "hello" 
                        show-focus g unview 
                        win: find-window g 
                        g/changes: 'activate 
                        show win
                    ]
                ]
            ] 
            return 
            label "I can tab to here but can I type?" g: field ""
        ]
    ]
]
win/changes: 'activate;but still nothing
Graham
9-Jul-2006
[4331x3]
better ..
I see that VID doesn't have this problem.
I guess it's rebgui bug?
Volker
9-Jul-2006
[4334]
any documents about rebguis patches? AFAIK it has some to events 
and hotkeys and such.
Graham
9-Jul-2006
[4335]
don't remember ..
Volker
9-Jul-2006
[4336]
that stack-overflow, do you have an example?
Graham
9-Jul-2006
[4337x3]
I can't reproduce it.
But I thought it was due to some lack of focus problem
Which I was exploring focus problems
Volker
9-Jul-2006
[4340x4]
that 'into-widget goes recursively thru the panes.
so either you have a parent pane as child-pane, or it has a bug.
or the error-messsage is misleading.
but that should be reproducible.
Graham
9-Jul-2006
[4344x3]
I'm not setting any panes manually.
Just using rebgui in vanilla fashion
so, I think it's a rebgui bug
Volker
9-Jul-2006
[4347]
i agree. 'show would throw an error otherwise.
Pekr
10-Jul-2006
[4348]
what would you consider the next most important style missing in 
RebGUI? Is that Menu, or Tree-view? Or other? As for me, it might 
be Tree-view, as it allows to display hierarchies ....
Robert
10-Jul-2006
[4349]
I think WRT widgets we are mostly complete. What I see as the next 
big step is to add runtime APIs to the widgets like: changing the 
buttons in a radio-group, selecting a button programmatically.
Pekr
10-Jul-2006
[4350x2]
For those wanting to see first results of rebgui-grid, here's the 
screenshot - http://www.xidys.com/rebgui-grid.jpg
it is already ways more powerfull than rebgui table .... still some 
features missing though ...
Henrik
10-Jul-2006
[4352]
nice looking
Pekr
10-Jul-2006
[4353]
rebgui is not nice looking :-)
Henrik
10-Jul-2006
[4354]
sometimes beauty can be below the surface :-)
Pekr
10-Jul-2006
[4355x2]
Chris' buttons on the left - that is what I call nicely looking :-) 
http://www.xidys.com/btn-comparison.jpg
well, it is nice to hear it from the guy, who is author of most powerfull 
grid I ever seen (well, except my favourite and needed horizontal 
scrolll, which Cyphre's version supports from now on)
Graham
10-Jul-2006
[4357]
what's that icon in the title bar?
Henrik
10-Jul-2006
[4358]
>> ? help
USAGE:
    HELP 'word

DESCRIPTION:
     Prints information about words and values.
     HELP is a function value.

ARGUMENTS:
     word -- (Type: any-type)

>> do %/c/rebol/rebgui/rebgui.r
Script: "RebGUI system" (11-Jul-2005)
Script: "Untitled" (none)

>> ? help
USAGE:
    HELP 'word   word -- (Type: any-type)>>

What does this?
Henrik
11-Jul-2006
[4359x3]
print was set to NONE, but I was using too old a version of RebGUI 
it seems.
Is the "How to create a RebGUI 0.3.0 widget" no longer valid? I can't 
make it work with RebGUI 0.4.2, but it says nothing about not being 
compatible anywhere...
DISPLAY will not recognize any elements I add to ctx-rebgui/widgets
Graham
11-Jul-2006
[4362]
are they being included into the source when you create distro?
Henrik
11-Jul-2006
[4363x2]
I'm doing no such thing. I thought you could pad them as written 
in the manual?
ah... turns out I was also supposed to append the word to ctx-rebgui/words
Graham
11-Jul-2006
[4365]
This is your toolbar?
Henrik
11-Jul-2006
[4366]
yes