DEFINE_EVENT_TYPE(wxEVT_TSBAR)
DEFINE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL)
DEFINE_EVENT_TYPE(wxEVT_TSBAR_START)
DEFINE_EVENT_TYPE(wxEVT_TSBAR)
DEFINE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL)
DEFINE_EVENT_TYPE(wxEVT_TSBAR_START)
//----------------------------------------------------------------------------
//EVENT TABLE
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//EVENT TABLE
//----------------------------------------------------------------------------
mBarRange::mBarRange(wxWindow *parent, int w, int h)
:wxScrolledWindow(parent,-1,wxDefaultPosition,wxDefaultSize,wxTAB_TRAVERSAL)
{
mBarRange::mBarRange(wxWindow *parent, int w, int h)
:wxScrolledWindow(parent,-1,wxDefaultPosition,wxDefaultSize,wxTAB_TRAVERSAL)
{
- int pxStart=GetPixelStart();
- int pxEnd=GetPixelEnd();
- int pxActual=GetPixelActual();
+ int pxStart = GetPixelStart();
+ int pxEnd = GetPixelEnd();
+ int pxActual = GetPixelActual();
temp_dc.SetBrush(wxBrush( wxColour(104,104,104),wxSOLID ));
temp_dc.SetPen(wxPen( wxColour(104,104,104),1,wxSOLID ));
temp_dc.DrawPolygon(3,points,0,px1);
temp_dc.DrawPolygon(3,points,0,px2);
// 2 Triangles: Start and End
temp_dc.SetBrush(wxBrush( wxColour(104,104,104),wxSOLID ));
temp_dc.SetPen(wxPen( wxColour(104,104,104),1,wxSOLID ));
temp_dc.DrawPolygon(3,points,0,px1);
temp_dc.DrawPolygon(3,points,0,px2);
// 2 Triangles: Start and End
//-------------------------------------------
// Sending the event of start triangle moved
//-------------------------------------------
//-------------------------------------------
// Sending the event of start triangle moved
//-------------------------------------------
//-------------------------------------------
// Sending the event of start triangle moved
//-------------------------------------------
//-------------------------------------------
// Sending the event of start triangle moved
//-------------------------------------------
//Sending the event of actual triangle moved
//-------------------------------------------
createAndSendEvent( wxEVT_TSBAR_ACTUAL );
//Sending the event of actual triangle moved
//-------------------------------------------
createAndSendEvent( wxEVT_TSBAR_ACTUAL );
{
wxCommandEvent cevent( theEventType, GetId() );
cevent.SetEventObject( this );
{
wxCommandEvent cevent( theEventType, GetId() );
cevent.SetEventObject( this );