It also works in Jwdp, which is nice.
----- Original Message -----
From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
To: "Beta forum" <beta@jsoftware.com>
Sent: Thursday, August 10, 2006 7:26 PM
Subject: Re: [Jbeta] Black rectangle in isigraph and error
That's most adequate and the speed or
memory difference is undetectible.
So it's not as much a workaround, but rather
the proper way to do the thing.
Thank you.
--- Eric Iverson <[EMAIL PROTECTED]> wrote:
A quick test shows that using another unshown form works OK.
1. remove cc h isigraph from form create.
2. change f_g_paint as follows:
f_g_paint=: 3 : 0
glsel 'g'
wh=. 2*glqwh''
wd'pc abc;cc h isigraph;setxywhx h 0 0 ',":wh
glclear ''
....
q=. 16b010101*av2 av2&.|: 256|q
wd'pclose'
wd'psel f'
glsel 'g'
...
)
I hope this is a suitable workaround.
----- Original Message -----
From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
To: "Beta forum" <beta@jsoftware.com>
Sent: Thursday, August 10, 2006 5:18 PM
Subject: Re: [Jbeta] Black rectangle in isigraph and error
> Here is an example of simplified offscreen canvas.
>
> It is done with another hidden isigraph, which should
> be two times as large as the on-screen one.
>
> It has to support resizing, so the off-screen isigraph
> is dynamically resized.
>
> But black rectangles appear when the window
> is resized beyond its original size.
>
>
> NB. =========================================================
>
> require 'gl2'
> coinsert 'jgl2'
>
> F=: 0 : 0
> pc f;pn "Font Fit";
> xywh 6 6 160 120;cc g isigraph rightmove bottommove;
> pas 6 6;pcenter;
> rem form end;
> )
>
> f_run=: 3 : 0
> wd F
> wd 'xywh 0 0 10 10; cc h isigraph;'
> wd 'setshow h 0;'
> wd 'pshow;'
> )
>
> av2=: _2&((+/ <[EMAIL PROTECTED] #)\)
>
> f_g_paint=: 3 : 0
> glsel 'g'
> wh=. 2*glqwh''
> wd 'setxywhx h 0 0 ',":wh
>
> glsel 'h'
> glclear ''
> glbrush glrgb 3#200
> glpen <.(0.01*-:+/wh), 0 [ glrgb 3#100
> glellipse ,0.1 0.8 <[EMAIL PROTECTED]/ wh
> glpaint ''
>
> $q=. (|.wh)$glqpixels 0 0,wh
> q=. 16b010101*av2 av2&.|: 256|q
>
> glsel 'g'
> glclear ''
> glpixels 0 0,(|.$q),,q
> glpaint ''
> )
>
> f_close=: 3 : 0
> wd'pclose'
> )
>
> f_run ''
>
>
> --- Eric Iverson <[EMAIL PROTECTED]> wrote:
>
>> The non-unique sparse elements is due to a wd bug. I forget the
>> details.
>> One variant of this has been fixed in the next beta so please test
>> again. A buffer overflow, rather than resizing and continuing,
>> gets
>> confused as an error with a curious number.
>>
>> ----- Original Message -----
>> From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
>> To: "Beta forum" <beta@jsoftware.com>
>> Sent: Thursday, August 10, 2006 2:07 PM
>> Subject: [Jbeta] Black rectangle in isigraph and error
>>
>>
>> >I have been experimenting with offscreen
>> > isisgraph which is resized with other
>> > visible isisgraph as shown in fontscale.ijs.
>> >
>> > http://www.jsoftware.com/jwiki/Scripts/Font_Fit
>> >
>> > In addition to the issue with black rectangles,
>> > when you resize the window large engough,
>> > in the end, when closign J it gives
>> >
>> > |non-unique sparse elements: wd
>> > | wdq=: wd'q'
>> >
>> > But more testing probably is required.
>> > I just report because I never saw such error before.
>> >
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm