home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 25
/
CD_ASCQ_25_1095.iso
/
win
/
fr
/
wninova
/
wnitxtbt
/
fbtonoff.frm
< prev
next >
Wrap
Text File
|
1995-08-03
|
11KB
|
296 lines
VERSION 2.00
Begin Form FBtOnOff
BackColor = &H00C0C0C0&
BorderStyle = 3 'Trait double fixe
Caption = "DΘmo Bouton 3D On/Off (WINO_3DBTNCLASS_GRP2)"
ClientHeight = 5310
ClientLeft = 795
ClientTop = 2010
ClientWidth = 8565
ClipControls = 0 'False
ForeColor = &H00000000&
Height = 5715
Left = 735
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5310
ScaleWidth = 8565
Top = 1665
Width = 8685
Begin WINO_3DTXTCLASS_GRP2 WinoTxt3D1
BackColor = &H00C0C0C0&
BordEpaisseur = 5
BordExterieur = 5 'MontΘ
BordInterieur = 1 'EnfoncΘ
BordLargeurint = 1
Caption = "WinoTxt3D1"
CaptionAlignV = 0 'Haut
CaptionEffet3D = 3 'SoulevΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 5325
Left = 0
TabIndex = 0
Top = 0
Width = 8565
Begin WINO_3DBTNCLASS_GRP2 CmdQuit
BackColor = &H00C0C0C0&
Bitmap3D = -1 'True
Caption = "&Quitter"
CaptionAlignH = 2 'Droite
CaptionEffet3D = 1 'EnfoncΘ LΘger
DessineFocus = -1 'True
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 810
ImageDisable = FBTONOFF.FRX:0000
ImageDown = FBTONOFF.FRX:030A
ImageUp = FBTONOFF.FRX:0614
Left = 3480
MousePointer = 10 'FlΦche vers le haut
Ombrage = 2 'Ombre Pleine
TabIndex = 9
Top = 4320
Width = 1590
End
Begin WINO_3DBTNCLASS_GRP2 Cmd1
BackColor = &H00808000&
Caption = "D"
CaptionCouleur = &H000000FF&
CaptionEffet3D = 1 'EnfoncΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 18
FontStrikethru = 0 'False
FontUnderline = 0 'False
Groupe = 1
Height = 585
Index = 3
Left = 7230
MousePointer = 10 'FlΦche vers le haut
TabIndex = 8
Top = 3425
TypeBouton = 1 'ON/OFF
Width = 855
End
Begin WINO_3DBTNCLASS_GRP2 Cmd1
BackColor = &H00808000&
Caption = "B"
CaptionCouleur = &H000000FF&
CaptionEffet3D = 1 'EnfoncΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 18
FontStrikethru = 0 'False
FontUnderline = 0 'False
Groupe = 1
Height = 585
Index = 1
Left = 5520
MousePointer = 10 'FlΦche vers le haut
TabIndex = 7
Top = 3425
TypeBouton = 1 'ON/OFF
Width = 855
End
Begin WINO_3DBTNCLASS_GRP2 Cmd1
BackColor = &H00808000&
Caption = "A"
CaptionCouleur = &H000000FF&
CaptionEffet3D = 1 'EnfoncΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 18
FontStrikethru = 0 'False
FontUnderline = 0 'False
Groupe = 1
Height = 585
Index = 0
Left = 4665
MousePointer = 10 'FlΦche vers le haut
OmbreLargeur = 2
TabIndex = 6
Top = 2840
TypeBouton = 1 'ON/OFF
Width = 855
End
Begin WINO_3DBTNCLASS_GRP2 Cmd1
BackColor = &H00808000&
Caption = "C"
CaptionCouleur = &H000000FF&
CaptionEffet3D = 1 'EnfoncΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 18
FontStrikethru = 0 'False
FontUnderline = 0 'False
Groupe = 1
Height = 585
Index = 2
Left = 6375
MousePointer = 10 'FlΦche vers le haut
TabIndex = 5
Top = 2835
TypeBouton = 1 'ON/OFF
Width = 855
End
Begin WINO_3DTXTCLASS_GRP2 WinoTxt3D2
BackColor = &H00000000&
BordExterieur = 6 'MontΘ Double
BordInterieur = 2 'EnfoncΘ Double
BordLargeurint = 1
Caption = "WinoTxt3D2"
CaptionAlignH = 0 'Gauche
CaptionCouleur = &H0000FFFF&
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1395
Index = 1
Left = 180
TabIndex = 4
Top = 1275
Width = 8205
End
Begin WINO_3DTXTCLASS_GRP2 WinoTxt3D2
BackColor = &H00C0C0C0&
BordExterieur = 5 'MontΘ
Caption = "Ici tout les boutons ont la propriΘtΘ TypeBouton a 1-On/OFF"
CaptionCouleur = &H000000FF&
CaptionEffet3D = 3 'SoulevΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 705
Index = 0
Left = 180
TabIndex = 3
Top = 525
Width = 8200
End
Begin WINO_3DBTNCLASS_GRP2 Cmd
BackColor = &H000000FF&
Caption = "2"
CaptionEffet3D = 1 'EnfoncΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 18
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 585
Index = 1
Left = 2190
MousePointer = 10 'FlΦche vers le haut
TabIndex = 2
Top = 3150
TypeBouton = 1 'ON/OFF
Width = 855
End
Begin WINO_3DBTNCLASS_GRP2 Cmd
BackColor = &H000000FF&
Caption = "1"
CaptionEffet3D = 1 'EnfoncΘ LΘger
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 18
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 585
Index = 0
Left = 1350
MousePointer = 10 'FlΦche vers le haut
TabIndex = 1
Top = 3150
TypeBouton = 1 'ON/OFF
Width = 855
End
Begin Line Ligne2
BorderWidth = 2
X1 = 4275
X2 = 4275
Y1 = 2775
Y2 = 4185
End
Begin Line Ligne1
BorderColor = &H00FF0000&
BorderWidth = 2
X1 = 180
X2 = 8380
Y1 = 4185
Y2 = 4185
End
End
End
Option Explicit
Dim OldIdxB1%, OldIdxV%, OldIdxT3D%
Dim OldIdxHI%, OldIdxVI%, OldIdxAct%
Sub Cmd_Click (Index As Integer)
' Dans cette exemple j'oblige qu'il est toujour un bouton enfoncΘ
If Not Cmd(Index).ValueBouton Then
Cmd(Index).ValueBouton = True
Exit Sub
'-----------------------------------------------------------------
End If
If Index = 0 Then
Cmd(0).BackColor = QBColor(10)
Cmd(1).BackColor = QBColor(12)
Else
Cmd(0).BackColor = QBColor(12)
Cmd(1).BackColor = QBColor(10)
End If
End Sub
Sub Cmd1_Click (Index As Integer)
Cmd1(Index).BackColor = QBColor(11)
If Not Cmd1(0).ValueBouton Then Cmd1(0).BackColor = QBColor(3)
If Not Cmd1(1).ValueBouton Then Cmd1(1).BackColor = QBColor(3)
If Not Cmd1(2).ValueBouton Then Cmd1(2).BackColor = QBColor(3)
If Not Cmd1(3).ValueBouton Then Cmd1(3).BackColor = QBColor(3)
End Sub
Sub CmdQuit_Click ()
Unload Me
End Sub
Sub Form_Load ()
Msg = " Pour toutes les autres propriΘtΘs il fonctionne comme l'exemple prΘcΘdent."
WinoTxt3D1.Caption = Msg
WinoTxt3D1.Top = 0: WinoTxt3D1.Left = 0
WinoTxt3D1.Width = FBtOnOff.ScaleWidth: WinoTxt3D1.Height = FBtOnOff.ScaleHeight
WinoTxt3D2(0).Width = WinoTxt3D1.Width - 360:
WinoTxt3D2(1).Left = (WinoTxt3D1.Width - WinoTxt3D2(1).Width) \ 2
Msg = " Comme vous le voyez, nous avons deux groupes de boutons, chacun d'eux" & LN
Msg = Msg & " fonctionne indΘpendement de l'autre." & LN
Msg = Msg & " Dans notre exemple nous avons modifiΘ la valeur de la propriΘtΘ GROUPE :" & LN
Msg = Msg & " - pour le 1er groupe de boutons elle a la valeur 0" & LN
Msg = Msg & " - pour le 2Φme groupe de boutons elle a la valeur 1"
WinoTxt3D2(1).Caption = Msg
Cmd(0).ValueBouton = True
CmdQuit.Left = (WinoTxt3D1.Width - CmdQuit.Width) \ 2
Call CentrerF(FBtOnOff)
End Sub