07-20-2005 12:57 PM
07-20-2005 09:13 PM
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...
07-25-2005 10:02 AM
07-25-2005 10:19 AM
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...
07-28-2005 03:36 AM
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
07-28-2005 07:00 AM
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
07-28-2005 07:07 AM
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:
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...
07-28-2005 07:40 AM
Hi Mike,
Yes, the event fires even if the control is disabled.
07-28-2005 07:44 AM
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...
07-30-2005 01:00 AM - edited 07-30-2005 01:00 AM
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