Discussion:
Macintosh application menu item
(too old to reply)
earlevel
2008-04-15 19:40:05 UTC
Permalink
OK, resurrecting a two-year-old thread with the same question: How can I change "About LabView..." in my Mac application's menu to be "About MyApp...", when building a stand-alone? I've figured out how to get my About box to come up--I just need to know how to change the menu. Thanks.
earlevel
2008-04-16 21:10:05 UTC
Permalink
earlevel wrote:OK, resurrecting a two-year-old thread with the same question: How can I change "About LabView..." in my Mac application's menu to be "About MyApp...", when building a stand-alone? I've figured out how to get my About box to come up--I just need to know how to change the menu.Thanks.I find it hard to believe this issue is not addressed in LabView (why support a custom About box, if you can't customize the About menu item?), but after getting no answer and being unable to find anything in the documentation, I wrote an external function in C to replace the menu text.
Karunya_R
2008-04-16 21:10:06 UTC
Permalink
Hi, Which version of LabVIEW are you using? Normally, after you build the application and use the Run-time engine to run the application, the menu shows up as About Application instead of About LabVIEW. However, in LabVIEW 8.5, it still showed up as About LabVIEW which was filed as a CAR and is being worked on by R&D.
earlevel
2008-04-17 07:40:07 UTC
Permalink
Karunya_R wrote:Hi,Which version of LabVIEW are you using? Normally, after you build the application and use the Run-time engine to run the application, the menu shows up as About Application instead of About LabVIEW. However, in LabVIEW 8.5, it still showed up as About LabVIEW which was filed as a CAR and is being worked on by R&D. Thanks for the explanation. I'm using LabView 8.2.1, and yes, I'm seeing the problem in my application under the run-time engine; changing the menu text via C fixes it.
gmiles@inventeering.com
2008-07-31 22:10:09 UTC
Permalink
Did the issue of About LabVIEW appearing in the Application Menu on the Mac get fixed? 
earlevel
2008-07-31 22:40:18 UTC
Permalink
***@inventeering.com wrote:Did the issue of About LabVIEW appearing in the Application Menu on the Mac get fixed?  I just tried building an app in 8.5.1 to make sure--the answer is no.
gmiles@inventeering.com
2008-07-31 23:10:04 UTC
Permalink
Is there a work around where we could call a framework to change the About LabVIEW text? Does anyone have a 3rd party recommendation for a Install Maker for Mac OS X to make installable LabVIEW Applications?
earlevel
2008-07-31 23:10:04 UTC
Permalink
***@inventeering.com wrote:Is there a work around where we could call a framework to change the About LabVIEW text?Does anyone have a 3rd party recommendation for a Install Maker for Mac OS X to make installable LabVIEW Applications? I was already using a framework to do some custom stuff, so I set the menu this way://// SetApplicationMenuTitle//// Work around bug in LabView by replacing "About LabView..." with our own text//void SetApplicationMenuTitle(char *newMenuTitle){ OSStatus status; CFStringRef title = CFStringCreateWithCString(NULL, newMenuTitle, kCFStringEncodingMacRoman); MenuRef mRef = GetMenuRef(1); status = SetMenuItemTextWithCFString(mRef, 1, title); CFRelease(title);} A style point: In OS X Apple dropped the ellipsis ("...") at the end.I'm using Apple's installer (PackageMaker) since I've been on OS X, so I can't help you with other choices--I've used the MindVision installer (VISE) in the past.
gmiles@inventeering.com
2008-07-31 23:10:05 UTC
Permalink
<a href="../view_profile?user.id=93088" class="auth_text" style="font-weight: bold;" target="_blank"> </a> earlevel,Thank for the info...now I have to figure out how to get the mouse wheel info.
earlevel
2008-08-01 09:40:23 UTC
Permalink
***@inventeering.com wrote:<a href="../view_profile?user.id=93088" class="auth_text" style="font-weight: bold;" target="_blank"> </a> earlevel,Thank for the info...now I have to figure out how to get the mouse wheel info.You're welcome. Speaking of mouse info in general, I really need to make knobs and sliders from scratch (external)--hate the way LabVIEW handles them. For instance, the angular dragging of the knobs--it may make sense, but it's awkward and impractical in practice. Most knobs in music/recording apps use vertlcal/horizontal movements, for instance, because it's practical. You can almost fake it by pasting a knob into a slider, but the sliders themselves jump to the mouse location instead of allowing a relative drag--another no-no. Ultimately, I think version 2 of my app will ditch LabView altogether, sorry to say. I'm surprised the knob and sliders don't have more flexibility (or alternate versions) after being out all these years. Other people figured these usability issues out 15-20 years ago (gripe gripe).
gmiles@inventeering.com
2008-08-01 12:40:19 UTC
Permalink
If I understand you right, You can cover the slide path of the slider with a bitmap that should keep it from jumping to the spot if you click on the slide track.... I will check this out and get back to you... you can customize the sliders a lot.&nbsp; Also in the past I have closed the start and stop points on the knobs scale so say 0 and 100 are almost on top of each other, and I have used the knobs like they are on a test digital test equipment so you can rotate them in multiple turning inc.&nbsp;&nbsp; This requires tracking direction.
earlevel
2008-08-07 22:10:08 UTC
Permalink
***@inventeering.com wrote:If I understand you right, You can cover the slide path of the slider with a bitmap that should keep it from jumping to the spot if you click on the slide track.... I will check this out and get back to you... you can customize the sliders a lot.You can put something else transparent on top of them, as you suggest, but I'm not sure if there's a good way to track it within LabVIEW. For instance, you could get a mouse down from the "cover" object, and subsequently use mouse move events to track movement, but you only get those while the mouse is within the object's bounds. You could track it while remaining in the mouse down handler, but I think only the Windows version comes with a VI to track the mouse (obviously I could do it via call function). But then I'd need to make sure I can keep the UI working and not stalled in the mouse-tracking loop... need to think about that...
gmiles@inventeering.com
2008-08-01 12:40:23 UTC
Permalink
Here is code that I am going to put into a Framework so I can use the mouse wheel.&nbsp;&nbsp; Now I just need to get Reading and Writing TIFF files working. case kEventClassMouse:{ &nbsp;&nbsp;&nbsp; switch ( GetEventKind(inEvent) )&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case kEventMouseWheelMoved:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OSStatus status;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UInt32 modifiers;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EventMouseWheelAxis axis;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SInt32 delta;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status = GetEventParameter( inEvent, kEventParamKeyModifiers, typeUInt32, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL, sizeof(modifiers), NULL, &amp;modifiers );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASSERT_NO_ERR(status);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status = GetEventParameter( inEvent, kEventParamMouseWheelAxis, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typeMouseWheelAxis, NULL, sizeof(axis), NULL, &amp;axis );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASSERT_NO_ERR(status);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status = GetEventParameter( inEvent, kEventParamMouseWheelDelta, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typeLongInteger, NULL, sizeof(delta), NULL, &amp;delta );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASSERT_NO_ERR(status);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( axis == kEventMouseWheelAxisY )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SInt32 deltaPixels = 40 * delta;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (modifiers &amp; optionKey)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deltaPixels *= 10;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this-&gt;ScrollVertically( -deltaPixels );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result = noErr;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; break;}
gmiles@inventeering.com
2008-07-31 23:40:20 UTC
Permalink
Here are two screen shot of a little different LabVIEW Application I am developing that runs both on the PC and the Mac..<img src="Loading Image..."> <img src="Loading Image...">
gmiles@inventeering.com
2008-08-01 09:10:11 UTC
Permalink
This is another annoying thing with LabVIEW on the Mac... the native dialog box for opening and saving files has a Go to LabVIEW Folder button. Any ideas on how to get ride of it?.... I changed the native dialog flag in Options and in the development environment it works, but not after a build app. <img src="Loading Image...">&nbsp;
Loading...