For Programmers: Free Programming Magazines  


Home > Archive > Clarion > August 2006 > Re: Postioning a window









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Postioning a window
Nelson Kaye

2006-08-21, 7:55 am

Andre,

To clarify my needs, during system development I want to be able to set the
position of the window in the properties position tab to specific
coordinates..

To know what coordinates I want, I start the program, then move the screen
to where I want it. I then need the coordinates for where I just positioned
the screen, so that I can then enter these coordinates in the properties
position tab and recompile

If there was some way, during run time of dragging the window to a desirable
position, and then inserting a temporary embed to get the new position, I
could then enter the coordinates in the position tab and recompile.

Nelson.


"Andre Engelbrecht" <fivetalents@telkomsa.net> wrote in message
news:A921.1156152602.7981@discuss.softvelocity.com...
> I use this if I want to stop the user from changing the window position
>
> In Window Manager/Init, after Open the window
>
> !Get X and Y Positions
> GetPosition(0,x,y,Width,Height)
>
> In Window Manager/TakeEvent
>
> !Set/Reset X and Y Positions
> If Event:Move
> SetPosition(0,x,y,Width,Height)
> End
>
>
> "Nelson Kaye" <nkaye1@nyc.rr.com> wrote in message
> news:A921.1156144980.7965@discuss.softvelocity.com...
position[color=darkred]
that[color=darkred]
ini[color=darkred]
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com