Platforms to show: All Mac Windows Linux Cross-Platform
Required plugins for this example: MBS Win Plugin
Last modified Sun, 17th Mar 2012.
You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /Win/Windows DDE/DeleteGroup
Download this example: DeleteGroup.zip
Project "DeleteGroup.xojo_binary_project"
Class Window1 Inherits Window
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action()
create
End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action()
delete
End EventHandler
End Control
Sub create()
progman "[CreateGroup(Test)]"
End Sub
Sub delete()
progman "[DeleteGroup(Test)]"
End Sub
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
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:
- /Win/Windows Admin Status
- /Win/Windows DDE/CreateGroup
- /Win/Windows DDE/Programmanger Groups
- /Win/Windows Font
- /Win/Windows Font Dialog
- /Win/Windows Key Filter
- /Win/Windows Monitors
- /Win/Windows Speech/Windows Speech Test
- /Win/Windows Speech/Windows Speech to file
- /Win/Windows Volume Information
Download this example: DeleteGroup.zip
The items on this page are in the following plugins: MBS Win Plugin.