Results 1 to 8 of 8

Thread: How do you .....

  1. #1

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604

    Exclamation

    how do you make an item on a menu become checked

    so i can set this statement

    if mnuoff (you enter the bit to make it checked) then
    mciSendString "close background", 0, 0, 0
    end if

    cheers

    Merlin ?

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655

    Cool

    In the menu editor make sure that checked is checked for the menu in question. Then there is one simple statement.

    mnuoff.checked = true

  3. #3
    Guest
    Make a mnu with the name of mnuClose and put the following code into it.

    Code:
    Private Sub mnuClose_Click()
    
       If Not mnuClose.Checked = True Then 
           mnuClose.Checked = True
           mciSendString "close background", 0, 0, 0
       Else
           mnuClose.Checked = False
       End If
    
    End Sub

  4. #4

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604

    Talking

    i still have a little problem

    i need to be able to uncheck and check the same menu item
    so if it is unchecked it stops the music and if it is checked then it will play the music

    Cheers

    Merlin ?

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

  5. #5
    Guest
    Try this code. I just modified my other code a bit to fit your needs. This one should work.

    Code:
    Private Sub mnuClose_Click()
    
       If Not mnuClose.Checked = True Then 
          mnuClose.Checked = True
          mciSendString "open C:\Mymidi.mid type sequencer alias       background", 0, 0, 0
          mciSendString "play background", 0, 0, 0
       Else
          mnuClose.Checked = False
          mciSendString "close background", 0, 0, 0
       End If
    
    End Sub
    [Edited by Megatron on 05-21-2000 at 10:04 AM]

  6. #6

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604

    Talking

    thanks megatron it works the way it is ment to now

    Merlin ?

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

  7. #7
    Guest
    By the way, if you already have your open statement in your Form's Initalize event you can just use play to play the music and pause to stop the music. Then when you want to End your program, use the close statement.

  8. #8

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604

    Cool

    MEGATRON !!!

    the midi plays but when it gets to the end it stops

    how can i make the midi play all of the time until

    the menu is unchecked

    PLEASE HELP ME

    Merlin ?

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

Posting Permissions

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



Click Here to Expand Forum to Full Width