Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2007
    Posts
    18

    combobox problem plz help

    i want to put 4 pictures in combobox, and if i want to open one of them :

    i have to select one picture to see it on the main page i mean near combobox

    before i open it , then i click on button to open it .

    i don`t know if you undestant that or not

    if you have an example for that it will be helpfull

    many thanks

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    how do you want to open the file? Load it into an image object within AMS or open it in the systems configured image viewer/manipulation software?
    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

  3. #3
    Join Date
    Mar 2007
    Posts
    18
    Load it into an image object within AMS

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    I guess this is what I would do.

    Load the image information into the Combobox with the filename is the CB Text and the full path to the file would be the DB Data component.

    Place script into the On Select for the Combobox (or the On Click for a button) that would identify the selected object in the CB and then obtain the full path to the file from the Data portion of the selected object. Store this in a variale.

    Use the variable from the previous step to load into an image object. Before doing this you may want to do a quick check to ensure that the image object actually exists before trying to load it.

    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

  5. #5
    Join Date
    Mar 2007
    Posts
    18
    sorry TJ_Tigger you know i can`t follow you like that , can you make for me

    just small example for one picture , if you can

    and sorry to take from your time

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    if i understand you correctly then this example should suit your needs
    Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  7. #7
    Join Date
    Mar 2007
    Posts
    18
    thank you RizlaUK you always ready for help ... you are the best

    many thanks

  8. #8
    Join Date
    Mar 2007
    Posts
    18
    RizlaUK i want to view the picture when i select it from the combobox

    then i click the button to open it

    this what i want .....

    i didn`t sleep last night till 4 morning ....realy it make me sick

  9. #9
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by jack View Post
    RizlaUK i want to view the picture when i select it from the combobox

    then i click the button to open it

    this what i want .....

    i didn`t sleep last night till 4 morning ....realy it make me sick
    Can you show us your project or the code from your project and we can help you move forward. Sorry to hear about you being sick.

    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

  10. #10
    Join Date
    May 2006
    Posts
    5,380
    hey jack, i agree with tigg, it helps us and you if you post the code you have and we will look from there

    but for what you want to do, i would suggest not spending hours on end trying and spend a few hours researching the available functions and what thay do from the manual

    to load a image from a combobox (assumeing the path to the file is already in the data field of the combo)

    Code:
    selData = ComboBox.GetItemData("ComboBox1", e_Selection);
    Image.Load("Image1", selData);
    and to open the image in the users default image viewer
    Code:
    sel = ComboBox.GetSelected("ComboBox1");
    selData = ComboBox.GetItemData("ComboBox1", sel);
    File.Open(selData, "", SW_SHOWNORMAL);
    of course these are basic codes, you should add some error checking along the way
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. problem with Combobox
    By mhzn2010 in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 07-23-2006, 04:11 AM
  2. Problem installing fonts
    By ByronFS in forum Setup Factory 7.0
    Replies: 5
    Last Post: 05-08-2006, 12:23 PM
  3. Editable combobox and z-order problem
    By crewsr in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 05-05-2006, 10:30 AM
  4. ComboBox problem
    By andrewr in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 05-06-2005, 09:49 AM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM

Posting Permissions

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