Indigo Rose Software
  #1  
Old 09-27-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
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
Reply With Quote
  #2  
Old 09-27-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #3  
Old 09-27-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
[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?
Reply With Quote
  #4  
Old 09-27-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
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
Reply With Quote
  #5  
Old 09-27-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
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
Reply With Quote
  #6  
Old 09-27-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #7  
Old 09-27-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
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".
Reply With Quote
  #8  
Old 09-27-2005
Jonas DK's Avatar
Jonas DK Jonas DK is offline
Forum Member
 
Join Date: Jul 2004
Location: Denmark
Posts: 282
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.
Reply With Quote
  #9  
Old 09-28-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
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!
Reply With Quote
  #10  
Old 09-28-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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!
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #11  
Old 09-28-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
  #12  
Old 09-28-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
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.
Reply With Quote
  #13  
Old 09-28-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
  #14  
Old 09-28-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
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
File Type: apz ComboDlg.apz (27.2 KB, 118 views)
Reply With Quote
  #15  
Old 01-20-2007
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
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...
__________________
Never know what life is gonna throw at you.
(Based on a true story.)

Last edited by bule; 01-20-2007 at 01:03 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need ComboBox To Update Image Object octane6228 AutoPlay Media Studio 5.0 2 09-21-2006 01:10 AM
ComboBox problem andrewr AutoPlay Media Studio 5.0 5 05-06-2005 10:49 AM
ComboBox display current pjhiggins AutoPlay Media Studio 5.0 4 05-21-2004 01:14 PM
combobox quizzer dulux1309 AutoPlay Media Studio 5.0 3 04-06-2004 03:12 PM
Spotlight: ComboBox Object Plugin Desmond AutoPlay Media Studio 5.0 2 03-02-2004 02:10 PM


All times are GMT -6. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software