REVO27000 HTMLHelper2 HjXctRevID 1249619296on cleanUp put "Address,Name,LinkHTML,LinkScript,Image,Alt,Width,height,ImageHTML,ImageScript" into tFlds repeat for each item f in tFlds put empty into fld f end repeat set the menuhistory of btn "Tabs" to 1 show fld "ImageInfo" hide img "TestImage" set the filename of img "TestImage" to empty put empty into img "TestImage" save this stack end cleanUp on preOpenStack if the environment = "browser" then set the showborder of cd 1 to true put "Click here to select an image. Minimize or move browser window to see file dialog..." into fld "ImageInfo" else put "Click here to select an image..." into fld "ImageInfo" end if end preOpenStack 4 HTML Helper UType Embellishments One LET UVerdana ULucida Grande ULucida Grande UVerdana WVerdana WVerdana UVerdanacRevStandaloneSettingsDscriptLibrariesInternet Geometry PrintingMacOSXfalseMacOS,documentTypeUNIX,fileSelectortrueWindowsfalseWeb,WindowsSupportedtrueWindows,LegalCopyright#2009 All rights reserved worldwideUNIX,pageSetuptrueWebtrue answerDialogtrueWeb,LinuxSupportedtrueWindows,FileDescriptionHTMLHelper 1.0.0.0 for WindowsOSX,longVersionHTMLHelper 1.0.0.0Web,RequestedNameWindows,buildU3falseOSX,copyright#2009 All rights reserved worldwideWeb,CustomBackgroundColor 237,237,237Web,CustomLoadIconMacOS,versionnumber11MacOS,versionnumber20MacOS,ReleaseFinalOSX,identifiercom..htmlhelpername HTMLHelperMacOS,versionnumber30OSX,shortVersion1.0.0.0Web,InstanceIdWindows,fileversion11Windows,fileversion20Windows,fileversion30cursorsfalseWindows,fileversion40Web,MacOSXSupportedtrueMacOSX PowerPC-32falseMacOS,dynamicMemorytrue Windows,UUID$21AB52EB-EE29-4CA1-998B-A104C6A2F93DMacOS,PreferredSize15000MacOS,creator???? OSX,name HTMLHelper"automaticallyBuildInDefaultFoldertrueMacOS,longVersionHTMLHelper 1.0.0.0OSX,documentTypeWeb,MinEnvironmentVersion inclusionssearchWindows,documenticonFilei/Applications/Revolution Enterprise/4.0.0-dp-3/Runtime/Windows/x86-32/Support/Sample Icons/genericdoc.icoOSX,documentExtension Web,Domain0xFFWeb,AllowOtherPlatformstrueUNIX,printerChoosertrueWeb,DetectSecurityPermissionsfalseMacOS,MinimumSize15000Web,SecurityPermissions ,Disk,,,,,,, MacOS,Region1Windows,productversion11Windows,productversion20Windows,productversion30Windows,productversion40 OSX,infoHTMLHelper Version 1.0.0.0Web,ExecutionModeBrowserWeb,CustomBackgroundColor2 237,237,237 askDialogtrueOSX,signature????Windows,iconFilei/Applications/Revolution Enterprise/4.0.0-dp-3/Runtime/Windows/x86-32/Support/Sample Icons/genericapp.icodefaultBuildFolder/Users/sarahtim/DesktopWindows,ProductName HTMLHelper Web,UUID$AF81C559-E784-4832-885E-2A2B0128FC11UNIX,colorChoosertrueMacOSX x86-32falseWindows,companynamecREVGeometryCachestackID1070 cREVGeneralscripteditorvscroll0breakpointconditions revUniqueID 1253424873735scripteditorselection189 breakpointsbreakpointstatesstackfileversion2.7Pon adjustImageSize pNewPixels, pWhich -- only one dimension will be supplied: pWhich = "width" or "height" -- adjust the other to maintain the aspect ratio put the formattedwidth of img "TestImage" into tFullWidth put the formattedheight of img "TestImage" into tFullHeight if tFullWidth = 0 or tFullHeight = 0 then exit adjustImageSize if pNewPixels = 0 then put tFullWidth into fld "Width" put tFullHeight into fld "Height" else if pWhich = "width" then put pNewPixels / tFullWidth into tScale put round(tFullHeight * tScale) into fld "Height" else if pWhich = "height" then put pNewPixels / tFullHeight into tScale put round(tFullWidth * tScale) into fld "Width" end if end adjustImageSize XctRevID 1249600243 cREVGeneralscripteditorvscroll0 revUniqueID 1253424066300scripteditorselection719cREVGeometryCacheIDs%12496181098191056124959930206910191249599323277102012496005818631049124959967429310251249600581801104712495981669911006124959936949910211249621887492106712495997976401028124959979763910271249598216918101012495997976411029124959979764210301249599797643103112495981718751008124959822954810141249599797644103212495997976451033124959979764610341249620094001106412496187765161061124959979764710351249599797648103612495997976501038124959979764910371249598193908100912495982647121017124960058197010511249599680567102612496183529331058124960208333810541249600581896105012496005818301048125006348072010701249598226129101212495980789891004cREVGeometrycachetotal37order %." 0Tabs}on menuPick pNew ,pOld if there is a grp pOld then hide grp pOld end if if there is a fld (pOld & "Help") then if the visible of fld (pOld & "Help") then put true into tHelpShowing hide fld (pOld & "Help") else put false into tHelpShowing end if end if if there is a grp pNew then show grp pNew end if if there is a fld (pNew & "Help") and tHelpShowing = true then show fld (pNew & "Help") end if end menuPick DctRevID 1249599378 Contents Links Images6 Links Images cREVGeneral revUniqueID 1249598078989 Linksi ::< cREVGeneral revUniqueID 1249599369499  AddressLabel >F cREVGeneral revUniqueID 1249598193908 Address: Addressi`Q> cREVGeneral revUniqueID 1249598216918   NameLabel hF cREVGeneral revUniqueID 1249598166991 Name: MakeLinkeoon mouseUp put fld "Address" into tAddr if tAddr is empty then answer warning "Please enter a web address." exit to top end if -- make sure the address is a full address, including the protocol if tAddr contains "://" is false then put "http://" before tAddr end if put fld "Name" into tName if tName is empty then put tAddr into tName end if -- make a direct html link put "" & tName & "" into tHTML put tHTML into fld "LinkHTML" -- make a scripted html link put tHTML into tScript replace quote with quote & " & quote & " & quote in tScript put "put " & quote before tScript put quote & " into tLink" after tScript put tScript into fld "LinkScript" -- test for scripted link -- do tScript -- put tLink & cr & tHTML end mouseUp RctRevID 12495985066 Make Link cREVGeneral revUniqueID 1249598264712  HTMLLabel d cREVGeneral revUniqueID 1249599302069 HTML: Namei`Qh cREVGeneral revUniqueID 1249598171875   LinkHTML)`,0 cREVGeneral revUniqueID 1249598226129  Copy1eKon mouseUp set the clipboardData["text"] to fld "LinkHTML" end mouseUp  BctRevID 1249599581UCopy cREVGeneral revUniqueID 1249599680567  ScriptLabel d cREVGeneral revUniqueID 1249599323277 Script:  LinkScript)`0,0 cREVGeneral revUniqueID 1249598229548  Copy2eMon mouseUp set the clipboardData["text"] to fld "LinkScript" end mouseUp `BctRevID 1249599619WCopy cREVGeneral revUniqueID 1249599674293 Imagesa ::< cREVGeneral revUniqueID 1249599797639  ImageLabel >F cREVGeneral revUniqueID 1249599797642 Image: Image pon mouseUp answer file "Select an image file:" with type "Image files|jpg,jpeg,png,gif" or type "All files" put it into tFilename put tFilename into me put url ("binfile:" & tFileName) into image "TestImage" if tFilename is not empty and the result is not empty then if there is a file tFilename then answer error "There was a problem checking the image:" & cr & the result \ & cr & "Even though the file '" & tFilename & "' does exist." else answer error "There was a problem checking the image:" & cr & the result \ & cr & "The file '" & tFilename & "' could not be found." end if -- clear the image, so that manually setting the dimensions will work set the filename of img "TestImage" to empty else if tFilename is empty then put empty into image "TestImage" show fld "ImageInfo" end if if tFilename is not empty then put the formattedwidth of img "TestImage" into fld "Width" put the formattedheight of img "TestImage" into fld "Height" else put empty into fld "Width" put empty into fld "Height" end if end mouseUp Q>ctRevID 1249599834 cREVGeneral revUniqueID 1249599797643   AltLabel hF cREVGeneral revUniqueID 1249599797640 Alt: Alti`Qh cREVGeneral revUniqueID 1249599797641   WidthLabel $2 cREVGeneral revUniqueID 1249600581801 Width: Widthm`Q<ctRevID 12496004405Enter 0 (zero) to revert to the original dimensions.jon rawKeyUp pKey adjustImageSize me, "width" pass rawKeyUp end rawKeyUp 0HTMLHelper cREVGeneralscripteditorvscroll0 revUniqueID 1249600581830scripteditorselection0   HeightLabel 2 cREVGeneral revUniqueID 1249600581863 Height: Heightm`<ctRevID 12496005175Enter 0 (zero) to revert to the original dimensions.kon rawKeyUp pKey adjustImageSize me, "height" pass rawKeyUp end rawKeyUp 0HTMLHelper cREVGeneral revUniqueID 1249600581896   MakeImageeon mouseUp put fld "Image" into tImage if tImage is empty then answer warning "Please select an image file." exit to top end if -- get the actual file name set the itemdel to "/" put last item of tImage into tImage put fld "Alt" into tAlt if tAlt is empty then put tImage into tAlt end if -- get the image sizes put fld "Width" into tW put fld "Height" into tH if tW = 0 or tH = 0 or tW is empty or tH is empty then put the formattedwidth of img "TestImage" into tW put the formattedheight of img "TestImage" into tH end if -- make a direct html link put "images/" into tFolder put " & quote & tAlt & quote into tHTML
   put " after tHTML put tHTML into fld "ImageHTML" -- make a scripted html link put tHTML into tScript replace quote with quote & " & quote & " & quote in tScript put "put " & quote before tScript put quote & " into tImageLink" after tScript put tScript into fld "ImageScript" -- test for scripted link -- do tScript -- put tImageLink & cr & tHTML end mouseUp ctRevID 1249598506UMake Image Link cREVGeneralscripteditorvscroll0 revUniqueID 1249599797646scripteditorselection1231  HTMLLabel d cREVGeneral revUniqueID 1249599797647 HTML:  ImageHTML)`,0 cREVGeneral revUniqueID 1249599797644   SizeInfo  D  cREVGeneral revUniqueID 1249602083338 \Editing the width & height will not change the image size, but will alter the display size.Copy1eLon mouseUp set the clipboardData["text"] to fld "ImageHTML" end mouseUp  BctRevID 1249599581QCopy cREVGeneralscripteditorvscroll0 revUniqueID 1249599797650scripteditorselection57  ScriptLabel d cREVGeneral revUniqueID 1249599797648 Script:  ImageScript)`0,0 cREVGeneral revUniqueID 1249599797645   Copy2eNon mouseUp set the clipboardData["text"] to fld "ImageScript" end mouseUp `BctRevID 1249599619SCopy cREVGeneralscripteditorvscroll0 revUniqueID 1249599797649scripteditorselection57 (ShowE\on mouseUp set the vis of img "TestImage" to not the vis of img "TestImage" end mouseUp RBctRevID 1249620016w cREVGeneral revUniqueID 1249620094001  TestImage`l@ cREVGeneral revUniqueID 1249600581970 + ImageInfo Don mouseUp hide me send "mouseUp" to fld "Image" end mouseUp R>ctRevID 1249621712 cREVTable currentview Click here to select an image... cREVGeneral revUniqueID 1249621887492 !Click here to select an image...%HelpEon mouseUp put the selectedtext of btn "Tabs" into tWhich put tWhich & "Help" into tFldName hide me show fld tFldName click at "0,0" -- to remove any text field focus end mouseUp {RctRevID 1249618788s cREVGeneral revUniqueID 1249618776516 .ClearEXon mouseUp cleanUp click at "0,0" -- to remove any text field focus end mouseUp {RctRevID 1249618788q cREVGeneral revUniqueID 1250063480720 " ImagesHelpx6on mouseUp hide me show btn "Help" end mouseUp &0nctRevID 1249618884  cREVTable currentviewThis utility is to help create valid HTML image links for inserting into a web page or Revolution script. Click the 'Image' field at the top and select an image file (jpg, png or gif). Enter some text for the 'alt' of the image if you want. If this is blank, the file name will be used as the alt. When you choose an image file, the size of that image in pixels will be displayed. If you want to show the image at a different size in the web page, edit the height or width. The other dimension will be edited to maintain the aspect ratio. Click 'Make Image Link' and the html for the image link will be created, as well as the Revolution script to create that link which can be pasted directly into any Revolution or On-Rev script. This assumes the image is in a sub-folder called 'images', so edit the link manually if this is not the case. Use the 'Copy' buttons to copy either of these into the clipboard. cREVGeneral revUniqueID 1249618352933  jThis utility is to help create valid HTML image links for inserting into a web page or Revolution script. OClick the 'Image' field at the top and select an image file (jpg, png or gif). qEnter some text for the 'alt' of the image if you want. If this is blank, the file name will be used as the alt. When you choose an image file, the size of that image in pixels will be displayed. If you want to show the image at a different size in the web page, edit the height or width. The other dimension will be edited to maintain the aspect ratio. /Click 'Make Image Link' and the html for the image link will be created, as well as the Revolution script to create that link which can be pasted directly into any Revolution or On-Rev script. This assumes the image is in a sub-folder called 'images', so edit the link manually if this is not the case. CUse the 'Copy' buttons to copy either of these into the clipboard.  LinksHelpx6on mouseUp hide me show btn "Help" end mouseUp &0nctRevID 1249618751  cREVGeneral revUniqueID 1249618109819  dThis utility is to help create valid HTML links for inserting into a web page or Revolution script. Enter the web address e.g. http://www.google.com or www.runrev.com (the http:// will be added automatically if you leave it off). mEnter a name for the web site if you want. If this is blank, the address will show up as the clickable link. Click 'Make Link' and the html for the link will be created, as well as the Revolution script to create that link which can be pasted directly into any Revolution or On-Rev script. CUse the 'Copy' buttons to copy either of these into the clipboard.0NumericEw-- behavior script to limit input in image width & height fields -- to positive integers only on keyDown pKey if pKey is a number then pass keyDown end if end keyDown XxRw cREVGeneral revUniqueID 1253425615529