Is-it possible to avoid someone to move a graphic windows with a
mouse ?
f = scf(0); // assume window 0
f.figure_position=[200,200];
Will move the window without using the mouse, if that is what want.
--
Steven Bellenot http://www.math.fsu.edu/~bellenot
Professor and Associate Chair phone: (850) 644-7405
Department of Mathematics office: 223 Love
Florida State University email: bellenot at math.fsu.edu
I guess it should possible with your window manager but not with
scilab.
By the way if you know the position exactly that you want to keep then
you can use it in a event handler
// Defining a function for event handling
> function MyEventHandler(windowNumber, x, y, eventNumber)
> if ibut == -1000 then return; end;
> if ibut == -1 then
> f= scf(windowNumber); f.figure_position=[200,200];
> end;
> endfunction
// Then you use it the following way :
> plot(1,1);
> seteventhandler('MyEventHandler');
--------------------------
Actually this does not block your window but every time the user
passes the mouse over the plot the window is repositioned.
So that maybe annoying : window jumping
and the plot may be blinking : constant repositioning
Maybe that helps, and you find any better solution tell the community.
Best Regards,
Red.