1. Position Control
Hello all,
I have been trying to place a textbox at the bottom of a window based on the
size of the window. So no matter what size the window is, the textbox is
always positioned at the bottom. I cannot seem to get it right. Anyone have
any ideas?
Thanks in advance,
Chris B
2. Re: Position Control
Chris B wrote:
>
> Hello all,
>
> I have been trying to place a textbox at the bottom of a window based on the
> size of the window. So no matter what size the window is, the textbox is
> always positioned at the bottom. I cannot seem to get it right. Anyone have
> any ideas?
If you are using win32lib ...
procedure Resize_Window(integer self, integer event, sequence parms)
setRect( myTextBox, boxleft, {w32AltEdge,-boxheight}, boxwidth, boxheight, 1)
end procedure
setHandler(theWindow, w32HResize, routine_id("Resize_Window"))
--
Derek
3. Re: Position Control
Thanks Derek :)
>
>
>posted by: Derek Parnell <ddparnell at bigpond.com>
>
>Chris B wrote:
> >
> > Hello all,
> >
> > I have been trying to place a textbox at the bottom of a window based o=
n=20
>the
> > size of the window. So no matter what size the window is, the textbox i=
s
> > always positioned at the bottom. I cannot seem to get it right. Anyone=
=20
>have
> > any ideas?
>
>If you are using win32lib ...
>
>}}}
<eucode>
>procedure Resize_Window(integer self, integer event, sequence parms)
> setRect( myTextBox, boxleft, {w32AltEdge,-boxheight}, boxwidth,=20
>boxheight, 1)
>end procedure
>setHandler(theWindow, w32HResize, routine_id("Resize_Window"))
></eucode>
{{{
>
>--
>Derek
>
>
>
>