2009-11-14 22:15:22 +00:00
|
|
|
/***********************************/
|
|
|
|
/* Edit segments and edges of PCB. */
|
|
|
|
/***********************************/
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "common.h"
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "class_drawpanel.h"
|
|
|
|
#include "confirm.h"
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "pcbnew.h"
|
2009-07-30 11:04:07 +00:00
|
|
|
#include "wxPcbStruct.h"
|
2009-10-28 11:48:47 +00:00
|
|
|
#include "class_board_design_settings.h"
|
2009-07-30 11:04:07 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
#include "protos.h"
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2011-02-13 17:53:48 +00:00
|
|
|
static void Abort_EditEdge( EDA_DRAW_PANEL* Panel, wxDC* DC );
|
2011-02-03 19:27:28 +00:00
|
|
|
static void Montre_Position_NewSegment( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
|
|
|
|
const wxPoint& aPosition, bool aErase );
|
|
|
|
static void Move_Segment( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosition,
|
|
|
|
bool aErase );
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
static wxPoint s_InitialPosition; // Initial cursor position.
|
|
|
|
static wxPoint s_LastPosition; // Current cursor position.
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
|
|
|
/* Start move of a graphic element type DRAWSEGMENT */
|
|
|
|
void WinEDA_PcbFrame::Start_Move_DrawItem( DRAWSEGMENT* drawitem, wxDC* DC )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2007-08-20 01:20:48 +00:00
|
|
|
if( drawitem == NULL )
|
|
|
|
return;
|
2008-04-01 06:32:48 +00:00
|
|
|
drawitem->Draw( DrawPanel, DC, GR_XOR );
|
2007-08-20 01:20:48 +00:00
|
|
|
drawitem->m_Flags |= IS_MOVED;
|
2011-02-11 20:48:13 +00:00
|
|
|
s_InitialPosition = s_LastPosition = GetScreen()->GetCrossHairPosition();
|
2009-04-17 08:51:02 +00:00
|
|
|
drawitem->DisplayInfo( this );
|
2011-02-13 17:53:48 +00:00
|
|
|
DrawPanel->SetMouseCapture( Move_Segment, Abort_EditEdge );
|
2007-09-12 02:14:07 +00:00
|
|
|
SetCurItem( drawitem );
|
2011-02-11 20:48:13 +00:00
|
|
|
DrawPanel->m_mouseCaptureCallback( DrawPanel, DC, wxDefaultPosition, false );
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
/*
|
2009-11-14 22:15:22 +00:00
|
|
|
* Place graphic element of type DRAWSEGMENT.
|
2007-08-20 01:20:48 +00:00
|
|
|
*/
|
2009-11-14 22:15:22 +00:00
|
|
|
void WinEDA_PcbFrame::Place_DrawItem( DRAWSEGMENT* drawitem, wxDC* DC )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2007-08-20 01:20:48 +00:00
|
|
|
if( drawitem == NULL )
|
|
|
|
return;
|
|
|
|
|
2011-02-13 17:53:48 +00:00
|
|
|
drawitem->m_Flags = 0;
|
2009-08-06 15:42:09 +00:00
|
|
|
SaveCopyInUndoList(drawitem, UR_MOVED, s_LastPosition - s_InitialPosition);
|
2008-04-01 06:32:48 +00:00
|
|
|
drawitem->Draw( DrawPanel, DC, GR_OR );
|
2011-02-11 20:48:13 +00:00
|
|
|
DrawPanel->SetMouseCapture( NULL, NULL );
|
2007-09-12 02:14:07 +00:00
|
|
|
SetCurItem( NULL );
|
2010-02-19 13:23:58 +00:00
|
|
|
OnModify();
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
/*
|
|
|
|
* Redraw segment during cursor movement.
|
|
|
|
*/
|
2011-02-03 19:27:28 +00:00
|
|
|
static void Move_Segment( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosition,
|
|
|
|
bool aErase )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2011-02-03 19:27:28 +00:00
|
|
|
DRAWSEGMENT* Segment = (DRAWSEGMENT*) aPanel->GetScreen()->GetCurItem();
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
if( Segment == NULL )
|
|
|
|
return;
|
|
|
|
|
2011-02-03 19:27:28 +00:00
|
|
|
if( aErase )
|
|
|
|
Segment->Draw( aPanel, aDC, GR_XOR );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
wxPoint delta;
|
2011-02-11 20:48:13 +00:00
|
|
|
delta = aPanel->GetScreen()->GetCrossHairPosition() - s_LastPosition;
|
2009-08-06 15:42:09 +00:00
|
|
|
Segment->m_Start += delta;
|
|
|
|
Segment->m_End += delta;
|
2011-02-11 20:48:13 +00:00
|
|
|
s_LastPosition = aPanel->GetScreen()->GetCrossHairPosition();
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2011-02-03 19:27:28 +00:00
|
|
|
Segment->Draw( aPanel, aDC, GR_XOR );
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-08-20 01:20:48 +00:00
|
|
|
void WinEDA_PcbFrame::Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2010-12-08 20:12:46 +00:00
|
|
|
EDA_ITEM* PtStruct;
|
|
|
|
int track_fill_copy = DisplayOpt.DisplayDrawItems;
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
if( Segment == NULL )
|
|
|
|
return;
|
|
|
|
|
2011-02-21 13:54:29 +00:00
|
|
|
if( Segment->IsNew() ) // Trace in progress.
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2009-11-14 22:15:22 +00:00
|
|
|
/* Delete current segment. */
|
2007-08-20 01:20:48 +00:00
|
|
|
DisplayOpt.DisplayDrawItems = SKETCH;
|
2008-04-01 06:32:48 +00:00
|
|
|
Segment->Draw( DrawPanel, DC, GR_XOR );
|
2008-11-24 06:53:43 +00:00
|
|
|
PtStruct = Segment->Back();
|
2007-10-03 15:21:13 +00:00
|
|
|
Segment ->DeleteStructure();
|
2008-12-04 04:28:11 +00:00
|
|
|
if( PtStruct && (PtStruct->Type() == TYPE_DRAWSEGMENT ) )
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment = (DRAWSEGMENT*) PtStruct;
|
|
|
|
DisplayOpt.DisplayDrawItems = track_fill_copy;
|
2007-09-12 02:14:07 +00:00
|
|
|
SetCurItem( NULL );
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
2009-11-14 22:15:22 +00:00
|
|
|
else if( Segment->m_Flags == 0 )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2008-04-01 06:32:48 +00:00
|
|
|
Segment->Draw( DrawPanel, DC, GR_XOR );
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment->m_Flags = 0;
|
2009-07-29 13:10:36 +00:00
|
|
|
SaveCopyInUndoList(Segment, UR_DELETED);
|
|
|
|
Segment->UnLink();
|
2007-09-12 02:14:07 +00:00
|
|
|
SetCurItem( NULL );
|
2010-02-19 13:23:58 +00:00
|
|
|
OnModify();
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-08-11 10:27:21 +00:00
|
|
|
void WinEDA_PcbFrame::Delete_Drawings_All_Layer( int aLayer )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2009-08-11 10:27:21 +00:00
|
|
|
if( aLayer <= LAST_COPPER_LAYER )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2009-11-14 22:15:22 +00:00
|
|
|
DisplayError( this, _( "Copper layer global delete not allowed!" ) );
|
2007-08-20 01:20:48 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2009-08-11 10:27:21 +00:00
|
|
|
wxString msg = _( "Delete Layer " ) + GetBoard()->GetLayerName( aLayer );
|
2007-08-20 01:20:48 +00:00
|
|
|
if( !IsOK( this, msg ) )
|
|
|
|
return;
|
|
|
|
|
2009-08-06 15:42:09 +00:00
|
|
|
PICKED_ITEMS_LIST pickList;
|
|
|
|
ITEM_PICKER picker(NULL, UR_DELETED);
|
2009-08-11 10:27:21 +00:00
|
|
|
|
2008-04-01 05:21:50 +00:00
|
|
|
BOARD_ITEM* PtNext;
|
2009-01-05 05:21:35 +00:00
|
|
|
for( BOARD_ITEM* item = GetBoard()->m_Drawings; item; item = PtNext )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2008-04-01 05:21:50 +00:00
|
|
|
PtNext = item->Next();
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2008-04-01 05:21:50 +00:00
|
|
|
switch( item->Type() )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2008-12-04 04:28:11 +00:00
|
|
|
case TYPE_DRAWSEGMENT:
|
|
|
|
case TYPE_TEXTE:
|
2010-04-23 09:54:40 +00:00
|
|
|
case TYPE_DIMENSION:
|
2009-08-11 10:27:21 +00:00
|
|
|
case TYPE_MIRE:
|
|
|
|
if( item->GetLayer() == aLayer )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2009-08-06 15:42:09 +00:00
|
|
|
item->UnLink();
|
|
|
|
picker.m_PickedItem = item;
|
2009-11-14 22:15:22 +00:00
|
|
|
pickList.PushItem( picker );
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2009-08-11 10:27:21 +00:00
|
|
|
{
|
|
|
|
wxString msg;
|
2009-11-14 22:15:22 +00:00
|
|
|
msg.Printf( wxT("Delete_Drawings_All_Layer() error: unknown type %d"),
|
|
|
|
item->Type() );
|
2009-08-11 10:27:21 +00:00
|
|
|
wxMessageBox( msg );
|
2007-08-20 01:20:48 +00:00
|
|
|
break;
|
|
|
|
}
|
2009-08-11 10:27:21 +00:00
|
|
|
}
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
2009-08-06 15:42:09 +00:00
|
|
|
|
|
|
|
if( pickList.GetCount() )
|
|
|
|
{
|
2010-02-19 13:23:58 +00:00
|
|
|
OnModify();
|
2009-08-11 10:27:21 +00:00
|
|
|
SaveCopyInUndoList(pickList, UR_DELETED);
|
2009-08-06 15:42:09 +00:00
|
|
|
}
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-02-13 17:53:48 +00:00
|
|
|
static void Abort_EditEdge( EDA_DRAW_PANEL* Panel, wxDC* DC )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2007-08-20 01:20:48 +00:00
|
|
|
DRAWSEGMENT* Segment = (DRAWSEGMENT*) Panel->GetScreen()->GetCurItem();
|
|
|
|
|
|
|
|
if( Segment == NULL )
|
2011-02-13 17:53:48 +00:00
|
|
|
{
|
|
|
|
Panel->SetMouseCapture( NULL, NULL );
|
2007-08-20 01:20:48 +00:00
|
|
|
return;
|
2011-02-13 17:53:48 +00:00
|
|
|
}
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2011-02-21 13:54:29 +00:00
|
|
|
if( Segment->IsNew() )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2011-02-11 20:48:13 +00:00
|
|
|
Panel->m_mouseCaptureCallback( Panel, DC, wxDefaultPosition, false );
|
2007-10-03 15:21:13 +00:00
|
|
|
Segment ->DeleteStructure();
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment = NULL;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2011-02-11 20:48:13 +00:00
|
|
|
wxPoint pos = Panel->GetScreen()->GetCrossHairPosition();
|
|
|
|
Panel->GetScreen()->SetCrossHairPosition( s_InitialPosition );
|
|
|
|
Panel->m_mouseCaptureCallback( Panel, DC, wxDefaultPosition, true );
|
|
|
|
Panel->GetScreen()->SetCrossHairPosition( pos );
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment->m_Flags = 0;
|
2008-04-01 06:32:48 +00:00
|
|
|
Segment->Draw( Panel, DC, GR_OR );
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
2011-02-11 20:48:13 +00:00
|
|
|
|
2011-02-13 17:53:48 +00:00
|
|
|
Panel->SetMouseCapture( NULL, NULL );
|
2009-12-21 12:05:36 +00:00
|
|
|
( (WinEDA_PcbFrame*) Panel->GetParent() )->SetCurItem( NULL );
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
/* Initialize the drawing of a segment of type other than trace.
|
|
|
|
*/
|
2007-08-20 01:20:48 +00:00
|
|
|
DRAWSEGMENT* WinEDA_PcbFrame::Begin_DrawSegment( DRAWSEGMENT* Segment,
|
|
|
|
int shape, wxDC* DC )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2007-08-20 01:20:48 +00:00
|
|
|
int s_large;
|
|
|
|
int angle = 0;
|
|
|
|
DRAWSEGMENT* DrawItem;
|
|
|
|
|
2010-01-31 20:01:46 +00:00
|
|
|
s_large = GetBoard()->GetBoardDesignSettings()->m_DrawSegmentWidth;
|
|
|
|
if( getActiveLayer() == EDGE_N )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2010-01-31 20:01:46 +00:00
|
|
|
s_large = GetBoard()->GetBoardDesignSettings()->m_EdgeSegmentWidth;
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if( shape == S_ARC )
|
|
|
|
angle = 900;
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
if( Segment == NULL ) /* Create new trace. */
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2009-01-05 05:21:35 +00:00
|
|
|
SetCurItem( Segment = new DRAWSEGMENT( GetBoard() ) );
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment->m_Flags = IS_NEW;
|
2010-01-31 20:01:46 +00:00
|
|
|
Segment->SetLayer( getActiveLayer() );
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment->m_Width = s_large;
|
|
|
|
Segment->m_Shape = shape;
|
|
|
|
Segment->m_Angle = 900;
|
2011-02-11 20:48:13 +00:00
|
|
|
Segment->m_Start = Segment->m_End = GetScreen()->GetCrossHairPosition();
|
2011-02-13 17:53:48 +00:00
|
|
|
DrawPanel->SetMouseCapture( Montre_Position_NewSegment, Abort_EditEdge );
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
2009-11-15 14:12:53 +00:00
|
|
|
else /* The ending point ccordinate Segment->m_End was updated by he function
|
|
|
|
* Montre_Position_NewSegment() called on a move mouse event
|
|
|
|
* during the segment creation
|
|
|
|
*/
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2008-12-04 04:28:11 +00:00
|
|
|
if( Segment->m_Start != Segment->m_End )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
|
|
|
if( Segment->m_Shape == S_SEGMENT )
|
|
|
|
{
|
2009-08-06 15:42:09 +00:00
|
|
|
SaveCopyInUndoList(Segment, UR_NEW );
|
2009-01-05 05:21:35 +00:00
|
|
|
GetBoard()->Add( Segment );
|
2008-12-04 04:28:11 +00:00
|
|
|
|
2010-02-19 13:23:58 +00:00
|
|
|
OnModify();
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment->m_Flags = 0;
|
|
|
|
|
2008-04-01 06:32:48 +00:00
|
|
|
Segment->Draw( DrawPanel, DC, GR_OR );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
DrawItem = Segment;
|
|
|
|
|
2009-01-05 05:21:35 +00:00
|
|
|
SetCurItem( Segment = new DRAWSEGMENT( GetBoard() ) );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
Segment->m_Flags = IS_NEW;
|
2007-08-23 04:28:46 +00:00
|
|
|
Segment->SetLayer( DrawItem->GetLayer() );
|
2007-08-20 01:20:48 +00:00
|
|
|
Segment->m_Width = s_large;
|
|
|
|
Segment->m_Shape = DrawItem->m_Shape;
|
|
|
|
Segment->m_Type = DrawItem->m_Type;
|
|
|
|
Segment->m_Angle = DrawItem->m_Angle;
|
|
|
|
Segment->m_Start = Segment->m_End = DrawItem->m_End;
|
2011-02-03 19:27:28 +00:00
|
|
|
Montre_Position_NewSegment( DrawPanel, DC, wxDefaultPosition, false );
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
End_Edge( Segment, DC );
|
|
|
|
Segment = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return Segment;
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-08-20 01:20:48 +00:00
|
|
|
void WinEDA_PcbFrame::End_Edge( DRAWSEGMENT* Segment, wxDC* DC )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2007-08-20 01:20:48 +00:00
|
|
|
if( Segment == NULL )
|
|
|
|
return;
|
2008-04-01 06:32:48 +00:00
|
|
|
Segment->Draw( DrawPanel, DC, GR_OR );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
/* Delete if segment length is zero. */
|
|
|
|
if( Segment->m_Start == Segment->m_End )
|
2007-10-03 15:21:13 +00:00
|
|
|
Segment ->DeleteStructure();
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
Segment->m_Flags = 0;
|
2009-01-05 05:21:35 +00:00
|
|
|
GetBoard()->Add( Segment );
|
2010-02-19 13:23:58 +00:00
|
|
|
OnModify();
|
2009-11-14 22:15:22 +00:00
|
|
|
SaveCopyInUndoList( Segment, UR_NEW );
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
|
|
|
|
2011-02-11 20:48:13 +00:00
|
|
|
DrawPanel->SetMouseCapture( NULL, NULL );
|
2007-09-12 02:14:07 +00:00
|
|
|
SetCurItem( NULL );
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
/* Redraw segment during cursor movement
|
|
|
|
*/
|
2011-02-03 19:27:28 +00:00
|
|
|
static void Montre_Position_NewSegment( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
|
|
|
|
const wxPoint& aPosition, bool aErase )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2011-02-03 19:27:28 +00:00
|
|
|
DRAWSEGMENT* Segment = (DRAWSEGMENT*) aPanel->GetScreen()->GetCurItem();
|
2007-08-20 01:20:48 +00:00
|
|
|
int t_fill = DisplayOpt.DisplayDrawItems;
|
|
|
|
|
|
|
|
if( Segment == NULL )
|
|
|
|
return;
|
|
|
|
|
|
|
|
DisplayOpt.DisplayDrawItems = SKETCH;
|
|
|
|
|
2011-02-03 19:27:28 +00:00
|
|
|
if( aErase )
|
|
|
|
Segment->Draw( aPanel, aDC, GR_XOR );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
if( Segments_45_Only && ( Segment->m_Shape == S_SEGMENT ) )
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2011-02-11 20:48:13 +00:00
|
|
|
Calcule_Coord_Extremite_45( aPanel->GetScreen()->GetCrossHairPosition(),
|
2011-01-31 18:26:12 +00:00
|
|
|
Segment->m_Start.x, Segment->m_Start.y,
|
2007-08-20 01:20:48 +00:00
|
|
|
&Segment->m_End.x, &Segment->m_End.y );
|
|
|
|
}
|
2009-11-14 22:15:22 +00:00
|
|
|
else /* here the angle is arbitrary */
|
2007-08-20 01:20:48 +00:00
|
|
|
{
|
2011-02-11 20:48:13 +00:00
|
|
|
Segment->m_End = aPanel->GetScreen()->GetCrossHairPosition();
|
2007-08-20 01:20:48 +00:00
|
|
|
}
|
|
|
|
|
2011-02-03 19:27:28 +00:00
|
|
|
Segment->Draw( aPanel, aDC, GR_XOR );
|
2007-08-20 01:20:48 +00:00
|
|
|
DisplayOpt.DisplayDrawItems = t_fill;
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|