09-16-2010 02:41 PM
I don't know the answers to any of those questions off-hand...I'll see if I can get somebody to help us out (I don't have the time right now to investigate them myself...)
09-16-2010 02:46 PM
Daklu:
1. That was posted on lava and was a simple hack. There was a Localization vi where you could replace the Write by Set. I think the post was AQ informing us about the hook.
Felix
09-16-2010 07:42 PM
Thanks Felix! I found the post here. The strings are located in a global vi found at LVClassLibrary\NewAccessors\CLSUIP_LocalizedStrings.vi.
"I don't have the time right now to investigate them myself..."
No worries, it's not a blocking issue for me and I'm not the one that writes your yearly review anyway... 😄
09-20-2010 02:25 PM
@Daklu wrote:
2. I opened the ReadIcon and WriteIcon bitmaps and resaved them as pure white images. The glasses and pencil icons still show up on my accessor methods. Is there a way to remove them?
You need to edit the icon creation VIs. Those glyphs are programmatically applied because they are moved around depending on what kind of library banner your class has defined. They try to find an available block of white space left after the library layer is put in place. When I posted the password removal, two of the VIs that I unlocked were in the icon editor directory. Those are the ones you're looking for.
@Daklu wrote:
3. The template fp decoration points to the spot where the top-left corner of the label will be positioned. Is there a way to ignore the label when positioning? (Yes, I realize I'm being pedantic... I'm just asking...)
I don't know whether it pays attention to the label or if the label is just pointing to a position and that position is set programmatically. You'd have to check the VIs themselves.
Daklu wrote:4. On the template block diagrams moved the input controls closer to the case structure and moved the labels so the right edges line up with the right edges of the terminal. It stuck for the error in terminal, but the other terminals still line up on the left sides. Can that behavior be modified?
It's software. Anything _can_ be changed. If you changed the template, you'll need to change the VIs that do the scripting to compensate.
09-22-2010 11:02 AM
@Aristos Queue wrote:
When I posted the password removal
Password removal? I must have missed that one...
@Aristos Queue wrote:
If you changed the template...
Hmm... I guess I'm too dumb to do this customization. I changed all the templates and (other than the icon files and localization vi mentioned previously) nothing else. It was working okay the day I tested the edit, but after reloading I've pretty much broken everything that has to do with the shortcuts for adding accessors to classes. My last attempt was to add a Get Path accessor to my class. Instead of adding an accessor, it added Get Path.vi from the NIIconEditor library.
I had renamed the original templates and created copies to do the modification. I thought that might have caused the trouble, but changing back to the original templates hasn't fixed the problem. All my templates claim to be part of the owning class, even the copies. ("ReadTemplate - Modified.vit", etc.) That shouldn't cause a problem since they're never loaded into memory. The class file still contains the correct names for the templates.
I'm puzzled about what's happening under the hood that's causing this problem.
09-23-2010 02:59 PM - edited 09-23-2010 02:59 PM
> Password removal? I must have missed that one...
...
> I'm puzzled about what's happening under the hood that's causing this problem.
Here you go:
http://decibel.ni.com/content/docs/DOC-13196
and
09-24-2010 02:22 PM
Here you go...
Thank you sir. My computer is much happier now.