Re: hypertext documentation

From: [at]} <robert.d.campbell{>
Date: Tue, 11 Dec 2001 09:11:35 +0000 (GMT)

This is how I solve the Open in Browser problem;
surely there is an easier way!


Robert Campbell


PROCEDURE SetToTop* (title : Views.Title) : BOOLEAN;
    win : Windows.Window;
    wTitle : Views.Title;
    wnd : USER32.Handle;
    ret : INTEGER;
    win := Windows.stdDir.First ();
    WHILE win # NIL DO
      win.GetTitle (wTitle);
      IF wTitle = title THEN
        wnd := win(HostWindows.Window).wnd;
        ret := USER32.BringWindowToTop (wnd);
        ret := USER32.ShowWindow (wnd, USER32.SWShowNormal);
      win := Windows.stdDir.Next (win)
  END SetToTop;

END LibMisc2

    ok := LibMisc2.SetToTop (title$);
    IF ~ok THEN StdApi.OpenBrowser (path, title, v) END;

> Hello Blackbox users,
> I am writing some hypertext documentation for an application. I use
> StdCmds.OpenBrowser in the hypertext links to open new documents. What I
> would really like to do is bring the document to the front of the window
> stack if it is already open instead of opening a second copy of it. Does
> anyone know how to do this?
> Thanks
> Andrew
> --------------------------------------------


To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
Received on Tue Dec 11 2001 - 09:11:35 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:45 UTC