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
14-Apr-2007
[5992x2]
display/options "Form" lo [ no-border ]
and this to display

	either dialog [
		spec/type: 'popup
		spec/feel: system/words/face/feel
		show-popup spec
	] [
		;; GC
		either options [
			view/new/options spec opts
		][
			view/new spec
		]
	]
Ashley
14-Apr-2007
[5994]
That will replace any options added to spec in prior steps. Better 
to insert them.
Graham
14-Apr-2007
[5995]
ok
Ashley
14-Apr-2007
[5996]
Just added fkey handling in 4 lines of code.
Graham
14-Apr-2007
[5997]
svn?
Ashley
14-Apr-2007
[5998]
Later today. I'm still merging Lad's spellcheck changes.
Graham
14-Apr-2007
[5999x4]
Ok.
I've had a search on the internet and can't find the dbase template 
syntax.
I have the Ashton Tate Advanced Programmer's guide which describes 
it, but I'll have to find a scanner and scan the pages in.
Probably better to have the poster's name at the top of the pane, 
instead of the middle vertically.
Ashley
15-Apr-2007
[6003]
Ditto for ID and Date?
Graham
15-Apr-2007
[6004]
Yes.
Ashley
15-Apr-2007
[6005]
Build 78 uploaded to SVN. Includes the following additions:

1) New chat widget

	chat data ["Bob" none "Comment." yello 1-May-2007/10:00:00

2) New on-fkey handlers

	ctx-rebgui/on-fkey/f3: make function! [face] [...]


3) Soundex spellcheck logic replaced with new algorithm as discussed 
above


4) New, smaller, dictionaries (sans soundex codes) to be uploaded 
within the next few days

5) request-font enhanced (now has multiple refinements)

6) %tour.r updated


Note that the chat widget has a known display problem when it appears 
on a tab or is resized. The fix, adding a 'show in its feel/resize, 
appears to eat other widgets resize events. Not sure if this is a 
REBOL/View bug or not. Anyone who knows of a fix please speak up!
Graham
15-Apr-2007
[6006]
kewl
Robert
15-Apr-2007
[6007]
Ashley, what is yet not merged from my fork / the old rebgui release? 
(I assume this is already the V2 stuff).
Ashley
15-Apr-2007
[6008]
chart, 
drop-tree, 
grid & 
input-grid need a bit of work to get 
them working again with Beta 2.
Robert
15-Apr-2007
[6009]
Ok, we take a look at them.
Ashley
15-Apr-2007
[6010x2]
Off the top of my head these are some of the things needed to be 
done:


1) Code a rebind func where applicable to handle dynamic UI changes 
(e.g. color)

2) Assign a string! to 'tip so my audo-doc system can pick it up 
(look at table.r for an example)
3) remove redundant ctx-rebgui/ qualifiers
4) check for global namespace pollution

5) Avoid having the widget dependent upon %rebgui-edit.r hard-coded 
widget handling code ... I've removed all the widget specific stuff 
(apart from button) ... If the widget *really* requires other changes 
then we need to talk and find a way of making such changes "generic"

6) References to 'action, 'alt-action, 'dbl-action need to be changed 
to use the new action object (e.g. action/on-click, action/on-alt-click, 
action/on-dbl-click)

7) Use (and possible extension) of the standard RebGUI UI objects: 
colors, sizes, behaviors & effects

8) Use (and possible extension) of the standard widgets objects: 
default-*

9) Removal of accessors/options that are unlikely to be used (.e. 
KISS principle)

That's probably enough to start with. ;)
New dictionary files uploaded to SVN (almost half the size of previous 
ones).
Graham
15-Apr-2007
[6012]
Has the layout engine changed?  I'm using some custom widgets derived 
from text and field ( just preset sizes, and content ), and now when 
I display them, there is a large vertical space following 'return 
to the next widget.  This is only in beta2
Ashley
15-Apr-2007
[6013]
Minor bug fixes and enhancements. Two related specifically to 'at 
and 'after (the later now always triggers a newline). Also have a 
look at:

	http://www.dobeash.com/RebGUI/user-guide.html#section-4.2
	http://www.dobeash.com/RebGUI/user-guide.html#section-4.3

which provide easy ways of making small changes/variations.


Of course it's quite possible you've hit a bug in the layout logic, 
can you reproduce the layout problem just using the box widget?
Graham
16-Apr-2007
[6014x2]
I'm getting this on the latest chat widget, and not on the old one.

make object! [
    code: 312
    type: 'script
    id: 'cannot-use
    arg1: 'add
    arg2: 'none!
    arg3: none
    near: [text: form any [row rows: rows + 1] 
        color:
    ]
    where: 'append-message
]
Never used 'after, and I'm not using 'at in this instance.  I'll 
try and see if I can reproduce it.
Ashley
16-Apr-2007
[6016x2]
Is the chat error on initialization or when you try to add a message?
Does chat in %tour.r work OK for you (Static => Chat).
Graham
16-Apr-2007
[6018x2]
I'm only creating the chat widget, and then adding messages to it.
Just tried out tour.r and yes, it seems to work .. except that when 
you click on the tab, the screen is corrupted.showing parts of the 
titlegroup image.
Pekr
16-Apr-2007
[6020x3]
I wonder if chat widget etc. are more important than e.g. tree :-)
sorry for being so ignorant, not reading svn docs yet, but what is 
the easiest way to sync rebgui from svn to my hd location? I select 
all .r file, right mouse button press and then I choose "Save as". 
But couldn't it be done even for subdirs?
There is only "Export" in menu, but I fear I could mess the content 
on the server :-)
Graham
16-Apr-2007
[6023x2]
Pekr, it's called doing what one can in the time available.
It's more efficient for Cyphre to fix his drop-tree widget
Pekr
16-Apr-2007
[6025]
Export
 seems to work, damn Vistas, it stores files in different dir :-)
Graham
16-Apr-2007
[6026]
Unless you have write access, you can't muck up anything
Pekr
16-Apr-2007
[6027x2]
I asked Cyphre to do so, even to upgrade Grid to follow beta 2. I 
hope we have only one system, not incompatible forks.
ok, thanks.
Graham
16-Apr-2007
[6029]
right click on the containing directory and update
Pekr
16-Apr-2007
[6030x2]
hmm, first clicking the Chat tab shows underlying Box tab content, 
distorted, even if I not clicked Box tab itself ...
it can be fixed by pressing another tab, then going back to Chat 
tab. But each first display of Chat tab seems to be incorrectly drawn 
to the screen ...
Graham
16-Apr-2007
[6032x4]
that's what the Refresh button is for
and that's what my message above also says
the problem with the chat widget is when I try to fill it in the 
do block of the display
>> display "" [ f: chat data [] do [ f/append-message "system" none 
"test" none 1-Jan-2007 ]] do-events
** Script Error: Cannot use add on none! value
** Where: append-message
** Near: text: form any [row rows: rows + 1]
color:
>>
Ashley
16-Apr-2007
[6036]
Uploaded fix to SVN.
Graham
16-Apr-2007
[6037x5]
Working now :)
I've got a widget named 'outcome defined as 


outcome: make text [
	size: 0x5
]
now this displays incorrectly 


 display "" [ label "HAQ" outcome "HAQ" return text "Test" ] do-events
there is a large vertical gap ( twice normal ? ) between the two 
visible widgets
Ashley, would you provide a working example of using the function 
keys ?  I'm having difficulty getting it working.