Platforms to show: All Mac Windows Linux Cross-Platform
/MacClassic/Catalog Search/Findfile demo
Required plugins for this example: MBS MacClassic 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: /MacClassic/Catalog Search/Findfile demo
Download this example: Findfile demo.zip
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:
- /MacClassic/Catalog Search/CatSearch Demo
- /MacClassic/Catalog Search/Find stuff from today
- /MacClassic/Catalog Search/Findfile with Thread demo
Download this example: Findfile demo.zip
The items on this page are in the following plugins: MBS MacClassic Plugin.