Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] Clip Wizard Question.

Expand Messages
  • Jody
    Hi Harvey, Charles, Others... ... In my DirStuff (and some other Libraries that share the code in an ini file) I have a browse first and then a drop down list.
    Message 1 of 5 , Jan 25, 2005
    • 0 Attachment
      Hi Harvey, Charles, Others...

      > >>> Is it possible to specify a specific path in a T=O File open
      > >>> Wizard and if so, How?
      > >
      > > Just a tip for you. When using the (T=O), (T=S), etc. to get the
      > > browse window you cannot add multiple items with the vertical
      > > bar...
      > >
      > > ^?{(T=O)Open File To Edit/Convert=C:\BCV_Edit\|Another path|Another path}
      > >
      > > You cannot use the "^=" code either...
      > >
      > > ^?{(T=O)Open File To Edit/Convert=BVC_Edit^=C:\BCV_Edit\bcv_edit.exe}
      >Although I don't recall having tried any of these other combo's it's
      >good to know beforehand, Thanks.

      In my DirStuff (and some other Libraries that share the code in
      an ini file) I have a browse first and then a drop down list. If
      the browse is used, the drop down list in the next field is
      ignored. I have a Setup in the Libraries so that you can add
      default paths to it and it is used in many of the Clips,
      especially in DirStuff.

      I don't expect you to use the code below, but in case you want to
      "steal" it out of my DirStuff, the Setup is near the bottom, but
      there is a Clip to take you there at the top of the Library
      called: Goto Setup. The Setup Clip for the one mentioned above is
      called: Setup Directory... http://www.notetab.net/zip/dirstuff.zip

      Setup Directory...

      ^!SetIniFile NtbUsers
      ^!Set %Default%=^?{(T=D)Default directory to use for Directory Stuff=^$GetValue("DirStuff:Browse")$}; %Path1%=^?{(T=D)Pull down list Path 1=^$GetValue("DirStuff:Path1")$}; %Path2%=^?{(T=D)Pull down list Path 2=^$GetValue("DirStuff:Path2")$}; %Path3%=^?{(T=D)Pull down list Path 3=^$GetValue("DirStuff:Path3")$}; %Path4%=^?{(T=D)Pull down list Path 4=^$GetValue("DirStuff:Path4")$}; %Path5%=^?{(T=D)Pull down list Path 5=^$GetValue("DirStuff:Path5")$}; %Path6%=^?{(T=D)Pull down list Path 6=^$GetValue("DirStuff:Path6")$}; %Path7%=^?{(T=D)Pull down list Path 7=^$GetValue("DirStuff:Path7")$}; %Path8%=^?{(T=D)Pull down list Path 8=^$GetValue("DirStuff:Path8")$}; %Path9%=^?{(T=D)Pull down list Path 9=^$GetValue("DirStuff:Path9")$}

      ^!SaveValue DirStuff:Browse="^%Default%"
      ^!SaveValue DirStuff:Path1="^%Path1%"
      ^!SaveValue DirStuff:Path2="^%Path2%"
      ^!SaveValue DirStuff:Path3="^%Path3%"
      ^!SaveValue DirStuff:Path4="^%Path4%"
      ^!SaveValue DirStuff:Path5="^%Path5%"
      ^!SaveValue DirStuff:Path6="^%Path6%"
      ^!SaveValue DirStuff:Path7="^%Path7%"
      ^!SaveValue DirStuff:Path8="^%Path8%"
      ^!SaveValue DirStuff:Path9="^%Path9%"

      End of Clip

      This is the part in the Clips that pulls up the preset paths from Setup. Notice the "If used, Browse is ignored, may enter path manually."

      ; Gets path, file type, with option to add underscore for checkboxes
      ^!Set %Folder%=^?{(T=D)&Browse: full path, end in backslash=^$GetValue(DirStuff:Browse)$}; %Drop%=^?{&Drop down: full path, end in backslash=_If used, Browse is ignored, may enter path manually^=1|^$GetValue(DirStuff:Path1)$|^$GetValue(DirStuff:Path2)$|^$GetValue(DirStuff:Path3)$|^$GetValue(DirStuff:Path4)$|^$GetValue(DirStuff:Path5)$|^$GetValue(DirStuff:Path6)$|^$GetValue(DirStuff:Path7)$|^$GetValue(DirStuff:Path8)$|^$GetValue(DirStuff:Path9)$}; %Type%=^?{(H=10)File &Types, wildcards OK: *.txt or *.*htm*;*.txt=All Files (*.*)^=*.*|HTML Files (*.*htm*)^=*.*htm*|Text Files (*.txt)^=*.txt|_Html & Text Files (*.*htm*;*.txt)^=*.*htm*;*.txt|Outline Files (*.otl)^=*.otl|Clipbook Files (*.clb)^=*.clb|Initiation Files (*.ini)^=*.ini}; %Sort%=^?{&Sort order=Date|_Name|Size|Type|UnSorted}; %Rev%=^?{&Reverse sort order=Yes^=Rev|_No^=}; %us%=^?{&Check files automatically in file list to open=_Yes^=_|No^=}

      ^!SetHintInfo Working...
      ^!SetScreenUpdate Off

      ; Checks to see if Browse or Drop was used
      ^!IfTrue ^%Drop% Skip
      ^!Set %Folder%=^%Drop%


      Take care,
      Jody Adair

      The whole world doth err save you and me,
      and even thou doest err some! ;)
      http://notetab.net, http://fookes.us
    Your message has been successfully submitted and would be delivered to recipients shortly.