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

/Picture/Picture Combine
Required plugins for this example: MBS Main Plugin, MBS Picture Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Picture/Picture Combine
This example is the version from Sun, 10th Dec 2016.
Project "Picture Combine.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control PopupEffect Inherits PopupMenu
ControlInstance PopupEffect Inherits PopupMenu
EventHandler Sub Change() run End EventHandler
End Control
Control Canvas1 Inherits Canvas
ControlInstance Canvas1 Inherits Canvas
End Control
EventHandler Sub Open() dim p as Picture = new Picture(500,500,32) dim g as Graphics = p.Graphics g.ForeColor=&cFF0000 g.FillRect 250, 0, 250, 250 g.ForeColor=&c00FF00 g.FillRect 0, 250, 250, 250 g.ForeColor=&c0000FF g.FillRect 250, 250, 250, 250 first=LogoMBS(500) second=p run End EventHandler
Sub run() if PopupEffect.ListIndex=0 then Canvas1.Backdrop=first elseif PopupEffect.ListIndex=1 then Canvas1.Backdrop=second elseif PopupEffect.ListIndex>2 and PopupEffect.ListIndex<=11 then canvas1.Backdrop=first.CombineMBS(PopupEffect.ListIndex-2, second) elseif PopupEffect.ListIndex>12 then canvas1.Backdrop=first.CombinePixelMBS(PopupEffect.ListIndex-12, second) end if End Sub
Property first As Picture
Property second As Picture
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

See also:

Feedback, Comments & Corrections

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

MBS FileMaker Plugins