Platforms to show: All Mac Windows Linux Cross-Platform
/MacClassic/Catalog Search/Findfile demo
Required plugins for this example: MBS MacClassic Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacClassic/Catalog Search/Findfile demo
This example is the version from Sun, 17th Mar 2012.
Project "Findfile demo.xojo_binary_project"
Class MainWindow Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action()
dim c as CatSearchMBS
dim f as folderItem
dim error as boolean // We ignore some errors in this example!
dim k,nn as integer
pushButton1.enabled=false
c=new CatSearchMBS
if c.search(volume(0),true) then
c.name=editfield1.text
c.partialName=true
nn=c.searchNext
while nn>=0
k=k+1
if k=1000 then // something wrong?
msgBox "Takes a long time!? Better we stop."
return
end if
f=c.result
if f<>Nil and nn=0 then // Something found
list.addrow f.displayname
end if
nn=c.searchNext
wend
end if
pushButton1.enabled=true
End EventHandler
End Control
Control EditField1 Inherits TextField
ControlInstance EditField1 Inherits TextField
End Control
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
End Class
MenuBar Menü
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "Ablage"
MenuItem FileQuit = "Beenden"
MenuItem UntitledMenu0 = "Bearbeiten"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Ausschneiden"
MenuItem EditCopy = "Kopieren"
MenuItem EditPaste = "Einfügen"
MenuItem EditClear = "Löschen"
End MenuBar
Class App Inherits Application
End Class
End Project
See also:
The items on this page are in the following plugins: MBS MacClassic Plugin.