Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Control Array

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
mahinda Posted - 31 May 2005 : 11:44:42
Can we make a control array with Meter or scroll graph User Controls. I attempted to make one but I am getting an error at the time.
5   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 06 Jun 2005 : 15:14:34
All of the objects added to the ChartView are stored in a list. If you want to reset the list back to empty, you can do that with the ChartView ResetChartObjList method.


private void InitializeMeter()
{
  ChartView chartVu  = this;
  this.ResetChartObjectList();
  CartesianCoordinates pTransform1 = new CartesianCoordinates( 0.0, 0.0, 1.0, ymax);


You should also verify by placing a breakpoint in the InitializeMeter method that the method is being called everytime the button is clicked, and that indeed the new parameters for the meter reflect the parameters that you want.
mahinda Posted - 06 Jun 2005 : 12:47:47
I have a user control with a meter. I have a form where I have drawn (drop) the user control and then a listbox. I also have a button.

The user select an item from the listbox and then click on the button. According to the item the meter control should change. For example each item on the listbox has a unque description, Minimum, Maximum values, Min and Max alarms values and Units. Based on the item the timer1 gets its value from different locations.

What I did was every time the user click on the button I go and get the parameters as I explained above and then called UserControl1.InitializeGraph(). Inside the InitializeGraph() I have InitializeMeter(). It works alright for the first selection. But next time onwards the parameters of the graph does not change.

How should I clean up the previous Initialize before called it with different set of parameters. In other words how can we destroy the previous instance
quinncurtis Posted - 01 Jun 2005 : 17:35:55
You should be able to do what you describe. It seems that you should be able to create a single User Control that combines a list box and one of our graphs, that does what you want. Once you get that to work you would create 4 instances of that control, one for each quatrant. It sounds like a general .Net programming issue and not directly related to the QCRTGraph .Net software.
mahinda Posted - 01 Jun 2005 : 16:41:29
Lets say we have a list of names on a list box. The user can pick any name from the list. Each name represent a seperate set of parameters those you need to draw a meter or graph (Title, Value, Max and Minimum values etc).

What I want to do is when a user pick a name from the list I want to graph a meter or graph with the relevant parameters belongs to the selected name. So every time the parameters of the control change according to the name the user pick. This means probably I may have to call InitializeGraph every time a user pick a name.

I need a form with four meters in the locations (Top left, Top right, Bottom left and Bottom right) and the user should able to select any of those and then pick a name from the list. That way the newly picked meter will display on the location that the user selected. (ex: Top left)
quinncurtis Posted - 31 May 2005 : 12:46:07
I don't know what you mean by a control array, or what you are trying to do with it. Please explain in much more detail.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07