IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Outils Delphi Discussion :

[Inno Setup] Musique pendant l'installation


Sujet :

Outils Delphi

  1. #21
    Membre habitué Avatar de Rahim-US
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juillet 2009
    Messages
    151
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Algérie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Juillet 2009
    Messages : 151
    Points : 134
    Points
    134
    Par défaut
    je pense que je vien de trouvé une solution pour le survole du curseur.
    voila comment, j'ai modifié ça:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
     
    procedure PlayButtonLabelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
    begin
      if PlayButtonLabel[TLabel(Sender).Tag].Enabled then
         PlayButtonImage[TLabel(Sender).Tag].Left:=-64
    end;
     
    procedure PlayButtonLabelMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
    begin
      PlayButtonImage[TLabel(Sender).Tag].Left:=-32
    end;
     
    procedure PlayButtonLabelMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
    begin
      if PlayButtonImage[TLabel(Sender).Tag].Left <> -96 then PlayButtonImage[TLabel(Sender).Tag].Left := -256
      PlayButtonImage[TLabel(Sender).Tag].Left := 0
    end;
    et j'ai ajouté ça
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
    begin
      PlayButtonImage[TLabel(Sender).Tag].Left := -32
    end;
    et ça aussi
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
     
        begin
          MouseLabel := TLabel.Create(WizardForm)
          MouseLabel.Width := WizardForm.Width
          MouseLabel.Height := WizardForm.Height
          MouseLabel.Autosize := False
          MouseLabel.Transparent := True
          MouseLabel.OnMouseMove := @MouseMove
          MouseLabel.Parent := WizardForm
     
          PlayPanel:=TPanel.Create(WizardForm)
          PlayPanel.Left:=10
          PlayPanel.Top:=WizardForm.ClientHeight - 38
          PlayPanel.Width:=ScaleY(31)
          PlayPanel.Height:=ScaleX(33)
          PlayPanel.Parent:=WizardForm
          PlayButtonPanel[APlayButtonIndex]:=PlayPanel
     
     
          PlayImage:=TBitmapImage.Create(WizardForm)
          PlayImage.Width:=96
          PlayImage.Height:=33
          PlayImage.Enabled:=False
          PlayImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\_MusicPlayButton.bmp'))
          PlayImage.Parent:=PlayPanel
          PlayImage.ReplaceColor:=$E2E2E2
          PlayImage.ReplaceWithColor:=clBtnFace
          PlayButtonImage[APlayButtonIndex]:=PlayImage
     
           with TLabel.Create(WizardForm) do begin
          Tag:=APlayButtonIndex
          Parent:=PlayPanel
          Width:=PlayPanel.Width
          Height:=PlayPanel.Height
          Transparent:=True
          Cursor := crHand
          OnClick:=@PlayButtonOnClick
          OnDblClick:=@PlayButtonOnClick
          OnMouseDown:=@PlayButtonLabelMouseDown
          OnMouseUp:=@PlayButtonLabelMouseUp
          OnMouseMove := @PlayButtonLabelMouseMove
          end
          PlayLabl:=TLabel.Create(WizardForm)
          PlayLabl.Left:=23
          PlayLabl.Top:=5
          PlayLabl.Autosize:=True
          PlayLabl.Alignment:=taCenter
          PlayLabl.Transparent:=True
          PlayLabl.Font.Color:=clWhite
          PlayLabl.Parent:=PlayPanel
          PlayLabl.OnClick:=@PlayButtonOnClick
          PlayLabl.Hint := 'Play Music'
          PlayLabl.ShowHint := True
          PlayLabl.OnDblClick:=@PlayButtonOnClick
          PlayLabl.OnMouseDown:=@PlayButtonLabelMouseDown
          PlayLabl.OnMouseUp:=@PlayButtonLabelMouseUp
          PlayButtonLabel[APlayButtonIndex]:=PlayLabl
        end
     
     
        Begin
          StopPanel:=TPanel.Create(WizardForm)
          StopPanel.Left:=43
          StopPanel.Top:=WizardForm.ClientHeight - 38
          StopPanel.Width:=ScaleY(31)
          StopPanel.Height:=ScaleX(33)
          StopPanel.Parent:=WizardForm
          StopButtonPanel[AStopButtonIndex]:=StopPanel
     
          StopImage:=TBitmapImage.Create(WizardForm)
          StopImage.Width:=96
          StopImage.Height:=33
          StopImage.Enabled:=False
          StopImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\_MusicStopButton.bmp'))
          StopImage.Parent:=StopPanel
          StopImage.ReplaceColor:=$E2E2E2
          StopImage.ReplaceWithColor:=clBtnFace
          StopButtonImage[AStopButtonIndex]:=StopImage
     
           with TLabel.Create(WizardForm) do begin
          Tag:=AStopButtonIndex
          Parent:=StopPanel
          Width:=StopPanel.Width
          Height:=StopPanel.Height
          Transparent:=True
          Cursor := crHand
          OnClick:=@StopButtonOnClick
          OnDblClick:=@StopButtonOnClick
          OnMouseDown:=@StopButtonLabelMouseDown
          OnMouseUp:=@StopButtonLabelMouseUp
          end
          StopLabl:=TLabel.Create(WizardForm)
          StopLabl.Left:=23
          StopLabl.Top:=5
          StopLabl.Autosize:=True
          StopLabl.Alignment:=taCenter
          StopLabl.Transparent:=True
          StopLabl.Hint := 'Stop Music'
          StopLabl.ShowHint := True
          StopLabl.Font.Color:=clWhite
          StopLabl.Parent:=StopPanel
          StopLabl.OnClick:=@StopButtonOnClick
          StopLabl.OnDblClick:=@StopButtonOnClick
          StopLabl.OnMouseDown:=@StopButtonLabelMouseDown
          StopLabl.OnMouseUp:=@StopButtonLabelMouseUp
          StopButtonLabel[AStopButtonIndex]:=StopLabl
          end
    la le bouton play se change dans les 3 cas.
    Waw
    je vais dormir 24h (trés fatigué) aprés je vais reprendre pour réglé le 3ème problème
    du bouton Play/Pause

  2. #22
    Membre habitué Avatar de Rahim-US
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juillet 2009
    Messages
    151
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Algérie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Juillet 2009
    Messages : 151
    Points : 134
    Points
    134
    Par défaut
    rien de nouveau, je cherche mais rien trouvé?
    j'ai une petite question, si quelqu'un peut me confirmé comment faire pour caché un bouton ou une immage en delphi.
    je pense que le code d'inno setup ressemble beaucoup le delphi.

  3. #23
    Membre habitué Avatar de Rahim-US
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juillet 2009
    Messages
    151
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Algérie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Juillet 2009
    Messages : 151
    Points : 134
    Points
    134
    Par défaut
    A l'aide SVP....

  4. #24
    Membre habitué Avatar de Rahim-US
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juillet 2009
    Messages
    151
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Algérie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Juillet 2009
    Messages : 151
    Points : 134
    Points
    134
    Par défaut
    Problème résolu, voila le setup final

  5. #25
    Membre habitué Avatar de Rahim-US
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juillet 2009
    Messages
    151
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Algérie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Juillet 2009
    Messages : 151
    Points : 134
    Points
    134
    Par défaut
    si quelqu'un a besoin du code contacté moi.

  6. #26
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Octobre 2010
    Messages
    1
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2010
    Messages : 1
    Points : 1
    Points
    1
    Par défaut Cool
    Heu stp eske k'i y a moyen ke tu me passe le setup conpilé ou les source avec les png
    MERCI d'avance

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 2 PremièrePremière 12

Discussions similaires

  1. [Inno Setup] Detection de JRE installé
    Par JuFromParis dans le forum Outils
    Réponses: 3
    Dernier message: 12/10/2011, 11h50
  2. Réponses: 2
    Dernier message: 24/11/2010, 11h43
  3. Réponses: 13
    Dernier message: 01/12/2009, 23h13
  4. [Inno Setup] dll pendant désinstallation
    Par Calys dans le forum Outils
    Réponses: 3
    Dernier message: 30/06/2008, 19h12
  5. [Inno Setup] Variable d'environnement install path
    Par 0xYg3n3 dans le forum Outils
    Réponses: 5
    Dernier message: 19/10/2007, 10h38

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo