·  Start ·  Programme ·  Codes ·  Tipps ·  ActiveX ·  Tutorials · 



Binden Sie eine Toolbar mit mehreren Buttons in Ihr Projekt ein.

Private Sub Toolbar1_MouseDown(Button As Integer, Shift As Integer, _
				X As Single, Y As Single)
Dim nButton As Button
    If Button = vbLeftButton Then
        For Each nButton In Toolbar1.Buttons
            With nButton
            Select Case X
                Case .Left To .Left + .Width
                Select Case Y
                    Case .Top To .Top + .Height
                        MsgBox nButton.Caption 'oder nButton.Key...
                        Exit For
                    End Select
                End Select
            End With
        Next
    End If
End Sub
Aktualisiert: 12.02.2008, 14:10 Uhr Copyright © 2001 - 2010 by ST-software Navigation zurück  |  Navigation vorwärts  |  Zum Seitenanfang     
Ihre IP: 38.107.191.80 ·  Seite erstellt in: 0.406 Sekunden ·  Dateigröße:  2589 Bytes