Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

/Util/Registration Number Generator
Function:
You find this example project in your Plugins Download as a Xojo (Real Studio) project file within the examples folder: /Util/Registration Number Generator
This example is the version from Sun, 17th Mar 2012.
Project "Registration Number Generator.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control StaticText17 Inherits Label
ControlInstance StaticText17 Inherits Label
End Control
Control Field0 Inherits TextField
ControlInstance Field0 Inherits TextField
EventHandler Sub Open() me.text=Systeminformationmbs.UserName End EventHandler
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control Field1 Inherits TextField
ControlInstance Field1 Inherits TextField
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control Prefix Inherits TextField
ControlInstance Prefix Inherits TextField
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control suffix Inherits TextField
ControlInstance suffix Inherits TextField
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control Delimiter Inherits TextField
ControlInstance Delimiter Inherits TextField
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control BlockLength Inherits TextField
ControlInstance BlockLength Inherits TextField
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control NumberLength Inherits TextField
ControlInstance NumberLength Inherits TextField
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() setup LicenseKey.text=r.Calc End EventHandler
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
Control LicenseKey Inherits TextField
ControlInstance LicenseKey Inherits TextField
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() setup if r.Verify(LicenseKey.text) then MsgBox "OK" else MsgBox "Failed" end if End EventHandler
End Control
Control StaticText10 Inherits Label
ControlInstance StaticText10 Inherits Label
End Control
Control PopupMenu1 Inherits PopupMenu
ControlInstance PopupMenu1 Inherits PopupMenu
End Control
Control StaticText11 Inherits Label
ControlInstance StaticText11 Inherits Label
End Control
Control StaticText12 Inherits Label
ControlInstance StaticText12 Inherits Label
End Control
Control StaticText13 Inherits Label
ControlInstance StaticText13 Inherits Label
End Control
Control StaticText14 Inherits Label
ControlInstance StaticText14 Inherits Label
End Control
Control StaticText15 Inherits Label
ControlInstance StaticText15 Inherits Label
End Control
Control StaticText16 Inherits Label
ControlInstance StaticText16 Inherits Label
End Control
Control CheckBox1 Inherits CheckBox
ControlInstance CheckBox1 Inherits CheckBox
EventHandler Sub Action() PopupPlatform.Enabled=me.Value End EventHandler
End Control
Control PopupPlatform Inherits PopupMenu
ControlInstance PopupPlatform Inherits PopupMenu
End Control
Sub Setup() r=new RegistrationEngineMBS r.BlockLength=val(BlockLength.text) r.NumberLength=val(NumberLength.text) r.Delimiter=Delimiter.text r.suffix=suffix.text r.Prefix=Prefix.text r.Field(0)=field0.Text r.Field(1)=field1.Text r.Alphabet=PopupMenu1.Text r.PlatformSpecificKeys=CheckBox1.Value if CheckBox1.Value then if PopupPlatform.ListIndex>0 then r.Platform=PopupPlatform.ListIndex end if end if End Sub
Property r As RegistrationEngineMBS
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.




Links
MBS Xojo Plugins