|
-
May 20th, 2000, 08:38 PM
#1
Thread Starter
Fanatic Member
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]
-
May 20th, 2000, 08:42 PM
#2
Fanatic Member
In the menu editor make sure that checked is checked for the menu in question. Then there is one simple statement.
mnuoff.checked = true
-
May 20th, 2000, 08:45 PM
#3
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
-
May 20th, 2000, 08:55 PM
#4
Thread Starter
Fanatic Member
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]
-
May 20th, 2000, 09:00 PM
#5
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]
-
May 20th, 2000, 09:05 PM
#6
Thread Starter
Fanatic Member
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]
-
May 20th, 2000, 09:07 PM
#7
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.
-
May 20th, 2000, 10:12 PM
#8
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|