Dim obj As Object= FontPicker.Show(fx.CreateFont("Consolas", 15, True, False), 0xFFDC143C)
If obj=Null Then
fx.Msgbox(MainForm, "*** User canceled dialog box ***", "FontPicker")
Else
Dim mapFont As Map=obj
Dim font1 As Font= mapFont.Get("font")
fx.Msgbox(MainForm,"FONT: " & font1 & CRLF & CRLF & "COLOR: " & mapFont.Get("color"), "FontPicker")
End If