[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[femm] Lua zoom & grid



Dear Robin,

What you have stated is correct, and I am sorry that I was not as clear as I thought. The "myfunction()' inside the while loop is called only once just before break, so it should look like this:

while ...
...
if condition=true then myfunction() break end
end

Because the zoom called from inside the myfunction() did not do what was expected, I replaced the myfunction() call with its actual script. It still did not work, I removed the myfunction() script from the while loop and placed it on the end of the pre-processor Lua script (after the end of the while loop). This did not solve my problem either. But here is another, maybe useful, information. The reason I use the zoom() at the beginning of the Luascript is to enlarge the view of interest after the original file is loaded and saved as 'temp' to observe what is going on. After this task is done,I save the current file (temp) and load new file (the original one), then call zoom() to enlarge the area of interest. At this point the zoom() does not do what it is expected. I tried this on two different W2k machines.

Maybe this will help you to find out what is going on.

I appreciate your help, thanks,
Carl

-----Original Message-----
From: Robin Cornelius [mailto:robin.cornelius@xxxxxxxxxxxxxx] 
Sent:	Saturday, 02 February 2002 14:34
To:	femm@xxxxxxxxxxxxxxx
Subject:	RE: [femm] Lua zoom & grid


Hi again,

looking at the zoom code I cannot see anything obvious that would stop it
from working in either the pre or post. Zoom works in the pre and post and
seems to work nested in functions on my system. The display can end up a
mess or not updated when running lua as it steals all the idle time of the
process (femme or femme view) so windows never gets to call the functions to
redraw the display.

Unless David or someone else spots an error I would suggest adding a
refreshview() after the zoom command if you want to see what is
happening.That forces a redraw of the window.

Regards

Robin




 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/