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

World: r3wp

[!RebGUI] A lightweight alternative to VID

marek
10-Aug-2009
[8300]
Group-box and scroll-panel seem to have the same problem.
Ashley
11-Aug-2009
[8301]
Uploaded some more focus bug fixes ... should solve these issues.
marek
11-Aug-2009
[8302]
Thanks Ashley.

Two more little bugs, not in a hurry:-

>>display "" [button [display/dialog "Tab me" [field field]]] do-events 
 ;; not movement

>>display "" [button [display/dialog "pop" [field field]]] do-events 
 ;; panel not resizing
Graham
11-Aug-2009
[8303]
no resizing unless you add the resizing #WHXY etc
marek
12-Aug-2009
[8304x2]
I'm sorry, I copied wrong code.

>>display "" [panel #H data [field #H]] do-events ;; panel doesn't 
resize at all

>>display "" [group-box #W "" data [field #W]] do-events  ;; group-box 
resizes and looks like panel, why both?
Disregard >why both?< part. There are more attributes with group-box, 
I just found.
Ashley
13-Aug-2009
[8306]
Build 209
- Fixed #LV span options for
	- button
	- group-box
	- panel
	- pill
- Fixed tab-panel tabbing
- Removed redundant scroll-panel from request-dir
- Reworked on-resize handling for most widgets
- Removed #O span option (made redundant by on-resize)
- Renamed span-size to span-init
- Improved popup handling (drop-list, menu, etc)


Note that this build has [temporarily] broken dialog modality (you 
can click outside of a dialog) and tab-panel action blocks.
Pekr
13-Aug-2009
[8307x3]
Menus - good first step, but menu should not close upon mouse-away 
... it should close upon ESC, or click-away ...
Slight problem with hilighting in Toolbar widget ... try randomly 
moving away from icon, sometimes it stays hilighted, so you can get 
multiple icon hilighted ...
The over effect is mild too, and without Tooltip, I would not probably 
use toolbar in my app ...
Ashley
14-Aug-2009
[8310x3]
Build 210
- Fixed dialog modality bug
- Fixed tab-panel actions
- Enhanced radio-group (auto-size label widths)

- Added back #R and #O span directives to handle imbedded reverse 
widgets

- Moved window-feel out of display func and share across all displays
The #R and #O directives handle this case:

display "Test" [
	panel #L data [
		field #L
		reverse
		button #R "Cancel"
		button #O "OK"
	]
	return
	bar 75
]
Pekr, above issues noted. Tooltips are being added back to toolbar 
[only] as they were in the early builds. I'm also looking at ways 
of reducing memory usage (sharing more objects in layout and pre-building 
certain common font usage cases (e.g. align: 'center)).
Pekr
14-Aug-2009
[8313x2]
Ashley - you're da man! All good stuff :-)
I can see edge object for tree - can it hold an image? The way it 
is done in tour.r tree widget does not look like tree :-)
Ashley
14-Aug-2009
[8315]
You're on the right track. I'm trying to get an image in there without 
creating another face. The 3 places you can have an image in an existing 
face are: image, effect and edge. The first image I want to get in 
there is a folder icon so request-dir looks a bit better! ;)
marek
15-Aug-2009
[8316]
I always have little problem with tabbing over fields.

>> [field [if bad-input [do-something set-focus face] field] ;;; 
 triggering by <TAB> gives  focus to wrong field

Should I use on-key instead of default event block with check for 
#"^M"?

Should field behavior to be changed to be like button - action triggered 
only by <Enter>, <TAB> only moves focus - or should it stay as it 
is, Ashley?
Ashley
17-Aug-2009
[8317]
http://www.dobeash.com/RebGUI/user-guide.html#section-4.1.4... note 
the action-on-* behaviors
marek
17-Aug-2009
[8318]
Thanks a lot Ashley. It worked for me with on-key, but proper way 
is always better. Ta again.
Ashley
20-Aug-2009
[8319]
Build 211
- Moved base objects from ctx-rebgui to system/view
- Removed all dependencies on View/VID mezz code
- Rewrote and added show-popup & hide-popup functions
- Removed style widget
- Inlined popup logic
- Converted internal images from base 16 to base 64
- Cursor keys now work in choose (drop-list, edit-list & menu)
- pad option in layout enhanced to accept pair! (pixels)
- Added tooltips to tool-bar
- Added request-edit
- Improved resize logic
- Fixed request-dir (resize bug)
- Fixed slider (resize bugs)
Pekr
20-Aug-2009
[8320x5]
Removed style widget - so no more VID?
Not that I miss it, just a question :-)
btw - memory consomption still above 12 megs for tour.r ... but I 
find it OK ....
- lists - still the same bug ...
- tooltips - nice, but mouse pointer almost everytime covers first 
letter of tooltip itself ... maybe a bit of spacing/shifting would 
help ...
Maarten
24-Aug-2009
[8325]
Ashley, I am using build 210 (I'll update shortly), but wow, I love 
this little library. No compromises, fault intolerant, and best of 
all, ZERO learning curve.


Would it be an idea to add some systray functions to RebGUI for Windows?
Graham
24-Aug-2009
[8326]
Gabriele has written some systray stuff ...
Pekr
24-Aug-2009
[8327]
Not sure it was Gabriele - Cyphre did something upon contract for 
me, and I released it 2 years ago? :-) IIRC Cheyenne uses it too 
...
Steeve
24-Aug-2009
[8328]
Seems something here, http://rebol.wik.is/Code_Samples/Systray.r
Pekr
24-Aug-2009
[8329]
I can send you win32 API based version ...
Graham
24-Aug-2009
[8330x2]
Oh yeah ... that's the stuff I took from Gabriele's script.
Ashley, I get this when I encap the latest rebgui.r 

** Script Error: Cannot use path on none! value
** Where: load-stock
** Near: if not image: find system/view/vid/image-stock
** Press enter to quit...
Ashley
24-Aug-2009
[8332x2]
Maarten: Thanks. The Systray.r file Steeve linked to above is pretty 
self-contained (and explanetory), so I don't see much value in duplicating 
it in RebGUI (apart from the fact it is Windows specific, which is 
why I've left native requestors out as well).


Graham: The only SDK file that RebGUI now requires is gfx-colors.r 
(plus prot.r if you need protocol support). load-stock is one of 
the many View funcs loaded when you include view.r.
Build 212
- set-title enhanced to search for parent
- fixed request-edit title bug
- removed append-widget
- removed set-values
- updated get-values
- improved tool-bar tooltip spacing
Pekr
24-Aug-2009
[8334x3]
Going to test tour.r :-) btw - when do you plan to fix pop-ups (menu) 
mouse-over disappearance?
RebDoc crashes from tour.r button - "expect-arg" is the error msg 
...
RebDOC crashes even separately:


** Script Error: length? expected series argument of type: series 
port tuple bitset struct
** Where: layout
** Near: form length? functions
>>
Ashley
24-Aug-2009
[8337]
It's actually a feature a number of users have asked for ... so I'm 
going to make it a behavior flag choice in the next build (hide-popup-on-click? 
... defaulting to true, otherwise current behaviour).

RebDOC bug ... thanks, let me fix that while I'm here ...
Pekr
24-Aug-2009
[8338]
eh, ok - I just can't imagine someone can choose non-system-default 
behaviour preferably :-) But having an option to set different behaviour 
is ok with me ..
Ashley
24-Aug-2009
[8339]
RebDOC.r fixed and uploaded.
Pekr
24-Aug-2009
[8340]
works here ...
marek
24-Aug-2009
[8341]
Can I ask how to replace append-widget funcionality? Is there anything 
simpler that making custom distribution with %custom.r widget?
Pekr
24-Aug-2009
[8342]
My requestor comments, mostly cosmetic issues:

