Jump to content

imfirefly

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by imfirefly

  1. I picked up this discussion on a thread over at NI Community and wanted to provide some input.

    Reusing the LabVIEW options (preferences) dialog framework to create your own custom dialog for your application, along the lines of crelf's use case, is fairly simple and I will post a couple of VIs and an example in a day or two that provide a wrapper around PreferencesDialog.vi and a slightly updated template to build your own options pages.

    Note: I prefer the term options to preferences so in general I will use that name.

    Adding you own pages into the LabVIEW options dialog alongside the existing options pages is a bit more involved as stated in this thread. If you add your own pages and want to load/save your settings (which obviously you do) you need to explicitly add code in your options page VIs to do this. The framework will not handle that for you. The framework uses the TagSet/PropertyBag refnum for this purpose, but you will not be able to piggyback on this, at least not now.

    We are discussing ways to allow LV add-on developers to add their own entries in the LabVIEW options dialog in the future, so stay tuned.

    Excellent Work! But I can't replace some text prompt or labels on the dialog for localization. At present, we can only custom the "OK" button label.

     

    Here it is:

     post-27036-0-51366700-1378087491_thumb.j

     

    Below lies the NI option dialog in Chinese.

    post-27036-0-86027600-1378087505_thumb.j

×
×
  • Create New...

Important Information

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