Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Picture/Icon/Test Icon
Function:
Required plugins for this example: MBS Picture Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Picture/Icon/Test Icon
This example is the version from Sun, 17th Mar 2012.
Project "Test Icon.rbp"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control Canvas1 Inherits Canvas
ControlInstance Canvas1 Inherits Canvas
End Control
Control Canvas2 Inherits Canvas
ControlInstance Canvas2 Inherits Canvas
End Control
Control Canvas3 Inherits Canvas
ControlInstance Canvas3 Inherits Canvas
End Control
Control Canvas4 Inherits Canvas
ControlInstance Canvas4 Inherits Canvas
End Control
Control Canvas5 Inherits Canvas
ControlInstance Canvas5 Inherits Canvas
End Control
Control Canvas6 Inherits Canvas
ControlInstance Canvas6 Inherits Canvas
End Control
Control Canvas7 Inherits Canvas
ControlInstance Canvas7 Inherits Canvas
End Control
Control Canvas8 Inherits Canvas
ControlInstance Canvas8 Inherits Canvas
End Control
Control Canvas9 Inherits Canvas
ControlInstance Canvas9 Inherits Canvas
End Control
Control Canvas10 Inherits Canvas
ControlInstance Canvas10 Inherits Canvas
End Control
Control Canvas11 Inherits Canvas
ControlInstance Canvas11 Inherits Canvas
End Control
Control Canvas12 Inherits Canvas
ControlInstance Canvas12 Inherits Canvas
End Control
Control Canvas16 Inherits Canvas
ControlInstance Canvas16 Inherits Canvas
End Control
Control Canvas17 Inherits Canvas
ControlInstance Canvas17 Inherits Canvas
End Control
Control Canvas18 Inherits Canvas
ControlInstance Canvas18 Inherits Canvas
End Control
Control Canvas19 Inherits Canvas
ControlInstance Canvas19 Inherits Canvas
End Control
Control Canvas20 Inherits Canvas
ControlInstance Canvas20 Inherits Canvas
End Control
Control Canvas21 Inherits Canvas
ControlInstance Canvas21 Inherits Canvas
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
EventHandler Sub DropObject(obj As DragItem, action As Integer) do if obj.FolderItemAvailable then run obj.FolderItem end if loop until not obj.NextItem End EventHandler
EventHandler Sub Open() me.AcceptFileDrop "special/any" run SpecialFolder.Desktop End EventHandler
Private Sub run(f as folderitem) canvas2.Backdrop=f.IconMBS(16) canvas1.Backdrop=f.IconImageMBS(16) canvas3.Backdrop=f.IconMaskMBS(16) canvas4.Backdrop=f.IconMBS(32) canvas6.Backdrop=f.IconImageMBS(32) canvas5.Backdrop=f.IconMaskMBS(32) canvas7.Backdrop=f.IconMBS(64) canvas8.Backdrop=f.IconImageMBS(64) canvas9.Backdrop=f.IconMaskMBS(64) canvas11.Backdrop=f.IconMBS(128) canvas10.Backdrop=f.IconImageMBS(128) canvas12.Backdrop=f.IconMaskMBS(128) canvas16.Backdrop=f.IconMBS(512) canvas17.Backdrop=f.IconImageMBS(512) canvas18.Backdrop=f.IconMaskMBS(512) canvas19.Backdrop=f.IconMBS(48) canvas21.Backdrop=f.IconImageMBS(48) canvas20.Backdrop=f.IconMaskMBS(48) End Sub
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
FileTypes1
Filetype special/any
End FileTypes1
End Project

See also:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins