Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9

Thread: comboBox help

  1. #1
    Join Date
    Jan 2009
    Posts
    9

    Grin comboBox help

    Can you help me? I have a combobox to open maps, I know how to put the names in the ComboBox, but I do not know how to link to the maps that are in Dialog.
    I want to select the name and click on it then shows the dialog or page.
    If anyone can help I appreciate!
    I know it is something simple but I am not getting.

  2. #2
    Join Date
    Apr 2005
    Location
    Allentown, PA.
    Posts
    52
    Not sure exactly what you mean,
    If you post your project, I could possibly help more...

    data = ComboBox.GetText("mappick");
    result = Dialog.Message("Notice", "you picked" ..data.., MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Last edited by drgfx; 02-10-2009 at 02:45 PM.

  3. #3
    Join Date
    Jan 2009
    Posts
    9
    I did a sketch of the project, I wanted the options of the combobox to be the link to draw maps, they tivassem the same function as the buttons, quite simple.
    Attached Files

  4. #4
    Join Date
    Apr 2005
    Location
    Allentown, PA.
    Posts
    52
    I just looked through your project and re-read your posts,
    ..i'm still not exactly sure what you're trying to do, maybe I'm just really tired :(

    What information do you want from the combobox?
    What is the purpose of the buttons in relation to the combobox?
    What information is needed in the show dialog pages?

  5. #5
    Join Date
    Jan 2009
    Posts
    9
    The buttons are there as an example, they are not part of the project.
    What I want is to select the Map1 in the combobox, the Map1 appear (Dialog1);
    Map2 selecting in the combobox show the Dialog2, and so on.
    I put this way to facilitate, but the entire project has more than 80 maps, I was putting everyone on the screen would be much, so I use the combobox.

    exemple:
    Steps:

    - Select the map on the combobox, ex. Map1
    - Opens the onscreen Dialog1

    - Select another map in the combobox, ex Map3
    - Are the dialog3 on screen

    This is the same example of the project, without the buttons.
    When it opens select Map1 all dialog.
    map1 - dialog1
    map2 - dialog2
    map3 - dialog3

    Excuse my English I'm using an online translator! I am Brazilian!
    Attached Files
    Last edited by leex; 02-11-2009 at 01:29 PM.

  6. #6
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    As long as you keep your DialogEX events numbering the same as the Combobox index you can use somethng like this:

    ComboBox On Select
    Code:
    x=e_Selection
    DialogEx.Show("Dialog"..x, true)
    otherwise the coding could get a little messy with a lot of (if) statements.

    I hope that is what you need?
    Last edited by holtgrewe; 02-11-2009 at 01:51 PM.

  7. #7
    Join Date
    Jan 2009
    Posts
    9
    Thank you that was exactly what I wanted, I tried and worked very well.
    I created another combobox named photos, and used the same code, changed the names of dialog for photo and had a sequence, worked perfect, thank you Holtgrewe and Drgfx, you helped me a lot. Thank you.
    Attached Files

  8. #8
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020

    ComboBOx to Dialog Example

    Hi,

    Attached APZ shows another way of making your App.

    A bit more code but more custom control.
    Attached Files
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  9. #9
    Join Date
    Jan 2009
    Posts
    9
    Thanks, Azmanar, very good too.

Similar Threads

  1. Serious ComboBox Issue
    By Dermot in forum AutoPlay Media Studio 7.5 Suggestions
    Replies: 5
    Last Post: 03-10-2008, 08:42 AM
  2. ComboBox Code ?
    By dragon3781 in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 09-24-2007, 02:53 AM
  3. Not understanding ComboBox very well
    By RodB in forum AutoPlay Media Studio 6.0
    Replies: 28
    Last Post: 04-16-2007, 09:00 AM
  4. ComboBox Reset
    By azmanar in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 12-29-2005, 12:46 PM
  5. ComboBox display current
    By pjhiggins in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 05-21-2004, 12:14 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