Re: Allow activeX form to resize?

From: Tony Mountifield (tony_at_softins.clara.co.uk)
Date: 09/05/04


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


Relevant Pages

  • Re: Borland, how much for purchasing rights to develop a 64bits Delphiversion?
    ... really unnecessary to port Delphi to .NET. ... Longhorn and its satellite tools won't be here until circa 2007. ... market window"), then there timing was sadly off by quite a few years. ...
    (borland.public.delphi.non-technical)
  • Re: HtmlHelp: Reference an anchor on a html page inside the Delphi-application?
    ... > this html file is shown and automatically jumped to the anchor, ... [ALIAS] ... Add the prefix "$global_" to the name of the help window in which ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Alphablending
    ... Since its such a small work in Delphi, this cant be asking to much? ... You're *not* building the window in assembly here, ... And at the end of the day, I'd just use the Delphi form designer anyway. ... Does your window frame "theme" ...
    (alt.lang.asm)
  • Re: Note to AlanGLLoyd and Maarten Wiltink
    ... > I decided to do it that way because my main Window (i.e. frmStartUp) ... destroying its Delphi object when the form is closed. ... cue, hiding them on close, and destroying them on shutdown. ...
    (alt.comp.lang.borland-delphi)
  • Re: Auto Fill Web Forms
    ... > fill in web forms from my Delphi application. ... > Basically I want my Delphi app to open a browser window (via ... > the browser displays. ... HTTP request being sent to a web server... ...
    (alt.comp.lang.borland-delphi)