LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access to Status bar

Has anyone had any success in accessing the Window status bar from
LabVIEW (v6.02)? I want to be able to set and clear the text displayed
status bar of the vi's parent Window.

I know how to do it from VB (via the comctl32.dll etc.) but this needs a
handle to the status bar itself and I don't want to go down to this
level if the problem's already been solved in LabVIEW.

John
0 Kudos
Message 1 of 8
(4,493 Views)
what status bar ? give an example ...

"John" wrote in message news:3B8F70AA.9C2CD51B@no.email...
> Has anyone had any success in accessing the Window status bar from
> LabVIEW (v6.02)? I want to be able to set and clear the text displayed
> status bar of the vi's parent Window.
>
> I know how to do it from VB (via the comctl32.dll etc.) but this needs a
> handle to the status bar itself and I don't want to go down to this
> level if the problem's already been solved in LabVIEW.
>
> John
>
0 Kudos
Message 2 of 8
(4,493 Views)
That's the trouble, it's not there in a LabVIEW front panel window!

The status bar that I'm asking about is the strip at the bottom of a "normal"
window where you can display text, icons etc. It belongs to the _window_ not
to the vi.

e.g:
- In Netscape, it's the bar at the bottom where the URL of a link appears
when the mouse is over the hyper-link text, or where "Connected to ...waiting
for reply." appears.

- In Windows explorer, it's' the bar at the bottom that shows how many
objects have been selected.

If the status bar could be controlled from LabVIEW, it would provide a
"standard" place to send text that showed the progress/state of the program,
rather than have to use a front panl text box.

To create a status bar involves a windows call.
see: http:/
/www.zdnet.com/pcmag/issues/1504/pcm00104.htm
This gives you a handle to the status bar "object". Messages are then sent to
the status bar to show/clear text etc.

Hope this clarifies things, thanks for taking an interest ......


John


BOX wrote:

> what status bar ? give an example ...
>
> "John" wrote in message news:3B8F70AA.9C2CD51B@no.email...
> > Has anyone had any success in accessing the Window status bar from
> > LabVIEW (v6.02)? I want to be able to set and clear the text displayed
> > status bar of the vi's parent Window.
> >
> > I know how to do it from VB (via the comctl32.dll etc.) but this needs a
> > handle to the status bar itself and I don't want to go down to this
> > level if the problem's already been solved in LabVIEW.
> >
> > John
> >
0 Kudos
Message 3 of 8
(4,493 Views)
I think the status bar only belongs to the window if the application program creates it. Since LabVIEW does not create a status bar, there's nothing to control. Just like creating a toolbar, it would probably be very simple to create a status area with LabVIEW.
0 Kudos
Message 4 of 8
(4,493 Views)
John,
I've been able to use the "Windows" status bar within Labview as an ActiveX control. I've also been able to use the Microsoft Toolbar control in the same manner. You must place an ActiveX container on your Front Panel and insert the correct ActiveX control. From that point the ActiveX container becomes a reference and its properties are avaliable using property nodes and its methods avaliable using invoke nodes. In the case of the Status bar you should be able to make all of your "panels" at design time and then make a change to a "panel" at runtime using property nodes. Its not as nice as VB but the same thing can be accomplished.
0 Kudos
Message 5 of 8
(4,493 Views)
I saw something about a Status Bar VI on this site http://gtoolbox.topcool.net/
but I didn't tried it ... maybe it's what you need
Message 6 of 8
(4,493 Views)
Lab Viewer wrote:

> I saw something about a Status Bar VI on this site
> http://gtoolbox.topcool.net/
> but I didn't tried it ... maybe it's what you need

=====================================

This looks promising, I'll take a look.

There's another thread going (see below) that gives a link to similar
Win32 API wrappers on the NI web-site. I've had some success in adapting
their technique for Status Bar use.

Thanks for all the responses, I've got plenty to work with.


John

========================================================


Subject:
Re: Is there a VI that returns a window handle?
Date: Mon, 3 Sep 2001 19:20:19 -0700 (PDT)
From: Enrique
Newsgroups: comp.lang.labview
References: 1

The link in my previous
answer seems to be broken now. Check the
following links:

Windows API Function Utilities (32-bit) for LabVIEW
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/ebf11dd1f0feaef3862566790072a983?OpenDocument

Windows Utilities (16-bit) for LabVIEW
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&45F48A9B1A788CF08625683A000A5C11&cat=034E59A8530E09DF862568900018707A

Best regards;
Enrique
0 Kudos
Message 7 of 8
(4,493 Views)
Good link for other VIs too ...
thanks
0 Kudos
Message 8 of 8
(4,493 Views)