Example
| Sub Main Begin Dialog UserDialog 210,120,.DialogFunc Text 10,10,190,15,"Please push the <span style='color: #004080; font-weight: bold;'>Close</span> button" OKButton 30,90,60,20 CheckBox 120,90,60,20,"&<span style='color: #004080; font-weight: bold;'>Close</span>",.CheckBox1 End Dialog Dim dlg As UserDialog Debug.Print Dialog(dlg) End Sub Function DialogFunc%(DlgItem$, Action%, SuppValue%) Debug.Print "Action=";Action% Select Case Action% Case 1 ' Dialog box initialization Beep Case 2 ' Value changing or button pressed Select Case DlgItem$ Case "CheckBox1" DlgEnd 1000 End Select End Select End Function
|