View Full Version : Dailog combobox??
Jonas DK
09-27-2005, 10:14 AM
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
Desmond
09-27-2005, 11:15 AM
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.
Jonas DK
09-27-2005, 12:33 PM
[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?
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 :eek:
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/showpost.php?p=31460&postcount=2
Jonas DK
09-27-2005, 01:24 PM
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 :eek:
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/showpost.php?p=31460&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
Desmond
09-27-2005, 04:13 PM
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.
Corey
09-27-2005, 04:20 PM
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". :)
Jonas DK
09-27-2005, 06:19 PM
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. :cool
I think its cool... by this you have 6 totally different application i one depending on you choice.
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!
Desmond
09-28-2005, 09:08 AM
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!
TJ_Tigger
09-28-2005, 12:13 PM
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
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.
TJ_Tigger
09-28-2005, 12:21 PM
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
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.
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...
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.