LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why i am not getting Visible property of combo box

I want to alter the Visible property of the ActiveX combo box used in my LabVIEW application but i am not getting Visble property available when i tide the refnum of combobox to the property node. i also tried the properties of text box there also i couldnt found visible property. as per my knowledge in VB i can see the visible property for these two control.
can anybody help me to sort out this problem
0 Kudos
Message 1 of 15
(3,611 Views)

I think that what you have to do is play with the visible property of the LV activex container holding the combo box. Can you post code?

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 15
(3,594 Views)
Please find attached vi. actually there is nothing much inside this vi. on front panel i have placed an ActiveX container with combo box in it. and then i am trying to access all the properties of the combo box in block diagram. but we can observe that visible, height and width properties are mising from the selectable properties(along with some other properties).
Actually i wanted to programattically wanted to reposition the ring control in my code. but that is appearing immpossible. hence i decided to use activeX controls (what i m trying to do is possible with same activex controls in VB)
Can Anybody help me please
0 Kudos
Message 3 of 15
(3,575 Views)

I'll look at your code, but in the mean time let's talk a minute about your original problem. What do you mean that you couldn't "reposition" a ring control? You should be able to programatically move a control anywhere you want. What exactly is it that you were wanting to do?

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 15
(3,569 Views)

My requirement is simple

in my program i want one table to be filled up by the user. but i dont want to let user type the strings  in the cell instead i want user to select the appropriate item in the ring. so what i am planning to do is as follows.

1. i ll display the table (which will be disabled)

2. when user clicks on the table i ll detect which column and row is clicked and i ll resize the Ring control to the appropriate cell size and reposition it.

3. after that i ll make ring control visible so that user can select the item.

4. after seletion i ll again hide the ring control and then i ll fill up the selected item in the table

 

thanks

tushar

0 Kudos
Message 5 of 15
(3,552 Views)

Hi,

That looks not so difficult to achieve with LV.

Let's use a table and an event structure for example.

The table state is Disabled.

The event case need to fire when mouse is down.

In the Event Case you get Coord that will give the coordinates of the mouse click.

With a property node of the Table you can get, its position and with a little bit of coding* also the cells size and cells positions.

So with that you can set the Menu Ring position and size through its property node : Position & Named Numeric Size

You can also make it visible, still with property node.

The ring would appear in a initial state so that the user always need to click on it and change its value to select the right item.

So, another case can handle that:

                                -  Fill the cell, because we already know which one it is

                                -  Hide the ring and reset it to initial value

 

Otherwise, if the different items are the same for all the cells (or that there are not too many different ones), you could just

use an array of menu rings...

Hope this helps.

* Using  For loops and a property node of the Table =>Active Cell & Cell Size

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 6 of 15
(3,544 Views)

Yes, this should be a very easy goal to accompllish as I have seen it done many times. What happened when you tried this? DO you still have the code that you were working with? A couple potential problems I can think of right of hand:

  1. The Z-ordering of the controls could be wrong. i.e. the ring control could be behind the table, not on top of it.
  2. I'm not sure that you can pick up mouse click events from indicators that are disabled.

You shouldn't need to go to Active X controls. BTW: Concerning the code you posted earlier, I can't get the control to become visible!

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 15
(3,543 Views)

Hi Mike,

Yes, the event fires even if the control is disabled.

 

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 8 of 15
(3,536 Views)

Cool, I have never tried it so I wasn't sure. In any case if we can see the code we can figure out what is happening. This should be very easy to do.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 9 of 15
(3,530 Views)

Hi Dai

Thanks for the suggestions. but what you have told is already implemented in my code. the thing that i cant achieve is as follows

i want to resize my ring control to exactly match the table cell size. (and bounds property is read only) In my application user can change the column width of table run time (by dragging column line)

This was the main reason for shifting towards activeX controls. is there any property for ring control (actually any control) that can be used to modify the size of control RUNTIME

Message Edited by Tushar j on 07-30-2005 01:02 AM

0 Kudos
Message 10 of 15
(3,515 Views)