Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Apr 2008
    Posts
    5

    Noob needs help!

    Hey all! I purchased Autoplay about 2 weeks ago and am very happy with its capabilities thus far. However, I'm stuck and hope somebody here can help! I'm setting up a touchscreen kiosk that will be un-manned. I want passers-by to be able to get a quote for a desired product. I figured out how to assign values to a checkbox and then have the values added/subtracted on a pushbutton. The problem now is that I need them to be able to use an up/down arrow to increase/decrease a number (representing length in this case), in which every number is assigned a different value that will calculate into the pushbutton estimate. Any suggestions?? Thanks in advance!!

  2. #2
    Join Date
    Apr 2007
    Location
    Suffolk, UK
    Posts
    176
    try using a combobox. or you could use a very short listbox. or you could do something with an input such as:
    Code:
    inText = Input.GetText("your input");
    numString = String.ToNumber(inText);
    tSum = your calculation using numString.(e.g. (numString*20)/10 etc)
    hope that helps.

  3. #3
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Another way is to use a slider and thus increase/decrease a value.

    Yossi

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Or use e_Key to increment/decrement your value.

  5. #5
    Join Date
    Apr 2008
    Posts
    5
    Thanks guys! I'm anxious to try these actions!!

  6. #6
    Join Date
    Apr 2008
    Posts
    5
    Ok. Discovered problem immediately. Users will not have a keyboard or mouse - touchscreen only. I apologize for not stating that initially. So, back to the original problem I guess...looking to have a pushbutton UP and DOWN arrow to change the numeric value which in turn will change value in price quote box. Thank you!!!

  7. #7
    Join Date
    Apr 2007
    Location
    Suffolk, UK
    Posts
    176
    you could still drag the slider.

  8. #8
    Join Date
    Apr 2008
    Posts
    5
    Ok, I ran the slider idea past my client and he's not super thrilled about that option. He's pretty set on an up and down arrow to increase/decrease the value (remember touchscreen only - no keyboard or mouse). I spent a few hours trying to figure it out this morning and am stuck. Can somebody give some directions on how to do this? And is there a way to have a value appear in an empty box instantly when options are selected both in checkboxes and in the up/down arrow box? Kinda like microsoft excel? I do appreciate all the help/advice thus far! You guys have been very helpful! thank you!

  9. #9
    Join Date
    Aug 2003
    Posts
    2,427
    It's very straightforward to increment and decrement a value in a button on click. You can do so either with integer values or in decimals parts e.g. x=x+0.25.

    You can limit the range by using an if loop.

  10. #10
    Join Date
    Aug 2003
    Posts
    2,427
    If I understand what you want this example might help. When you click the buttons, the value is incremented or decremented by 0.25. It will not show less than 0 or more than 3 and it will not display the values 0.25 or 1.25 or 2 or 2.75.

  11. #11
    Join Date
    Apr 2008
    Posts
    5
    Yes sir, that's exactly what I'm lookin for with the up/down arrows! Thank you!! I should have been able to figure that one out! Now do you know how to assign a value to each integer and have it instantly appear in another text box?

    EX. User clicks UP ARROW till he stops on a certain number (say 10). Now 10 has a dollar value of $100 and that will be added to "QUOTE BOX" instantly - just like Excel does with its =sum(a1,a10) command.

    I have assigned a value to some checkbox items as well but can't get a "QUOTE BOX" to reflect their amount unless I use a "calculate" button - which is unacceptable in this case. Heres what I have at this point:

    CHECKBOX ITEM 1
    if quote then
    quote = quote;
    else quote = 0;
    end
    item1 = 85.00
    result = CheckBox.GetChecked("item1num");
    if result then
    quote = quote + item1
    else quote = quote - item1;
    end
    --Dialog.Message("quote",quote)

    CHECKBOX ITEM 2
    if quote then
    quote = quote;
    else quote = 0;
    end
    item2 = 50.00
    result = CheckBox.GetChecked("item2num");
    if result then
    quote = quote + item2
    else quote = quote - item2;
    end
    --Dialog.Message("quote",quote)

    QUOTE BUTTON
    if quote then
    quote = quote;
    else quote = 0;
    end
    --var1 = 50;
    Button.SetText("quote",quote);
    --button.settext("quote","button text");

    I need to use an alternate quote box - not a button. Thank you for all the help!!!

  12. #12
    Join Date
    Aug 2003
    Posts
    2,427
    Just add code to the on click of each button to set the value of your other objects, do calculations or whatever.

  13. #13
    Join Date
    Aug 2003
    Posts
    2,427
    It sounds like your best course of action would be to write a function that gets values, does the calculations and then updates displayed items. You could call it from any event then.

    ** Please can we have the forum edit time out period extended **

Similar Threads

  1. NOOB Question: Desktop/Wallpaper refresh
    By Denniz03 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 04-04-2006, 11:40 PM
  2. Noob ? for toggling text on a button
    By Robfr in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 06-04-2005, 02:39 PM
  3. C++ plugin for AMS noob
    By reynoldlariza in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 01-31-2005, 11:03 AM
  4. Help Please - Find & Rename - Noob
    By Grim in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 04-23-2004, 08:14 AM
  5. Sorry I'm a new noob...Everything looks ok
    By krypto in forum TrueUpdate 1.0
    Replies: 1
    Last Post: 01-23-2004, 03:08 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