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
   | '// Module Factory
'Option Explicit
Public CADRE As String
 
 
Public Function FrCreate_Frame(ByRef Form As UserForm, ByVal FrName As String, ByVal FrTop As Long, ByVal FrWidth As Long, ByVal frHeight As Long) As DFrame
    Dim Frame As DFrame
    Set Frame = New DFrame
    FrName = CADRE
    Frame.FrCreate Form, FrName, FrTop, FrWidth, frHeight
 
    Set FrCreate_Frame = Frame
 
End Function
 
    '// Fonction qui encapsule l'instanciation de la classe DynamicBox
Public Function TxCreate_TextBox(ByRef Form As UserForm, ByVal FrName As String, ByVal TxName As String, ByVal TxTop As Long, ByVal TxWidth As Long, ByVal TxHeight As Long) As DynamicTextBox
 
    MsgBox CADRE
 
 
    Dim TextBox As DynamicTextBox
 
    Set TextBox = New DynamicTextBox
 
    TextBox.TxCreate Form, FrName, TxName, TxTop, TxWidth, TxHeight
 
    Set TxCreate_TextBox = TextBox
End Function | 
Partager