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
[5971x2]
I basically wrapped a gui around other peoples' code :)
commented out are links to lib:// ( rebol.org scripts ) and # ( to 
rambo ) as they were not needed for this script.
Ashley
14-Apr-2007
[5973]
I'll look at incorporating this.
Graham
14-Apr-2007
[5974x4]
great
I think there's no need to sort messages
unncessary complexity
spellchecker is a must though :(
Ashley
14-Apr-2007
[5978]
Although not ideal, you can always force a spellcheck with:

	...
	button "Submit" [
		request-spellcheck my-area
		...
	]

But check-as-you-go is where it needs to be.
Graham
14-Apr-2007
[5979x5]
yep
and in a chat screen, you don't normally need to scroll the text 
in the reply area ..
which might make it easier to mark the text that is thought to be 
incorrect.
How do you make a display stay on top without making it modal ?
ie. on top of the parent window
Ashley
14-Apr-2007
[5984]
Odd, just noticed that the latest View beta is registering fkeys 
as 'console, 'icmp, 'oracle, etc. Wierd. I vagually recollect someone 
else mentioning this before in another group though.
Graham
14-Apr-2007
[5985x2]
oracle ??
I haven't see this in the sdk .. but I'm not using the latest sdk.
Ashley
14-Apr-2007
[5987]
display/parent (god help anyone else trying to follow this convo 
;) )
Graham
14-Apr-2007
[5988x2]
Ok.
and to display borderless windows ?
Ashley
14-Apr-2007
[5990]
do [insert face/options 'no-title]


or you may want to create the face directly in view with the 'no-border 
option
Graham
14-Apr-2007
[5991x3]
Ok. I added a /options to display previously ...
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
[6020]
I wonder if chat widget etc. are more important than e.g. tree :-)