Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 13 of 13
  1. #1
    Join Date
    Apr 2004
    Posts
    6

    Embeding Window in a Page

    I am working on a user interface for a University competition and need some help. I have a handful of 3rd part apps that I want to load (upon click of a button) and have embeded or atleast have the appearence of being embeded in the same page as the app-initiating button... I dont know how clear that was.
    I could not find a way of embeding the .exe in each page. However, I am getting it open. Does anyone have direction as to how I may:
    (1) size and position the .exe window to be centered and taking up ~60% of the screen... and then be pinned down so the user cannot move it once launched, at runtime.
    (2) how to manipulate the window handle to perhaps modify the window to be absent of frames and borders through api mods... giving the impression of being embeded into the page.

    let me know if I'm not being clear. This forum has helped me much thus far... and this is my first post!!! yeah!!!

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Worm had a .dll once, I don't know if that will do the trick, but there's no way to embed an application window within your application window just in AMS using standard actions. One would need a .dll or plug-in to do that i think.

    BTW if you use Worm's .dll to enter a competition it's a good idea to name him in your credits so that your instructors are clear on who built the technology for the contest entry.

    Best of luck! Let us know how you place...

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Apr 2004
    Posts
    6
    Ill try worm's .dll and give props as needed.
    many thanks... any other suggestions... anyone?

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    This is by no means a perfect solution. But it should give you a starting point. This uses the User32.DLL's SetParent function to embed Notepad into the app. Make sure to look at the Projects On Shutdown event. You need to be sure to close the window you've embedded too.


    Quote Originally Posted by joey1barnes
    I am working on a user interface for a University competition and need some help. I have a handful of 3rd part apps that I want to load (upon click of a button) and have embeded or atleast have the appearence of being embeded in the same page as the app-initiating button... I dont know how clear that was.
    I could not find a way of embeding the .exe in each page. However, I am getting it open. Does anyone have direction as to how I may:
    (1) size and position the .exe window to be centered and taking up ~60% of the screen... and then be pinned down so the user cannot move it once launched, at runtime.
    (2) how to manipulate the window handle to perhaps modify the window to be absent of frames and borders through api mods... giving the impression of being embeded into the page.

    let me know if I'm not being clear. This forum has helped me much thus far... and this is my first post!!! yeah!!!
    Attached Files

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    WOW that is fancy.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  6. #6
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    I'm a fancy Worm... yes I is!

    Quote Originally Posted by TJ_Tigger
    WOW that is fancy.

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    ---> Teehee

    Corey Milner
    Creative Director, Indigo Rose Software

  8. #8
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    That is interesting! Thanks for the sample Worm.

    Very swanky!
    Intrigued

  9. #9
    Join Date
    Apr 2004
    Posts
    6
    I shall give my props as well. I will document the source accordingly.

  10. #10
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    No need on my part. This nothing you couldn't have figure out. It's not using a DLL I created, it uses a function already in windows.

    Quote Originally Posted by joey1barnes
    I shall give my props as well. I will document the source accordingly.

  11. #11
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Worm,

    Is there a way to check if the app that is now within the AMS app is minimized and if so to restore it. when you minimize the app within it's parent window of AMS it disappears. Or is there a way to remove the title bar once you have placed it within your AMS project.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  12. #12
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    You could use the User32.DLL's IsIconic function to determine if it is minimized, returns a non zero long if it is.

    All API IsIconic Link

    There probably is a way to crop the title bar using SetWindowLong and messing with the Window Style or the Extended Style, but I've never done it myself.

    The biggest caveat that I found was that the "hosted" app doesn't seem to redraw very well. If you find away around that let me know

    Quote Originally Posted by TJ_Tigger
    Worm,

    Is there a way to check if the app that is now within the AMS app is minimized and if so to restore it. when you minimize the app within it's parent window of AMS it disappears. Or is there a way to remove the title bar once you have placed it within your AMS project.

  13. #13
    Join Date
    Feb 2005
    Posts
    15
    This post is kind of old but I had an idea, maybe it has been done or fixed already?

    It locks up but on page show...

    while (1 < 2) do
    Page.Redraw();
    end

    My attempt was to redraw the screen (hoping it would not eat the processor like a good steak) at all times, in turn hopefully making notepad show also.

    hehe Does not work as I expected

    -Nirus

Similar Threads

  1. Window Setting, Page Size, Comp. Exe don't work
    By Stefan_M in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 01-23-2004, 11:03 AM
  2. Inheriting Page Properties
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:21 PM
  3. Setting Page Transition Effects
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-24-2003, 01:08 PM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM
  5. How to open a web page in pop up window?
    By livio in forum AutoPlay Media Studio 4.0
    Replies: 11
    Last Post: 09-16-2002, 01:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts