ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Determining which border has been dragged in C# Test Executive

Solved!
Go to solution

I've added a listView control to the C# Test Executive in the Execution tab above the axExecutionSteps control. I've added a new border to the top of the axExecutionSteps control but need to determine which is being dragged.

I know I need to determine WhichBorder_Top or WhichBorder_Bottom but don't know how to access this within the  axExecutionSteps_BorderDragged call.

Any Ideas?

 

private void axExecutionSteps_BorderDragged(object sender, NationalInstruments.TestStand.Interop.UI.Ax._SequenceViewEvents_BorderDraggedEvent e)

{

// Need to determine which border is moved. WhichBorders.WhichBorder_Top; ?????

 // Do this when the bottom border of the axExecutionSteps is moved

Splitters.DragSplitter(this.axExecutionSteps, this.axCallStack, e.newX, e.newY, e.newWidth, e.newHeight, e.bordersChanged);

this.ArrangeControls();

// Do this when the top border of the axExecutionSteps is moved

Splitters.DragSplitter(this.axExecutionSteps, this.listView1, e.newX, e.newY, e.newWidth, e.newHeight, e.bordersChanged);

this.ArrangeControls();

}

 

0 Kudos
Message 1 of 3
(3,183 Views)
Solution
Accepted by topic author BrianM

       if (e.bordersChanged == WhichBorders.WhichBorder_Top)

           ...

Message 2 of 3
(3,156 Views)

Brilliant James!

 

I'm new to C# so a bit different from CVI! Your answer worked perfectly!

It's been a long time, but I'm glad to see your still actively involved with TestStand!

 

Many Thanks

 

Brian

0 Kudos
Message 3 of 3
(3,144 Views)