Mellroth Posted September 23, 2008 Report Share Posted September 23, 2008 Hi, I'd like to be able to get the current symbol from a selected item in a Tree-control or Listbox control. It is possible to do this for custom symbols, but I'd like to be able to do this for the built in symbols as well. Does anyone know if this is possible, or do I have to create bmp's of all built in symbols from Screenshots? /J Quote Link to comment
orko Posted September 24, 2008 Report Share Posted September 24, 2008 I seem to remember that the built in symbols were accessible just like the custom symbols, but with indexes of 0-39 (0 being blank)..as long as you didn't over-write them with your own symbols at runtime. Is this not the case? See here. Quote Link to comment
Mellroth Posted September 24, 2008 Author Report Share Posted September 24, 2008 QUOTE (orko @ Sep 23 2008, 03:25 AM) Is this not the case? Thanks Orko, I was probably a bit unclear in my first post. Built in symbols are accessible for usage, but in my case I'd like to be able to retrieve the actual pictures being used, regardless if it is a custom symbol or a built in symbol. From the link you posted; QUOTE You can use the Custom Item Symbols:Get Symbol and Custom Item Symbols:Get Symbol Array methods only to retrieve custom symbols. If you use these methods with symbols of indexes 1 through 40, these methods return images only for any custom symbols that overwrite the built-in defaults. The question is whether there is a way around this to actually get the pictures representing the built in symbols? /J Quote Link to comment
orko Posted September 25, 2008 Report Share Posted September 25, 2008 Ah. I see. Well, in that case... nope. Quote Link to comment
gleichman Posted September 25, 2008 Report Share Posted September 25, 2008 QUOTE (orko @ Sep 22 2008, 08:25 PM) I seem to remember that the built in symbols were accessible just like the custom symbols, but with indexes of 0-39 (0 being blank)..as long as you didn't over-write them with your own symbols at runtime. Is this not the case?See http://digital.ni.com/public.nsf/allkb/89A75D98771F2FB686256F350055EB3A' target="_blank">here. Custom symbols in Tree controls and MCLs? And this feature has been in LabVIEW since 8.0? How did I miss this feature? Quote Link to comment
PJM_labview Posted September 25, 2008 Report Share Posted September 25, 2008 QUOTE (JFM @ Sep 22 2008, 01:56 AM) ...Does anyone know if this is possible, or do I have to create bmp's of all built in symbols from Screenshots? What don't you do it programatically, this is pretty easy. Note: While writing a quick example for you I found a LV bug, so look at this http://forums.lavag.org/Buffer-reuse-gone-wrong-t12015.html' target="_blank">thread for the VI. This should be good enough (bug or no bug) for your use case. PJM Quote Link to comment
Mellroth Posted September 25, 2008 Author Report Share Posted September 25, 2008 QUOTE (PJM_labview @ Sep 24 2008, 07:21 PM) What don't you do it programatically, this is pretty easy.Note: While writing a quick example for you I found a LV bug, so look at this http://forums.lavag.org/Buffer-reuse-gone-wrong-t12015.html' target="_blank">thread for the VI. This should be good enough (bug or no bug) for your use case. PJM I had a look at the other thread, very nice little VI :thumbup: Thanks! I first tried to go for a built in method to access the bmp's, but as I realized it could not be done, I also decided to get the images programmatically. So far I haven't got the time to do it, and now you spoil all my fun /J Quote Link to comment
orko Posted September 27, 2008 Report Share Posted September 27, 2008 QUOTE (orko @ Sep 22 2008, 06:25 PM) I seem to remember that the built in symbols were accessible just like the custom symbols... QUOTE (PJM_labview @ Sep 24 2008, 10:21 AM) so look at this thread for the VI. Oh yeah...that's where I remembered it from! :-) Thanks for the link, PJM. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.