用Picture來製作按鈕列.......不使用Button元件

利用一點時間做的,用Bmp的檔案來製作按鈕列.

在這裡只用了一個Picture物件來顯示Bmp的按鈕列.

大家參考看看吧!

2004-07-01_155355_Button.zip

Jimmy...我遇到難題了,就是下圖的錯誤訊息...回不會是ButtonData.ini沒有資料所造成的?

![](upload://4yJ0sBsmW9gb5YhE475hvwl7BQv.jpeg)

抱歉![](upload://bYCGLVQ2xYCkY6TSDzv2PwwNXoA.gif)!

ini內的資料不知怎麼不見了.

2004-07-01_183450_ButtonData.txt

記得將檔案改成ini的格式,並複製到Button資料夾裡.

哇…好讚喔…真可愛…

好帥喔一一

抱歉洗版子,但是好炫喔,jimmy-Chen你會好多東西,<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

這些東西都是你自己花時間專研的嗎?市面上的書應該都沒教這些技巧吧!![](upload://bYCGLVQ2xYCkY6TSDzv2PwwNXoA.gif)

jimmy-chen真是利害, 看了您的程式還是不懂這個無邊框效果是如何達成的?

可否請您說明一下, thanks a lot.

jimmy-chen真利害阿...這個程式真的很新鮮又好玩,希望能向你看齊..因為我是程式初學者..是否能大概說一你寫程式過程..好讓對初學這個程式更了解
 

唉~~真想看耶~

不過小弟的版本是6.i的!不知道有沒有那位大大可以幫忙轉一下!

謝謝!感激不盡

just cool 好玩好玩

無邊框是指Run的時候沒有出現LabView的Manu Bar以及Windows的title bar嗎?
如果是的話你可以在LabView的Help裡面的Index欄位搜尋"hiding" 應該會有答案喔~~

麻煩向各位大俠請教問題:

    如何將7.0版程序轉換成6.1版程序?

    如何將TXT檔轉換成INI檔案

謝謝 啦

你只需要將「2004-07-01_183450_ButtonData.txt」的檔名改成
「ButtonData.ini」即可。

另外這是 6.1 的轉檔。Read_Bmp(6.1).vi

不過因為出現了底下的警告,有可能你不能執行,或是得自行將呼叫到的VI路徑
給修正,因為我手邊沒有 6.1 所以不知道實際執行結果如何。

  • Calc Long Word Padded Width.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Close Config Data.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Common Path to Specific Path.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Close Reference.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Get File Path.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Get Key Value.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Modify Functions.ctl
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Modify.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Open Reference.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Read From File.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data RefNum
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Registry Functions.ctl
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Registry.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Section.ctl
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Set File Path.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data to String.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data Write To File.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Config Data.ctl
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Draw Flattened Pixmap(6_1).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Draw Flattened Pixmap.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Empty Picture
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Flip and Pad for Picture Control.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Get Key Names.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Get Section Names.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    imagedata.ctl
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Info From Config Data.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Invalid Config Data Reference.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Open Config Data.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Parse Stored String (multibyte).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Parse Stored String.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Read BMP File Data.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Read BMP File(6_1).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Read BMP File.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Read BMP Header Info.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
        Cannot save toolkit VI to previous version.
    Read Key (Boolean).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Read Key (Double).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Read Key (I32).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Read Key (Path).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Read Key (String).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Read Key (U32).vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Read Key.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    String to Config Data.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    Trim Whitespace.vi
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.
    whitespace.ctl
      Virtual Instrument
        Cannot save VI from VI.LIB to previous version.

謝謝上樓回復.

我想請教如何將新版本的程式轉換成低版本的方法

例如,如何在7.0軟件中將7.0轉換成6.1版,我還沒有找到相應的轉換方法

請賜教

在 Menu -> File -> Save with options -> Save for Previous

有幾點要注意一下:

  • 應該是從 LabVIEW 7.0 開始吧?!  選單預設會隱藏不常用的功能,
    如果你找不到所要的功能,記得在選單最底下的   ︾   符號按下滑鼠左鍵,
    以展開全部選單。
  • 每個 LabVIEW 都只能往前一個版本存檔,eg.   7.1 -> 7.0 而 7.0 ->6.1

<span =“bold”>感謝Airbolt幫忙從7.0版轉成6.1版
不過用6.1版開啟後…
不能執行~
一執行就當機囉~~

為何我有將檔案改成ButtonData.ini為何還會出現和

Benjamin 一樣的問題呢

 


 

謝謝大俠詳細指點!

我已經會轉換了,再次請教各位大俠怎樣建立一個庫文件.即將幾個子VI一起打包在一個庫文件,建立一個類似於Labview自帶的tutorial.llb一樣的庫文件

謝謝幫忙

剛剛摸索出來了.

 

對阿,我也是運行不了.出現同樣的問題.

請教Jimmy大俠指點

請問大大:

可以教教怎樣可以製作一個六位狀態的撥動開關嗎