- request-error - crashes ....
- request-font - proportionally tall, should be wider imo
- request-menu - does not work, at least in terms of RebDOC
- requestor icons - imo a little big

- request-password - "strange" - needs more spacing when separator 
line is applied imo.


Take my comments easy. It is just that I was able to find 1px difference 
on our company website - 14 vs 15 pixel in one paragraph :-)
Graham
24-Aug-2009
[8343x7]
there was a rebdoc error on the requestors as well when I was testing.
Ashley, I only get the 'load-stock error using the latest rebgui.r, 
and not on earlier versions.
rebgui.r is doing something funny to VID
Here's my encap code

probe in system/view/vid 'image-stock  ; this works

#include %/c/rebgui10/rebgui.r ; 9/rebgui/rebgui.r

probe in system/view/vid 'image-stock ; this fails now

and here's the output 

image-stock
** Script Error: in expected object argument of type: object port
** Near: probe in system/view/vid 'image-stock

the error occurs on the second probe
BTW, there is an issue tracker which people can use ... it might 
be easier to post them there as well as here http://rebgui.codeplex.com/WorkItem/List.aspx
I got a crash on using cursor keys on drop list.  The error requestor 
doesn't allow me to copy the text :(

wake-event error near i: 1 + last face/picked

( isn't picked a block normally ? )
ignore that parenthetical note.