Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Windows DDE/CreateGroup
Required plugins for this example: MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows DDE/CreateGroup
This example is the version from Sun, 17th Mar 2012.
Project "CreateGroup.rbp"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control groupname Inherits TextField
ControlInstance groupname Inherits TextField
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() run true End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() run false End EventHandler
End Control
Sub Progman(s as string) dim d as DDEMBS dim ps as DDEStringMBS dim pd as DDEBinaryDataMBS dim b as boolean d=new DDEMBS if d.initClient then ps=d.newDDEString("PROGMAN") if ps<>Nil then if d.ConnectToServer(ps,ps) then d.timeout=10000 pd=d.newDDEBinaryData(nil,s) if pd<>Nil then b=d.clientTransactionBoolean(d.XTYP_EXECUTE,nil,pd) if b then msgBox "ok." else msgBox "failed." end if else msgBox "Failed newDDEBinaryData" end if else msgBox "Failed Connect." end if else msgBox "Failed newDDEString" end if d.Close else msgBox "Failed InitClient" end if End Sub
Sub run(create as boolean) if create then progman "[CreateGroup("+groupname.text+")]" else progman "[ShowGroup("+groupname.text+",3)]" end if End Sub
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

See also:

Feedback, Comments & Corrections

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

MBS Xojo Chart Plugins