LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Button problem in tabPanel

hallo,

I have a little Problem with a button in a tabPanel.
I have uploaded the cut down version of my program.

What I would like to have:
click on the button in the tabPanel >> text output in the string window

Who can halp me?
What's wrong in my program?
0 Kudos
Message 1 of 10
(3,962 Views)
Please attach your source code if you want anyone to find a problem.
Attach *.prj, *.uir, *.c, *.h. For a typical project, you don't need to post any other files.
Do not attach *.exe, *.cdb, *.nidobj, or *.niobj. These files just inflate the size of your post and are easily rebuilt if you post the source files.
0 Kudos
Message 2 of 10
(3,945 Views)
ok, here is only the *.prj, *.cws

I could start it with only this two files.

I think thats all you need. I hope!

Message Edited by Greber on 04-18-2005 07:52 AM

0 Kudos
Message 3 of 10
(3,946 Views)
Sorry, we need the source files I listed in my first post.
Based on the contents of your .prj file, it looks like you need to post the following files (and no others).
versuch.prj
versuch.uir
versuch.c
versuch.h
0 Kudos
Message 4 of 10
(3,937 Views)
ok in this *.zip is the *.prj, *.c, *.h and *.uir
0 Kudos
Message 5 of 10
(3,936 Views)
Trying to open this one I get the error message: "Cannot open file: it does not appear to be a valid archive."
0 Kudos
Message 6 of 10
(3,927 Views)
Me too.... "it is not a valid archive", please, re-post a valid one, so that we can examinate it!

Bye!
0 Kudos
Message 7 of 10
(3,919 Views)
Hallo again,
so I wrote this little program again and will now post it.

It contains:
output.c output.h output.cws output.prj output.uir

Thanks for your patience.
Florian
0 Kudos
Message 8 of 10
(3,902 Views)
Hi Florian,

your problem is related to the Tab panel's principle: the tabbed panels are child panels of the panel onto which are located, and they have different handles, so you cannot acces control on the main panel with the handle of the tabbed one.

In your SICKNESS_FUNC callback modify the code as follows:
GetPanelAttribute (panel, ATTR_PANEL_PARENT, &parentPanel);
SetCtrlVal(parentPanel, PANEL_STRING, "HALLO");

In case you need to heavily access controls on different panels inside your program, you could consider storing their handles into global variables to access them more easily.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 9 of 10
(3,890 Views)
thank you so much!

it works. thx

Florian
0 Kudos
Message 10 of 10
(3,881 Views)