Re: Allow activeX form to resize?
From: Tony Mountifield (tony_at_softins.clara.co.uk)
Date: 09/05/04
- Next message: NEO Développement: "Re: TPageControl under XPMan"
- Previous message: Vertuas: "Re: How to detect clicking of TEdit?"
- In reply to: Tony Mountifield: "Allow activeX form to resize?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 5 Sep 2004 21:25:27 +0000 (UTC)
In article <ch99at$dl8$1@softins.clara.co.uk>,
Tony Mountifield <tony@softins.clara.co.uk> wrote:
> Although I've been writing software for decades, I'm new to Delphi and
> to Windows programming...
>
> I have seen ActiveX applications that occupy the whole of a browser
> window, whatever size that happens to be.
>
> However, when I create an Active Form in Delphi, it is a fixed size on
> an html page.
>
> Can anyone point me at information about how to write a resizing,
> full-window browser-based ActiveX application?
OK, I found it. In the HTML file produced by Web Deploy, there is the
<OBJECT> tag, including WIDTH= and HEIGHT= directives. These are created
with the pixel sizes of the designed form, but it's possible to change
them to WIDTH=100% HEIGHT=100% and remove everything from the <BODY> but
the <OBJECT>. Coupled with <BODY LEFTMARGIN=0 TOPMARGIN=0>, the form
will fill the window whatever its size. Now I just need to work out how
to make the contained controls adapt to the form size.
Thanks for all the responses! ;-/
Cheers
Tony
-- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org
- Next message: NEO Développement: "Re: TPageControl under XPMan"
- Previous message: Vertuas: "Re: How to detect clicking of TEdit?"
- In reply to: Tony Mountifield: "Allow activeX form to resize?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|