Announcement

Collapse
No announcement yet.

Button Click

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Button Click

    Hi All, I am extremely new to the 4DGL environment and language and have a couple of questions. I am attempting to play a click sound when the screen is touched on the 032-P1T I am using. The kicker is I want to use file_LoadImageControl to cycle into the down version of the button and play a sound when I do. There doesn't appear to be a way to have 2 files mounted simultaneously. Both the image control and the sound file. I want it to function like an iPhone Any thoughts or suggestions?

    Thanks,
    Thad
    If email spam were the edible Spam, there would be no world hunger.

  • #2


    Anyone?
    If email spam were the edible Spam, there would be no world hunger.

    Comment


    • #3


      Hi Thad,
      once the drive is mounted you can have more than one file opened no problems (as long as you have enough memory). Just keep track of the file handle in a variable so you can close it properly when you have finished with it. For playing a wave file though, it is closed automatically when the sound has finished playing. For what you require I suggest you have a look at the PicasoInsanityCheck.4DG example program which should help.
      Regards,
      Dave

      Comment


      • #4


        Thanks Dave!
        If email spam were the edible Spam, there would be no world hunger.

        Comment

        Working...
        X