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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Ashley
15-Aug-2005
[1776]
Latest build available at: http://www.dobeash.com/files/RebGUI-033.zip


*** Unzip this file into your existing RebGUI 0.3.0 distribution. 
Requires View 1.3.1 ***


Minor synchronization release to align with latest REBOL/View 1.3.1 
builds and documentation. I've also removed all SVG related code 
until such time as AGG fixes allow SVG Renderer project to complete.
Graham
15-Aug-2005
[1777x3]
** Script Error: focus expected face argument of type: object
** Where: switch
** Near: focus f
if f/type =
** Press enter to quit...
Place the text cursor in the edit-list widget, and then press tab.
This is for tour.r
Graham
21-Aug-2005
[1780]
If there are multiple fields, and one enters text in one field that 
is larger than the visible field, and then tabs to another field, 
the text in all the other fields shifts left (as though there is 
some global text pointer).
Gabriele
21-Aug-2005
[1781]
shared para object.
Pekr
21-Aug-2005
[1782x2]
shared para object
 is practical nonsense ;-)
Rebol uses inverse logic just to save resources ...
Volker
21-Aug-2005
[1784]
inverse logic

 triggered a thought: what about a 'share-keyword and clone by default? 
 for performance [  text share[para] ]
Anton
21-Aug-2005
[1785]
If para was converted to a block, then make would copy it for us 
automatically.
Volker
21-Aug-2005
[1786]
The trick of para is to share, to save space. else we could just 
do it in 'layout.
Anton
21-Aug-2005
[1787]
Actually, yes, the default face has a para object, even though a 
lot of styles don't necessarily use para features (or even text at 
all), so sharing is worthy.
Graham
21-Aug-2005
[1788]
Well, I consider it a bug if you alter the text in one field, and 
experience unwanted side effects in other fields.

So, when you create a text field, it needs it's own paragraph object.
Ashley
21-Aug-2005
[1789]
I agree that this is an undesired feature, I also agree that sharing 
the para object is generally a good idea. One way around this would 
be to change the focus function such that the shared para object 
is "reset" upon change of focus.
Graham
21-Aug-2005
[1790]
Seems a reasonable thing to do.
Graham
22-Aug-2005
[1791]
display "" [ button "Print" ]


shows a button with text "Imprimer" , and one with "Save" shows "Enregistrer" 
...
Ashley
22-Aug-2005
[1792x2]
Isn't localization wonderful? ;)  [just edit / delete %locale.dat 
to "fix"]
Latest build available at: http://www.dobeash.com/files/RebGUI-034.zip


*** Unzip this file into your existing RebGUI 0.3.0 distribution. 
Requires View 1.3.1 ***

Highlights include:

	- request-dir requestor updated
	- alert and question requestors added

 - Tab focus expanded to include edit-list handling (see %focus-demo.r 
 for details)
	- Button image now resizes correctly

 - text-list widget totally rewritten to use [newly documented] View 
 1.3.1 iterated faces
	- text-list now supports Ctrl+click, Shift+click, Ctrl+A

 - text-list scrollbar now reacts to current display state (eg. disappears 
 if not required, alters dragger ratio as rows are added, etc) 
	- check and radio widget aesthetics improved

 - added options support to layout function and text-list and check 
 widgets

 - changed base-size from 4x5pixels to 5x4 pixels (better granularity)
	- reworked all widget sizes to account for above
	- fixed scaling problems with many widgets
	- updated focus-demo.r

 - greatly enhanced and expanded %tour.r to demonstrate more variations 
 and usage cases
	- added "live" unit-size and font-size drop-lists to %tour.r
	- numerous other minor bug fixes and coding improvements

In the works


 - table widget being rewritten along the same lines as the new improved 
 text-list widget
	- aiming for a 0.4.0 beta release prior to DevCon2005
BrianW
22-Aug-2005
[1794]
Great work, Ashley!
Rebolek
22-Aug-2005
[1795]
I like it, nice work.
Graham
22-Aug-2005
[1796x4]
The shared para object problem still exists, and I notice it now 
screws up the text in the tab panels - so that they disappear.
Unlike 1.3 VID alerts, you can't use the space bar to close the alert.
** Script Error: Cannot use path on none! value
** Where: edit-text

** Near: if all [tmp/x < 0 tmp2/x < 0] [face/para/scroll/x: tmp2/x 
- tmp/x]
tmp3:
** Press enter to quit...

on tabbing out of an edit box.
With the text in an edit list highlited, click on the drop down arrow, 
click on a new item, then tab .. and the above occurs.
Ashley
22-Aug-2005
[1800]
Thanks, these will be fixed in the next build. I'm assuming that 
all other issues are resolved as of this build, so if anyone has 
others (even if previously raised) that have not been addressed then 
now is the time to raise (or re-raise) them. Please exclude issues 
relating to the following unfinished widgets:

	- table
	- grid
	- svg-toolbar
	- icon (SVG-based)
	- auto-fill
	- spinner
	- menu
Graham
22-Aug-2005
[1801x2]
How about swapping the parameters for splash so that face is first? 
 That makes it consistent with all the other functions.
Also, how about an accessor function like

show-focus: func [ face [object!]][
	rebfocus face
	show face
]
Mchean
23-Aug-2005
[1803]
with 3.4 when i run the tour.r i get: Access Error: Cannot open /C/Temp/Rebol 
View/RebGui/images/logo.png
** Near: image: load %images/logo.png
size: image/size
Graham
23-Aug-2005
[1804x2]
did you download the whole archive first?
The recent downloads just contain updates and not the images.
Luisc
23-Aug-2005
[1806]
It would be nice if  those images are included on every release as 
newbies don't have them.
Graham
23-Aug-2005
[1807]
Still a beta release .. not a general release.
Luisc
23-Aug-2005
[1808]
Mchean all you have to do is put a comment  ";" at the line and it 
should work =)
Graham
23-Aug-2005
[1809]
Other images referred to won't be found either though.
Luisc
23-Aug-2005
[1810x4]
unfortunatelly you will have to do that on every release until you 
download those images
yes i think there are 3 images that need to be " ; "
but i think if you download the first beta release it has those images
Sorry Mchean by newbies i was referring to me =)
Graham
23-Aug-2005
[1814x3]
I guess this is more of a Rebol problem, but alerts don't stay infront 
of the parent window.
LEDs don't seem to be working properly in the tour.r
And also, you can't tab yet within any of the state widgets
Image accepts a file for the image, but not an image type.
Graham
24-Aug-2005
[1817]
No action block for fields?
Ashley
24-Aug-2005
[1818]
Try this:


 field [show-text face now/time/precise]	; press enter in the field
Graham
24-Aug-2005
[1819x6]
Hmm.  Wonder why mine don't work.
If you type enough text to start text scrolling, this is what happens


>> display "" [ myfield: field 20 [show-text face now/time/precise 
print face/text] ] do-events
16:50:17.808
** Script Error: Cannot use path on none! value
** Where: edit-text

** Near: if all [tmp/x < 0 tmp2/x < 0] [face/para/scroll/x: tmp2/x 
- tmp/x]
tmp3:
When a window containing a text-list is maximised, the scrollers 
disappear.
from the text-list.
I thought I'd have a go at building an application with RebGUI, and 
I'm starting with an open source electronic medical record.
I'm just building the gui first off 

http://www.compkarori.com/emr/remr.exe
http://www.compkarori.com/emr/remr.r

Help appreciated :)
I'll intend to use Rugby + mysql/postgres unless RT brings out LNS 
in time.
Ashley
24-Aug-2005
[1825]
Good first cut. I''d standardize label / field widths with composed 
words; eg.

window-size: NxN
tab-size: window-size - NxN
label-width: N
field-width: N

display "Test" compose [
	...
	label (label-width) ...
	field (field-width) ...
	...
]


This way you can globally experiment with different sizing layouts 
without too much effort.


If you come across anything that would make writing an app even easier 
(be it a RebGUI usage hint or enhancement request) then be sure to 
mention it here. Thanks. ;)