View Single Post
  #63  
Old 30-06-2018, 00:42
Th3Raven's Avatar
Th3Raven Th3Raven is offline
Registered User
 
Join Date: Mar 2012
Location: Romania
Posts: 90
Thanks: 57
Thanked 54 Times in 33 Posts
Th3Raven is on a distinguished road
Send a message via Yahoo to Th3Raven
Quote:
Originally Posted by KaktoR View Post
If you used BASS library, there is a example next to it.

You must create a new button

example
Code:
[_code]
var
MusicButton: TNewButton;

procedure MusicButtonClick(Sender: TObject);
  begin
    case BASS_ChannelIsActive(SoundStream) of
      BASS_ACTIVE_PLAYING:
      begin
        if BASS_Pause then
          MusicButton.Caption := 'Music ON';
      end;
      BASS_ACTIVE_PAUSED:
      begin
        if BASS_Start then
          MusicButton.Caption := 'Music OFF';
      end;
    end;
  end;
Then you habe to place the button somewhere on installer surface
yes i used BASS Library and when i will have time i will try add the button too. to see how will work. One question. In what section i add the code above? then i create the button as the library with the coordonates too right ?
Reply With Quote