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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Graham
23-Dec-2006
[5185]
Don't know if this is some type of font issue, but labels are bold 
in Windows, but in Debian, they are not.
Ashley
23-Dec-2006
[5186]
Probably a font issue. Try changing font to Arial (set-fonts/name 
"Arial").
Graham
23-Dec-2006
[5187]
No difference .. is Arial a standard Linux font?
Ashley
23-Dec-2006
[5188]
More standard than the default verdana. Does VID have the same issue?
Graham
23-Dec-2006
[5189x2]
let me check.
No, fine in VID
Ashley
23-Dec-2006
[5191]
Hmm, labels are Arial 12 in VID so the following should work in RebGUI:

	set-fonts/name "arial"
	set-fonts/size 12
	display "test" [label "Text"]

if not, check the font name and size used by VID;

	layout [a: label]
	help a/font
Graham
23-Dec-2006
[5192x7]
I just downloaded build #46 off dobeash and ran it on Debian.
No bold text anywhere.
Let me check the fonts available in Debian.
dunno where the font browser is in Debian.
helvetica
Ok, that works.  Changing the font to helvetica gives me bold.  Thanks.
Arial I recall is a windows only font that was supposed to substitute 
for helvetica
Ashley
23-Dec-2006
[5199]
Uploaded your alt-action area change to SVN as build#50, except it 
triggers alt-action like so:

	area [] [print "Right click"]
Graham
23-Dec-2006
[5200x2]
Was this tested?

 display "" [ area 100x100 [][print "alt click"]] do-events

does nothing for me.
ooops... retract that.
Graham
24-Dec-2006
[5202]
Regarding info fields, you can't click into them, but you can tab 
to them.  Should that be allowed?
Ashley
24-Dec-2006
[5203]
No, and the same for info areas.
Graham
24-Dec-2006
[5204]
Just thinking that one should be allowed to click into an info field, 
highlight and copy from them.  But just not type into them.
Graham
26-Dec-2006
[5205x3]
I would like to see tab also activate the face action.  I've asked 
this before, and take it that I have to do it myself.

I see a block called action-on-enter, so presumably I create my own 
little list of widgets, and then trap the tab key, and fire the action.
for a block called action-on-tab
I prefer not to fork as it creates too much work merging back when 
Rebgui updates
Ashley
27-Dec-2006
[5208]
Sounds like a good change, feel free to commit it.
CharlesW
13-Jan-2007
[5209x2]
I get an error message when running my Rebgui app on OSX. Works fine 
on windows Any ideas?
** Script Error: Cannot use subtract on time! value
** Where: wake-event
** 
Near: now/time/precise - tool-tip-time
Graham
13-Jan-2007
[5211]
I've not used the tooltips ..
CharlesW
13-Jan-2007
[5212]
What's interesting is that I don't believe I am using tool-tips either.
Ashley
13-Jan-2007
[5213]
Fixed in build#46 (Desktop -> Demos -> RebGUI will fix it).
Graham
13-Jan-2007
[5214]
Aren't we up to #49 though?
Ashley
13-Jan-2007
[5215]
On SVN.
CharlesW
13-Jan-2007
[5216]
when I click on it from the desktop i get Script Error: query has 
no value
** Near: querying: to logic! query
.
Ashley
14-Jan-2007
[5217]
Works here with:

>> system/version

== 2.7.5.2.4
CharlesW
14-Jan-2007
[5218x2]
Thanks Ashley. I dowloaded the latest from the Doebash site and everything 
seems to work fine now.
I am using the RebGui along with requests to a Rugby server. I am 
able to access functions on my Rugby server when calling from the 
action event of a button. Pretty straight forward. What I would like 
to do is call my rugby function async while on one of my RebGui tab-panels. 
I want to add the call to an event loop somewhere, but I don't know 
where to add it. Can you point me in the right direcion?
Ashley
14-Jan-2007
[5220]
Have a look at the 'ex-status text widget in %tour.r and its use 
of rate and feel.
CharlesW
14-Jan-2007
[5221]
Thanks again. I believe I got it.
Graham
18-Jan-2007
[5222]
Volker posted a solution to how to insert text into an area widget 
where the cursor had been before it lost focus.  I don't think I 
got it to work properly.  Will there be a way to support this?
Volker
18-Jan-2007
[5223]
problem may be, 'focus makes sure the face/text  and  carfet are 
a string. So when you set caret to  none and  focus, both are strings 
again. Maybe  focus  should  be patched in that case.
Graham
5-Feb-2007
[5224x4]
Came across this when I clicked too quickly into a field
make object! [
    code: 303
    type: 'script
    id: 'expect-arg
    arg1: 'find
    arg2: 'series
    arg3: [series! port! bitset!]

    near: [s: any [all [s: find/reverse str s next s] head str] set [ns]]
    where: 'current-word
]
So, going to have to trap this in the 'current-word function in rebgui-edit.r
Means I have to click twice sometimes into a field, but at least 
it doesn't crash on me anymore.
Graham
6-Feb-2007
[5228x2]
make object! [
   code: 303
   type: 'script
   id: 'expect-arg
   arg1: 'max
   arg2: 'value1
   arg3: [number! pair! char! money! date! time! tuple! series!]
   near: [view*/caret: offset-to-caret parent-face min max]
   where: 'action
]
Another intermittent area problem ..
Graham
9-Feb-2007
[5230]
Ashley, I'm allowing users to create their templates by loading in 
their own rebgui display code ( I don't have a fancy layout editor 
like you do!).  This works, but I can't tab between the widgets though. 
 Is there some way I can get the focus system to work on user templates?
Ashley
9-Feb-2007
[5231]
Should work, how are you loading and "executing" the templates? Do 
you have a small pseudo-code example?
Graham
9-Feb-2007
[5232]
template: copy somearea/text
		template: compose/deep bind template 'wide

		display "title" compose/deep [
			(template)
		]
btiffin
9-Feb-2007
[5233x2]
Sorry for the interruption. Is there a way to link fields in RebGUI? 
I've got an app for volunteer fire departments that needs quite a 
few tabs.  I want certain fields replicated across multiple screens. 
 Right now it is all manual, with code like  set-text i-incharge 
newname  set-text ins-incharge newname etc peppered all over the 
app when I have common fields across screen.
s/screen./screens./