Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Graphic windows properties

3 views
Skip to first unread message

Fred

unread,
Sep 17, 2009, 8:38:44 AM9/17/09
to
Hy evary one !

Is-it possible to avoid someone to move a graphic windows with a
mouse ?

fake...@invalid.domain

unread,
Sep 18, 2009, 12:04:45 AM9/18/09
to
In article <fee2faa7-b4d1-4d4f...@d34g2000vbm.googlegroups.com>,


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

Red

unread,
Sep 21, 2009, 9:25:24 AM9/21/09
to
Hi all,

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.

0 new messages