Jump to content

[Discuss] Truncate Path Xcontrol


Recommended Posts

index.php?app=downloads&module=display&section=screenshot&id=32

Name: Truncate Path Xcontrol

Submitter: Ton Plomp

Submitted: 03 Jul 2009

File Updated: 21 Sep 2009

Category: X-Controls

Version: 1.1.0

LabVIEW Version: 8.2

License Type: BSD (Most common)

Copyright © 2007, Ton Plomp

All rights reserved.

Author:

Ton Plomp

--see readme file for contact information

Description:

It will truncate a path to fit inside a (multiline) 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)
  • Multi-Line (Read/Write, this property will set/get the multiline option of the truncated path)
Methods:
  • Truncate Path (this method uses the VIs to truncate a path to a string)
  • Truncate Multiline Path (this method uses the VIs to truncate a path to a multiline 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
  • Control the multiline-ness of the control
Known issues:
  • No drag and drop
  • Bounds of indicator/control include (invisible) browse button

Version history

  • 1.1.0
    • Includes multiline truncation
    • Distributed as LLB

    [*]1.0.0

    • Initial release of the code

Click here to download this file

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.