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

World: r3wp

[View] discuss view related issues

Maxim
21-Sep-2006
[5606x2]
is there a way to alter the sampling algorythms used in draw?
faster/better quality and up and down sizing all have optimised algorythms. 
 There is no universal algorythm for resizing, not even the slower 
ones.  Some have sweetspots in various conditions.
Gabriele
21-Sep-2006
[5608]
draw native has been added with AGG
Henrik
22-Sep-2006
[5609]
I just miss being able to create proper thumbnails with draw AGG
Gregg
22-Sep-2006
[5610]
Being able to save JPGs is my only outstanding image-related request, 
but I know that isn't likely to happen.
Geomol
23-Sep-2006
[5611]
Gregg, why not? Is the code too large for Carl to include it, or 
is it something else?
Graham
23-Sep-2006
[5612x2]
licensing ?
http://www.extremetech.com/article2/0,3973,389261,00.asp
Henrik
23-Sep-2006
[5614x3]
graham, I think that was overthrown in 2004
http://www.groklaw.net/article.php?story=20060526105754880
correction: 2006
Graham
23-Sep-2006
[5617]
So, did they pay Sony $15M back ?
Geomol
23-Sep-2006
[5618x2]
There should be no legal issue with Independent JPEG Group's version: 
http://www.ijg.org/
From the README:


It appears that the arithmetic coding option of the JPEG spec is 
covered by
patents owned by IBM, AT&T, and Mitsubishi.  Hence arithmetic 
coding cannot
legally be used without obtaining one or more licenses. 
 For this reason,
support for arithmetic coding has been removed 
from the free JPEG software.
(Since arithmetic coding provides only 
a marginal gain over the unpatented
Huffman mode, it is unlikely 
that very many implementations will support it.)
So far as we are 
aware, there are no patent restrictions on the remaining
code.
I'm not a law expert, so I might be wrong.
Henrik
23-Sep-2006
[5620]
I don't think there would be any problems with the law, only a matter 
of the size of the implementation.
Gregg
23-Sep-2006
[5621]
I do believe it was a size issue, Graham.
Janeks
27-Sep-2006
[5622]
How to properly invoke event after window opens.
Or the exact my problem is:

I need to display layout face for web browser plugin. And then after 
it is displayed update some one of subfaces and show them.

It is no problem to do so for new windows outside first one in web 
browser page if opening with /new, but I want to do it for main window 
in browser page.

In such cases it looks like /new does not help - nothing is executed 
after view/new main-win.
Anton
27-Sep-2006
[5623x2]
Do you mean you want to show windows inside the main window ? Or 
are you happy with panels ? eg:
view layout [btn "code" [my-panel/pane: layout/tight [size 400x400 
backcolor teal title "Code"] show my-panel] btn "documentation" my-panel: 
box 400x400 edge [size: 2x2 color: coal]]
Janeks
27-Sep-2006
[5625]
In my case I have panel and some faces what I want to update *after* 
main window is opened.
Anton
27-Sep-2006
[5626]
Ok, order of operations should be:
1)   VIEW main-window
2)   SHOW  subfaces
Janeks
27-Sep-2006
[5627]
Not after a button is pressed.
Anton
27-Sep-2006
[5628x2]
Ok, instead of
	VIEW main-window
you can write
	VIEW/NEW main-window
	DO-EVENTS
Which means you can also write:
	VIEW/NEW main-window
	my-panel/text: "new text here.."
	SHOW my-panel
	DO-EVENTS
Janeks
27-Sep-2006
[5630]
Nothing is happening after view main-win - let's simplify:

view/new mainWin

alert "AAAA"
Anton
27-Sep-2006
[5631]
What happens when you run the above code ?
You do not see mainWin at all ?
Janeks
27-Sep-2006
[5632]
I see mainWin, but not alert.
Anton
27-Sep-2006
[5633]
Hmm... I will have to test, but I have not tried the web plugin for 
a long while. Anyone else have it set up ?
Volker
27-Sep-2006
[5634]
Why want you do that?
If you want to refine things after layout, you can do instead:
 lay:layout[..]
 do extras
 view lay
I
Janeks
27-Sep-2006
[5635x2]
Something is totaly wrong I I can't get  to run new version of my 
script in my web page.

