REVO2700 : Test File Choosers LINUX @ 5 on preOpenStack Global startupFolder put the defaultFolder into startupFolder put the fontNames into button "fontFile" put the fontNames into button "fontPicture" sort lines of button "fontFile" sort lines of button "fontPicture" Global Init put 1 into Init call resumeStack end preOpenStack on resumeStack Global Init If Init = 2 then pass resumeStack set the rect of this stack to the screenrect ---------------------------------------- put empty into field "FileChooserIni" put empty into field "FileChooserFilters" put empty into field "PictureChooserIni" put empty into field "PictureChooserFilters" put empty into field "1a" put empty into field "1b" put empty into field "2a" put empty into field "2b" put url "file:_file_chooser.ini" into field "FileChooserIni" put url "file:_file_chooser_filters.ini" into field "FileChooserFilters" put url "file:_picture_chooser.ini" into field "PictureChooserIni" put url "file:_picture_chooser_filters.ini" into field "PictureChooserFilters" put 0 into lineCounter repeat for each line thisLine in field "FileChooserIni" put (lineCounter + 1) into lineCounter if the charToNum of the last char of thisLine is 13 then --LINUX only put char 1 to -2 of thisLine into line lineCounter of field "FileChooserIni" end if end repeat put 0 into lineCounter repeat for each line thisLine in field "FileChooserFilters" put (lineCounter + 1) into lineCounter if the charToNum of the last char of thisLine is 13 then --LINUX only put char 1 to -2 of thisLine into line lineCounter of field "FileChooserFilters" end if end repeat put 0 into lineCounter repeat for each line thisLine in field "PictureChooserIni" put (lineCounter + 1) into lineCounter if the charToNum of the last char of thisLine is 13 then --LINUX only put char 1 to -2 of thisLine into line lineCounter of field "PictureChooserIni" end if end repeat put 0 into lineCounter repeat for each line thisLine in field "PictureChooserFilters" put (lineCounter + 1) into lineCounter if the charToNum of the last char of thisLine is 13 then --LINUX only put char 1 to -2 of thisLine into line lineCounter of field "PictureChooserFilters" end if end repeat ---------------------------------------- if toLower(line 16 of field "FileChooserIni") is "folder" or toLower(line 16 of field "FileChooserIni") is "folder/" then set the label of button "ChooseFile" to "Choose Folder" end if if toLower(line 16 of field "PictureChooserIni") is "folder" or toLower(line 16 of field "PictureChooserIni") is "folder/" then set the label of button "ChoosePicture" to "Choose Folder" end if put 2 into Init end resumeStack 4P Test File Choosers LINUX U Tahoma W Tahoma U Arial U Arial U Helvetica U Helvetica U Helvetica 0 U Helvetica U Helvetica U lucida U courier U courier W Arial W courier W courier U Helvetica W Helvetica cREVGeometryCache stackID 1082 cRevStandaloneSettings =scriptLibraries Internet Geometry PrintingMacOSX false OSX,name !TEST_Launch_File_Choosers_WindowsMacOS,documentType UNIX,fileSelector trueWindows falseMacOS,longVersion )TEST_Launch_File_Choosers_Windows 1.0.0.0Windows,LegalCopyright ,2006 Freelance All rights reserved worldwideUNIX,pageSetup trueOSX,documentType Linux trueWindows,documenticonFile =D:/Program Files/Revolution 2.6.1/Sample Icons/genericdoc.icoinclusions searchOdt false answerDialog trueSPARC falseOSX,documentExtension SolIntel falseWindows,FileDescription 5TEST_Launch_File_Choosers_Windows 1.0.0.0 for WindowsOSX,longVersion )TEST_Launch_File_Choosers_Windows 1.0.0.0 MacOSfat falseUNIX,printerChooser trueOSX,copyright ,2006 Freelance All rights reserved worldwideWindows,buildU3 falseMacOS,MinimumSize 15000MacOS,versionnumber1 1MacOS,Release FinalMacOS,versionnumber2 0MacOS,versionnumber3 0name Test File Choosers LINUXOSX,identifier /com.freelance.test_launch_file_choosers_windows MacOS,Region 1rs6000 falseHp9k700 falseOSX,shortVersion 1.0.0.0Windows,fileversion1 1Windows,fileversion2 0Windows,productversion1 1Windows,fileversion3 0Windows,productversion2 0Windows,fileversion4 0Windows,productversion3 0cursors falseBsd false OSX,info 1TEST_Launch_File_Choosers_Windows Version 1.0.0.0Windows,productversion4 0 MacOS68k falseMacOS,dynamicMemory trueMacOSX PowerPC-32 false askDialog trueIris falseWindows,iconFile =D:/Program Files/Revolution 2.6.1/Sample Icons/genericapp.icoOSX,signature ????Windows,ProductName !TEST_Launch_File_Choosers_WindowsMacOS,PreferredSize 15000UNIX,colorChooser trueMacOSX x86-32 false MacOSPPC falseMacOS,creator ???? SolSparc falseWindows,companyname Freelance cREVGeneral scriptChecksum Tp<& hM&handlerList preOpenStack resumeStackbreakpoints breakpointstates scriptSelection char 2385 to 2384breakpointconditions bookmarks tempScript prevHandler preOpenStackstackfileversion 2.7script
on preOpenStack
Global startupFolder
put the defaultFolder into startupFolder
put the fontNames into button "fontFile"
put the fontNames into button "fontPicture"
sort lines of button "fontFile"
sort lines of button "fontPicture"
Global Init
put 1 into Init
call resumeStack
end preOpenStack
on resumeStack
Global Init
If Init = 2 then pass resumeStack
set the rect of this stack to the screenrect
----------------------------------------
put empty into field "FileChooserIni"
put empty into field "FileChooserFilters"
put empty into field "PictureChooserIni"
put empty into field "PictureChooserFilters"
put empty into field "1a"
put empty into field "1b"
put empty into field "2a"
put empty into field "2b"
put url "file:_file_chooser.ini" into field "FileChooserIni"
put url "file:_file_chooser_filters.ini" into field "FileChooserFilters"
put url "file:_picture_chooser.ini" into field "PictureChooserIni"
put url "file:_picture_chooser_filters.ini" into field "PictureChooserFilters"
put 0 into lineCounter
repeat for each line thisLine in field "FileChooserIni"
put (lineCounter + 1) into lineCounter
if the charToNum of the last char of thisLine is 13 then --LINUX only
put char 1 to -2 of thisLine into line lineCounter of field "FileChooserIni"
end if
end repeat
put 0 into lineCounter
repeat for each line thisLine in field "FileChooserFilters"
put (lineCounter + 1) into lineCounter
if the charToNum of the last char of thisLine is 13 then --LINUX only
put char 1 to -2 of thisLine into line lineCounter of field "FileChooserFilters"
end if
end repeat
put 0 into lineCounter
repeat for each line thisLine in field "PictureChooserIni"
put (lineCounter + 1) into lineCounter
if the charToNum of the last char of thisLine is 13 then --LINUX only
put char 1 to -2 of thisLine into line lineCounter of field "PictureChooserIni"
end if
end repeat
put 0 into lineCounter
repeat for each line thisLine in field "PictureChooserFilters"
put (lineCounter + 1) into lineCounter
if the charToNum of the last char of thisLine is 13 then --LINUX only
put char 1 to -2 of thisLine into line lineCounter of field "PictureChooserFilters"
end if
end repeat
----------------------------------------
if toLower(line 16 of field "FileChooserIni") is "folder" or toLower(line 16 of field "FileChooserIni") is "folder/" then
set the label of button "ChooseFile" to "Choose Folder"
end if
if toLower(line 16 of field "PictureChooserIni") is "folder" or toLower(line 16 of field "PictureChooserIni") is "folder/" then
set the label of button "ChoosePicture" to "Choose Folder"
end if
put 2 into Init
end resumeStack
P on mouseMove if the visible of field "fileInfo" is true then set the visible of field "fileInfo" to false end if if the visible of field "pictureInfo" is true then set the visible of field "pictureInfo" to false end if end mouseMove cREVGeneral scriptChecksum PfdߺQY0 bookmarks handlerList mouseMoveprevHandler mouseMovetempScript scriptSelection char 247 to 246scripton mouseMove
if the visible of field "fileInfo" is true then
set the visible of field "fileInfo" to false
end if
if the visible of field "pictureInfo" is true then
set the visible of field "pictureInfo" to false
end if
end mouseMove
cREVGeometryCacheIDs 81177982055085 10641177982846805 10691177981853360 10621177982351294 10681136588181649 10071176658147205 10541172790373745 10501136588383253 10191177982291432 10671137427283856 10391136861211893 10351176659143267 10551177983086360 10721177983466790 10751176657208271 10511176659435025 10561136589359616 10291177960517614 10591177983430949 10741136588513292 10241177983505954 10761136861277646 10371136564307149 10031136588328051 10161172790333934 10481177982157562 10651172788047832 10451177983916770 10771172783273406 10411136597496485 10341177981599210 10611177983385907 10731136595221129 10311176659550468 10581136588392442 10201136861244410 10361177982919668 10701136588508051 10231177981385557 10601177983013694 10711137427690041 10401177981944765 10631172788041800 10441136588243754 10131177982232689 10661136588412256 10211136589205804 10261136595436557 10321172783291327 10421136588320100 10151136861306473 10381136597312856 10331136588501049 10221176657427653 10521172783524850 10431136588359651 1018 cREVGeometrycache total 56order " # 5 Button mp on mouseUp quit end mouseUp ?m | <