Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15
  1. #1
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336

    Lightbulb Dailog combobox??

    Is it posible to have a dialog popup with a combobox?

    so that what ever the user chooses in the combo box is saved to a string when the OK button is pressed?


    dont know if this is posible...
    the workaround would be to have an extra page that shows first and then have the combobox on that.... But the popup dialog would be nicer...

    Anyone have any surgestions on this?

    Jonas DK

  2. #2
    Join Date
    Jul 2003
    Posts
    712
    Hello,

    There's currently no way in AutoPlay Media Studio 6.0 to pop up a dialog like that. You're correct that the best work-around would be a seperate page.

    With that being said, I suppose you could make a seperate app to mimic the dialog, then use a File.Run action to open it . . . but you'd be adding ~1mb overhead to your app.

    Food for thought anyhow.

    Desmond.

  3. #3
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336
    [QUOTE=Desmond]

    . . . but you'd be adding ~1mb overhead to your app.
    QUOTE]

    Size is not a matter, the app I'm working on is build to run from a local network server.
    so splitting into smaller apps is a good Idea

    But can I get the dialog app to send the returnstring straight to the main app?

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    I know that I created a DLL to do this exact thing Jonas, I can't seem to see where I posted it here, so that means its on my machine at home, or on my now dead notebook hard drive

    I'll take a look tonight and post back.

    BTW, it's along the lines of this, only with a combo as you suggested
    http://www.indigorose.com/forums/sho...60&postcount=2

  5. #5
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336
    Quote Originally Posted by Worm
    I know that I created a DLL to do this exact thing Jonas, I can't seem to see where I posted it here, so that means its on my machine at home, or on my now dead notebook hard drive

    I'll take a look tonight and post back.

    BTW, it's along the lines of this, only with a combo as you suggested
    http://www.indigorose.com/forums/sho...60&postcount=2
    Yes, I get the base idea and it is what I need only with the combobox instead...

    I am looking forward to see if you find it...

    cheers,

    Jonas

  6. #6
    Join Date
    Jul 2003
    Posts
    712
    Quote Originally Posted by Jonas DK
    But can I get the dialog app to send the returnstring straight to the main app?
    Sure. Let's say App1 is yoru main app, and App2 is your dialog app.

    In app 1, use a File.Run action with 'WaitForReturn' set to true.

    In app 2, use Application.Exit(nReturnCode); ... and make sure you specify a return code.

    Then, when app 2 is closed (the ok button is pressed), app 1 gets the return code.

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Another seamless albeit snaky workaround is to create a duplicate-looking page with an image of a pop-up dialog in the center, with a combobox atop it. Then just set the OK button to hop back to the page you came from. This is complete monkey soccer to some extent but it's totally seamless so it might work well for certain scenarios, plus it gives you the ability to use any type of object in your "pop-up".

  8. #8
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336

    Thumbs down

    Like your idea Corey but I think Ill stick to desmonds returncode.. if worm cant find the dll he made for just this kind of problem.

    the thing is that the dialog is loaded before the app as a dialog.message on the project startup.

    and the choice the user makes on the dialog combobox sets the dynamics of the projekt to fit the users choice.
    so that for instance if you choose Math 101 on the dialog you will only be showen the easy math that is for your level and so forth if you choose advanced math you get more subjects to studie and so on....
    so depending on the choice a different lua file is called into existanse from the script folder to mold the application.

    I think its cool... by this you have 6 totally different application i one depending on you choice.

  9. #9
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Here tis... I had to rewrite it. It seems the source died with my notebook hard drive, now I'm wondering what else I didn't get "backed up"; YIKES!

  10. #10
    Join Date
    Jul 2003
    Posts
    712
    Quote Originally Posted by Jonas DK
    the thing is that the dialog is loaded before the app as a dialog.message on the project startup.
    You could use corey's technique with your project . . . it'd just have to be the first page. then, subject to the choice, it'd take you to a specified page, or set the dynamics, etc. It's possible, anyways.

    But worm's DLL's are always an excellent solution to any problem!

  11. #11
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Worm
    Here tis... I had to rewrite it. It seems the source died with my notebook hard drive, now I'm wondering what else I didn't get "backed up"; YIKES!
    Worm that is great. Any way you could add a scroll bar to the dropdown box if the drop down box is larger than 4 items.

    Tigg
    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
    I can, but to do that would mean that the end user would need to have certain version of the Windows Common Controls. The good news is that the version that would be needed is installed with IE4. So, it's very likely that it's a safe bet.

  13. #13
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Worm
    I can, but to do that would mean that the end user would need to have certain version of the Windows Common Controls. The good news is that the version that would be needed is installed with IE4. So, it's very likely that it's a safe bet.
    Cool no biggie. I was confused when I first looked at the list because I was expecting to see a larger list or a scroll bar to show there was more information available then what was being displayed.

    Tigg
    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

  14. #14
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    You can disregard my previous post. My mind is very scattered today (every day).

    Here's a new version that allows you to specify the height of the drop down, if the list is larger, the scrollbar becomes active.
    Attached Files

  15. #15
    Join Date
    May 2005
    Posts
    1,115
    Nice .dll Worm, I just saw it.... but I have a question:

    Is it possible to make the dialog child process of the APMS window?
    So that the main window is inactive untill the dialog is closed (preety much like built in dialogs)...
    Also, that the dialog is not shown on the taskbar...
    Last edited by bule; 01-20-2007 at 12:03 PM.
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Need ComboBox To Update Image Object
    By octane6228 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 09-21-2006, 12:10 AM
  2. ComboBox problem
    By andrewr in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 05-06-2005, 09:49 AM
  3. ComboBox display current
    By pjhiggins in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 05-21-2004, 12:14 PM
  4. combobox quizzer
    By dulux1309 in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 04-06-2004, 02:12 PM
  5. Spotlight: ComboBox Object Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-02-2004, 01:10 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