I am changeing version numbers to the same at the both ends (html 
page and script) - no success.?
What else could I missed.
O'k I somehow managed to view chages in Plugin object frame by using 
new script instead of old one (saveiing old one as old01.r and putting 
it in html page).
But Volker's example does not work for me, fex:

mainWin: layout [
	t1: text "AAA"
	button 200x20 "Atvērt kārtis" [
		do something
	]
	do [
		t1/text: "Text changed"
		show t1
	]
]

view mainWin
Anton
27-Sep-2006
[5637x5]
What exactly does not work ?
I presume you see the window with the text and the button.  Do you 
see "Text changed", or "AAA" ?
Probably you only see "Text" in the window.

The TEXT has a constant size and the word wrap means that only "Text" 
can be seen.
Try changing to this:
t1: text -1x100 "AAA" edge [size: 1x1]  
do [t1/text: "Text changed" show t1]
Look here:
	print mold svv/vid-styles/text/init

where it says:
	size: (size-text self) ....

We can do the same:
view layout [
	t1: text "AAA"
	btn "Modify" [
		do bind [
			text: "Text changed"
			size: 1000x200
			size: (size-text self) + (edge-size? self) 

     + (to-pair all [para (to-pair para/margin) + to-pair para/origin])
			show self
		] t1
	]
]
Janeks
28-Sep-2006
[5642]
I see just "AAA". What I need is to see "Text changed".

It could look useless, but in real life I need similar thing, but 
with panes and images.

I would like to open plugin main window, so that user could see all 
the controls on layout.

When it is done, then image from internet is loaded - progress bar 
is changing and finaly image is displayed in the pane.

It is not problem to change some control by using button when it 
the layout is open - of course I should take in account text size 
for text fields.

My problem is how to invoke event that in other systems is called 
- "after window open" or something similar.
Anton
28-Sep-2006
[5643]
I tested the above code with the plugin and it's working for me. 
There is no good reason why this should not work for you too. (There 
must only be a bad reason :-)
Oldes
28-Sep-2006
[5644x3]
I'm now reviewing one of my old View script and I need to turn of 
antialiasing to make it compatible with the AGG draw, what's the 
command please? I cannot find it.
I've found it, it's anti-alias off not antialias :-) http://www.rebol.com/docs/draw-ref.html
Hmm, it's not good, that now it will throw error if I use older Rebol 
version:(
Janeks
28-Sep-2006
[5647x2]
Well, Anton first my mistake was connected with that plugin used 
previous version  of script.
To better see my problem,  than try this:

mainWin: layout [
	t1: text "AAA       bbbbb"
	button 200x20 "Do something" [
		do something
	]
	do [
		wait 10
		t1/text: "Text changed"
		show t1
	]
]
view mainWin


Then you wil of course get text changed but before 10 seconds you 
will only see just "Rebol/Plugin 2.6.2.3.1", but not the layout - 
layout appears after 10 seconds and then of course t1 is cahged.

But I need at first to see layout and then after 10 seconds t1 is 
changed.
But in wait 10 place I have load http://server/image.ext
Anton
28-Sep-2006
[5649x2]
Well you must do:

view/new mainWin: layout [
	t1: text "loading..."
	pic: image 73x76
]

pic/image: load http://server/image.ext
t1/text: "loaded."
show window

do-events
See working code:
http://anton.wildit.net.au/rebol/plugin/browser-plugin-test.html
http://anton.wildit.net.au/rebol/plugin/browser-plugin-test.r
Janeks
28-Sep-2006
[5651]
O'k - thanks, Anton! Now it is clear!
Anton
28-Sep-2006
[5652]
You're welcome.
james_nak
5-Oct-2006
[5653]
Does anyone know how to turn on/off  the busy indicator at will? 
I'm moving files with services and it would be nice to show that 
something is happening. Thanks in advance.
Volker
5-Oct-2006
[5654]
system/options/quiet: false ; ?
Pekr
6-Oct-2006
[5655]
I have one question from Bobik, to which I don't know an aswer:


he's trying to stylize/master his field, but it does not work for 
him, unless he uses full path in 'engage function, e.g.:

 system/words/ctx-text/edit-text face event get in face 'action


whereas 'field itself does not need full path specified. Why such 
a difference? Or is he doing anything wrong probably?