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

World: r3wp

[!RebGUI] A lightweight alternative to VID

shadwolf
6-Mar-2005
[107]
after some play on forwar/backward icon-button I get 7600 ko of allocated 
memory without  any recycle call ...
Vincent
6-Mar-2005
[108]
i think 'show use some memory, and don't recycle it
it would be bigger else, something like  n * image size
I tried with bigger images (400x400 instead of 40x40)
and only 16k more is allocated at each time
shadwolf
6-Mar-2005
[109x2]
Vincent in anim: face/data: either tail? next face/data [head face/data] 
[next face/data]
this is strong data manypulation
Vincent
6-Mar-2005
[111]
strong?
shadwolf
6-Mar-2005
[112]
yes imagine 4ko to 8ko with only to little image what could it be 
with 30 images ?
Vincent
6-Mar-2005
[113x4]
try it, it don't change - i tried with 30 400x400 sized pictures!
just 16k
the image isn't evaluated in "face/data: either tail? ..." it's just 
a pointer affectation
try to remove "show face" -> no memory leak
sorry-retried it - it's not 'show - events maybe - or  something 
else
shadwolf
6-Mar-2005
[117x2]
k
I remove the show ace and I still have memoru leak
Vincent
6-Mar-2005
[119]
(sorry my error - the window didn't has the focus - so i interpreted 
wrongly)
shadwolf
6-Mar-2005
[120]
vincent in private we continue this debat lol ;)
Ashley
6-Mar-2005
[121]
I'm keen to see your findings / conclusion on this one. Nailing "memory 
leaks" early in the design is a high priority.


If the "problem" is with 'show then we can always do something simple 
like:

	show*: :show
	show: func [face [object! block!]][show* face recycle]

Not sure about the performance hit though ...
Ashley
7-Mar-2005
[122]
Anyone know where I can get a good free set of XP (or XP-like) toolbar 
icons (22x22) that I can distribute without issue? (I'll acknowledge 
the author(s) in the source and documentation).
Graham
7-Mar-2005
[123]
Ask Chris ...
Allen
7-Mar-2005
[124]
I don't see any mention of user-data . This was standard value for 
a user to store / manipulated data in a VID face, without fear of 
the style over writing it (unlike face/data which belongs to the 
style).
Ashley
7-Mar-2005
[125]
RebGUI uses the standard View face (25 facets) and 'data is not used 
by REBOL/View. VID extends this face by an additional 22 facets:

	state
	style
	alt-action
	facets
	related
	words
	colors
	texts
	images
	file
	var
	keycode
	reset
	styles
	init
	multi
	blinker
	pane-size
	dirty?
	help
	user-data
	flags


and provides 'user-data as it uses the 'data facet itself. RebGUI 
widgets use 'data as the "interface" attribute (e.g. setting a progress 
bar's value) and may define additional facets for internal use on 
a widget by widget basis. The idea is to make best use of the 25 
available View facets and not have every widget using 47 facets regardless 
of whether it needs to or not! ;)
shadwolf
7-Mar-2005
[126x2]
one ask I allways maid to me was how to done a box with sunken like 
borders with rebol/view ?
it's box edge [ size 3x3 color: gray effect: 'ibevel ] :)
Ashley
8-Mar-2005
[128]
Latest release available at: http://www.dobeash.com/files/RebGUI-013.zip


Check out the new tab-panel widget and updated View facets document.
Graham
8-Mar-2005
[129x2]
A suggestion .. don't quit after closing an example window please 
.. halt will do just fine.  Otherwise have to reload rebol each time 
:(
Thanks :)
Ashley
8-Mar-2005
[131]
Mm, I have the opposite problem ... I just want to double-click the 
script and when I close the window I don't want to then have to close 
an additional console window. ;)
Graham
8-Mar-2005
[132]
I don't have .r associated with rebol .. afterall which version will 
it load??
Ammon
8-Mar-2005
[133x3]
Right click just about any file and you can change the EXE that is 
associated with the file's extension so, potentially any version 
you like.
Even linux does this...
(or at least KDE does. ;-)
Anton
8-Mar-2005
[136]
I agree with Graham. I have .R files associated with my editor. Perhaps 
you could pass in a flag to intelligently quit or not ?
Ashley
8-Mar-2005
[137]
Windows keeps track of all the programs used to open a particular 
file extension. Just right click the script then choose:

	Open With | Choose Program


and browse select the file you want to open it with (checking the 
"Always use ..." option if you want to permanently associate it). 
Thereafter, this file is displayed whenever you right-click and bring 
up the "Open with" menu. On my system I have multiple REBOL versions 
and editors available so I can easily choose how I want to open a 
script.


Anton: if your .R scripts are associated with your editor, how do 
you run them? Console session and do?
Graham
8-Mar-2005
[138]
I have my .r associated with editor as well.  I run a console session 
to run rebol scripts.
Ammon
8-Mar-2005
[139]
I also use the Open With | Choose progam menu but I failed to mention 
it.
Anton
8-Mar-2005
[140x2]
I mean - that's how I prefer it.
Yes, I spend my life in the rebol console.
Graham
8-Mar-2005
[142]
I'm either in a rebol console or a dos shell :(
Anton
8-Mar-2005
[143]
poor boy ;)
Ammon
8-Mar-2005
[144]
I have a tendancy to fall in front of a video game or two but other 
than that I'm usually behind a rebol console as well. ;-)
Graham
8-Mar-2005
[145]
I tend to create batch files if I need to run a rebol script .. or, 
encap them.
Anton
8-Mar-2005
[146x2]
I suppose, Graham, you're tracert'ing a lot.
automatically ?
Graham
8-Mar-2005
[148]
no, just ones I need to run by clicking on them ..
Anton
8-Mar-2005
[149]
-----> Chat
Graham
8-Mar-2005
[150]
Anyway, I think it we have an option to drop to console ... that 
would be good.
Ashley
9-Mar-2005
[151]
I'll make sure that the next iteration of examples all have an "icon 
[action [unview halt]]" in them just for you. ;)
Graham
9-Mar-2005
[152]
Much appreciated.
Vincent
9-Mar-2005
[153x3]
In http://www.dobeash.com/it/rebgui/widgets.html, 

in Feel function templates, there's missing the 'move event in engage.
It's used for dragging actions in a layout.
Here a vertical splitter widget using it :
v-splitter: make face [
    size: 5x100
    edge: make edge [size: 1x1 effect: 'bevel]
    feel: make feel [
        engage: function [face act event][f p n delta][
            if event/type = 'move [
                f: find face/parent-face/pane face
                p: first back f
                n: first next f
                delta: face/offset/x - face/offset/x:
                    min n/offset/x + n/size/x - 1 - face/size/x
                    max p/offset/x + 1
                    face/offset/x + event/offset/x
                p/size/x: p/size/x - delta
                n/size/x: n/size/x + delta
                n/offset/x: n/offset/x - delta
                show [p face n]
            ]
        ]
    ]
]
To use it, just insert it between the faces you want to resize: 

text [text "Some text" 320x40] v-splitter [size 5x40] box [size 60x40 
color blue]
Ashley
9-Mar-2005
[156]
Now *that's* elegant!