Jump to content

[CR] Truncate Path Xcontrol


Recommended Posts

index.php?automodule=downloads&req=display&code=sst&id=29

File Name: Truncate Path Xcontrol

File Submitter: tcplomp

File Submitted: 8 Oct 2006

File Updated: 11 Oct 2006

File Category: XControls

This XControl is originated from this discussion.

It will truncate a path to fit inside a string:

Besides basic funtionality it has the following properties:

  • Truncated string (Read only property that will return the truncated string)
  • Button Visible (Read/Write, this property will show/hide the browse button)
  • Browse properties (Read/Write, this property will set/get the browse options)

Methods:

  • Truncate Path (this method uses the VIs to truncate a path to a string)

For the developer it has the following advantages:

  • Set the browse options with a dialog similar to the native browse options dialog
  • Browse for a path
  • Show/Hide browse button

Known issues:

No drag and drop

Bounds of indicator/control include invisible browse button

Acknowledgements:

Uses code by Dave Thomson:Display Long Path.vi

Click here to download this file

post-2399-1160478800.png?width=400

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.