Beispiel #1
0
CharMapEntry::CharMapEntry(wxString family, wxString style, float size, wxUint32 encoding, wxUint32 code)
{
	SetFamily(family);
	SetStyle(style);
	SetSize(size);
	SetEncoding(encoding);
	SetCode(code);
}
void DrawButtonText(buttonT & button) {
    SetFont(BUTTON_FONT);
	SetStyle(BUTTON_STYLE);
    SetPointSize(BUTTON_POINT_SIZE);
    MovePen(button.x + (button.width - TextStringWidth(button.name)) / 2,
            button.y + (button.height + GetFontAscent()) / 2);
    DrawTextString(button.name);
}
void FFMODStudioStyle::Initialize()
{
	if (!StyleInstance.IsValid())
	{
		StyleInstance = Create();
	}

	SetStyle(StyleInstance.ToSharedRef());
}
Beispiel #4
0
void CCoolTabCtrl::SetStyleAnimate(BOOL bEnable)
{
	UINT style = GetStyle();
	if(bEnable)
		style |= TCS_ANIMATE;
	else
		style &= ~TCS_ANIMATE;
	SetStyle(style);
}
Beispiel #5
0
SeparatorCtrl::SeparatorCtrl()
{
	NoWantFocus();
	Transparent();
	Disable();
	lmargin = rmargin = 2;
	size = 7;
	SetStyle(StyleDefault());
}
Beispiel #6
0
Button::Button(const WCHAR *s, Style *def, Style *mouseOver)
{
    text = NULL;
    wantedInputBits = (uint16)-1; // wants everything
    styleDefault = def;
    styleMouseOver = mouseOver;
    SetStyle(styleDefault);
    SetText(s);
}
Beispiel #7
0
static int OnParseBackgroundSize( LCUI_StyleSheet ss, int key, const char *str )
{
	LCUI_StyleRec slist[2];
	int ret = OnParseStyleOption( ss, key, str );
	if( ret == 0 ) {
		SetStyle( ss, key_background_size_width, 0, 0 );
		SetStyle( ss, key_background_size_height, 0, 0 );
		return 0;
	}
	ret = SplitValues( str, slist, 2, SPLIT_NUMBER | SPLIT_STYLE );
	if( ret != 2 ) {
		return -1;
	}
	SetStyle( ss, key, 0, 0 );
	ss->sheet[key_background_size_width] = slist[0];
	ss->sheet[key_background_size_height] = slist[1];
	return 0;
}
Beispiel #8
0
void Legend::SetCorners(boca::Rectangle<double> const& rectangle)
{
    INFO(rectangle.XMin(), rectangle.XMax(), rectangle.YMin(), rectangle.YMax());
    legend_.SetX1(rectangle.XMin());
    legend_.SetX2(rectangle.XMax());
    legend_.SetY1(rectangle.YMin());
    legend_.SetY2(rectangle.YMax());
    SetStyle();
}
Beispiel #9
0
void ImageActor::SetDefaultProperty( Property::Index index, const Property::Value& propertyValue )
{
  if(index < DEFAULT_RENDERABLE_ACTOR_PROPERTY_MAX_COUNT)
  {
    RenderableActor::SetDefaultProperty(index, propertyValue);
  }
  else
  {
    switch(index)
    {
      case Dali::ImageActor::PIXEL_AREA:
      {
        SetPixelArea(propertyValue.Get<Rect<int> >());
        break;
      }
      case Dali::ImageActor::FADE_IN:
      {
        SetFadeIn(propertyValue.Get<bool>());
        break;
      }
      case Dali::ImageActor::FADE_IN_DURATION:
      {
        SetFadeInDuration(propertyValue.Get<float>());
        break;
      }
      case Dali::ImageActor::STYLE:
      {
        SetStyle(StyleEnum(propertyValue.Get<std::string>()));
        break;
      }
      case Dali::ImageActor::BORDER:
      {
        SetNinePatchBorder( propertyValue.Get<Vector4>(), true /*in pixels*/ );
        break;
      }
      case Dali::ImageActor::IMAGE:
      {
        Dali::Image img = Scripting::NewImage( propertyValue );
        if(img)
        {
          SetImage( &GetImplementation(img) );
        }
        else
        {
          DALI_LOG_WARNING("Cannot create image from property value\n");
        }
        break;
      }
      default:
      {
        DALI_LOG_WARNING("Unknown property (%d)\n", index);
        break;
      }
    } // switch(index)

  } // else
}
Beispiel #10
0
void wls() 
{
    SetStyle();
    
    const int NUMENTRIES_water=60;
	// wavelength = 1240 [ev.nm] / E
    // 200 - 790 nm, every 10 nm
    double GeV = 1e9;
    double ENERGY_water[NUMENTRIES_water] = { 
        1.56962e-09*GeV, 1.58974e-09*GeV, 1.61039e-09*GeV, 1.63157e-09*GeV, 
        1.65333e-09*GeV, 1.67567e-09*GeV, 1.69863e-09*GeV, 1.72222e-09*GeV, 
        1.74647e-09*GeV, 1.77142e-09*GeV,1.7971e-09*GeV, 1.82352e-09*GeV, 
        1.85074e-09*GeV, 1.87878e-09*GeV, 1.90769e-09*GeV, 1.93749e-09*GeV, 
        1.96825e-09*GeV, 1.99999e-09*GeV, 2.03278e-09*GeV, 2.06666e-09*GeV,
        2.10169e-09*GeV, 2.13793e-09*GeV, 2.17543e-09*GeV, 2.21428e-09*GeV, 
        2.25454e-09*GeV, 2.29629e-09*GeV, 2.33962e-09*GeV, 2.38461e-09*GeV, 
        2.43137e-09*GeV, 2.47999e-09*GeV, 2.53061e-09*GeV, 2.58333e-09*GeV, 
        2.63829e-09*GeV, 2.69565e-09*GeV, 2.75555e-09*GeV, 2.81817e-09*GeV, 
        2.88371e-09*GeV, 2.95237e-09*GeV, 3.02438e-09*GeV, 3.09999e-09*GeV,
        3.17948e-09*GeV, 3.26315e-09*GeV, 3.35134e-09*GeV, 3.44444e-09*GeV, 
        3.54285e-09*GeV, 3.64705e-09*GeV, 3.75757e-09*GeV, 3.87499e-09*GeV, 
        3.99999e-09*GeV, 4.13332e-09*GeV, 4.27585e-09*GeV, 4.42856e-09*GeV, 
        4.59258e-09*GeV, 4.76922e-09*GeV, 4.95999e-09*GeV, 5.16665e-09*GeV, 
        5.39129e-09*GeV, 5.63635e-09*GeV, 5.90475e-09*GeV, 6.19998e-09*GeV 
    };
    double cm = 0.01.;
    double wls_abs_factor = 0.7;
    double wls_abs[NUMENTRIES_water]={
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 
        1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 0.0226002*wls_abs_factor*cm, 0.01*wls_abs_factor*cm, 
        0.01*wls_abs_factor*cm, 0.01*wls_abs_factor*cm, 0.01*wls_abs_factor*cm, 0.0170268*wls_abs_factor*cm, 0.0356053*wls_abs_factor*cm, 0.0634218*wls_abs_factor*cm, 
        0.156279*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm, 1e+09*wls_abs_factor*cm
    };
    
    double x[NUMENTRIES_water];
    double y[NUMENTRIES_water];
    for (int i=0; i<NUMENTRIES_water; i++) {
        x[i] = 1240/ENERGY_water[NUMENTRIES_water-1-i]; // nm
        y[i] = 1/wls_abs[NUMENTRIES_water-1-i];
        // y[i] = RAYLEIGH_water[NUMENTRIES_water-1-i];
    }
    
    TCanvas *c1 = new TCanvas("c1", "c1", 800, 600);
    TGraph *g1 = new TGraph(NUMENTRIES_water, x, y);
    g1->Draw("AL");
    // g1->GetYaxis()->SetRangeUser(0,0.01);
    g1->SetLineWidth(2);
    g1->GetXaxis()->SetTitle("Wavelength (nm)");
    g1->GetYaxis()->SetTitle("Arbitratry Unit");
    g1->SetTitle("PPO Absorption & Re-emission");
}
Beispiel #11
0
ButtonVector::ButtonVector(GraphicsPath *gp)
{
    wantedInputBits = (uint16)-1; // wants everything
    styleDefault = NULL;
    styleMouseOver = NULL;
    graphicsPath = NULL;
    SetStyle(styleDefault);
    SetGraphicsPath(gp);
}
Beispiel #12
0
static void
SetCommon(
	GtkWidget	*widget,
	WidgetData	*data)
{
	SetState(widget,data->state);
	SetStyle(widget,data->style);
	gtk_widget_set_visible(widget,data->visible);
}
Beispiel #13
0
void ButtonComponent::ParseAttribute(const TiXmlAttribute* attribute)
{
	Component::ParseAttribute(attribute);
	if (IsEqual(attribute->Name(), "texture_focused"))
	{
		SetTexture(FOCUSED, attribute->Value());
	}
	else if (IsEqual(attribute->Name(), "texture_unfocused"))
	{
		SetTexture(UNFOCUSED, attribute->Value());
	}
	else if (IsEqual(attribute->Name(), "size"))
	{
		SetSize(ParseVector2f(attribute->Value()));
	}
	else if (IsEqual(attribute->Name(), "next_menu"))
	{
		m_nextMenu = attribute->Value();
	}
	else if (IsEqual(attribute->Name(), "type"))
	{
		SetType(GetTypeIndex(attribute->Value()));
	}
	else if (IsEqual(attribute->Name(), "style"))
	{
		SetStyle(GetStyleIndex(attribute->Value()));
	}
	else if (IsEqual(attribute->Name(), "text"))
	{
		SetText(attribute->Value());
	}
	else if (IsEqual(attribute->Name(), "text_font"))
	{
		SetTextFont(attribute->Value());
	}
	else if (IsEqual(attribute->Name(), "text_size"))
	{
		SetFontSize(attribute->UnsignedValue());
	}
	else if (IsEqual(attribute->Name(), "text_color"))
	{
		SetTextColor(ParseVector3f(attribute->Value()));
	}
	else if (IsEqual(attribute->Name(), "text_highlight_color"))
	{
		SetHighlightTextColor(ParseVector3f(attribute->Value()));
	}
	else if (IsEqual(attribute->Name(), "has_textures"))
	{
		SetIfHasTextures(attribute->BoolValue());
	}
	else if (IsEqual(attribute->Name(), "text_highlights"))
	{
		SetIfTextHighlights(attribute->BoolValue());
	}
}
Beispiel #14
0
CWorkTab::CWorkTab()
{
	SetStyle(CContainer::SHADOW);
	SetALingTabs(CContainer::ALN_BOTTOM);
	m_deplaza = 0;
	m_btndesplaza.SetRectEmpty();
	bIniciaArrastre = FALSE;
	m_EnableL = FALSE;
	m_EnableR = FALSE;
}
double ComputeButtonWidth(string name) {
	SaveGraphicsState();
    SetFont(BUTTON_FONT);
	SetStyle(BUTTON_STYLE);
    SetPointSize(BUTTON_POINT_SIZE);
	double width = 2 * BUTTON_MARGIN + TextStringWidth(name);
	RestoreGraphicsState();
	if (width < MIN_BUTTON_WIDTH) width = MIN_BUTTON_WIDTH;
	return width;
}
Beispiel #16
0
MultiButton::MultiButton()
{
	Transparent();
	SetStyle(StyleDefault());
	display = &StdDisplay();
	convert = &NoConvert();
	valuecy = Null;
	push = false;
	SetFrame(sNullFrame());
}
/// Set the style definition and optionally update the display
bool wxRichTextFormattingDialog::SetStyleDefinition(const wxRichTextStyleDefinition& styleDef, wxRichTextStyleSheet* sheet, bool update)
{
    m_styleSheet = sheet;

    if (m_styleDefinition)
        delete m_styleDefinition;
    m_styleDefinition = styleDef.Clone();

    return SetStyle(m_styleDefinition->GetStyle(), update);
}
Beispiel #18
0
void CCoolTabCtrl::SetStyleMonoSpace(BOOL bEnable)
{
	UINT style = GetStyle();
	if(bEnable)
		style |= TCS_MONOSPACE;
	else
		style &= ~TCS_MONOSPACE;
	SetStyle(style);
	UpdateWindow();
}
Beispiel #19
0
CGuiWorkTab::CGuiWorkTab()
{
	SetStyle(CGuiTabWnd::SHADOW);
	m_cfont.CreateFont(14, 0, 0, 0, 400, 0, 0, 0, 0, 1, 2, 1, 34, _T("Arial"));
	m_deplaza = 0;
	m_btndesplaza.SetRectEmpty();
	bIniciaArrastre = FALSE;
	m_EnableL = FALSE;
	m_EnableR = FALSE;
}
Beispiel #20
0
ON_BOOL32 ON_Light::Read(
       ON_BinaryArchive&  file
     )
{
  Default();
  int major_version = 0;
  int minor_version = 0;
  ON_BOOL32 rc = file.Read3dmChunkVersion(&major_version,&minor_version);
  if ( rc && major_version == 1 ) {
    int i;
    // version 1.0 fields
    i = 0;
    if ( rc ) rc = file.ReadInt( &i );
    if ( rc ) Enable(i);
    if ( rc ) rc = file.ReadInt( &i );
    if ( rc ) SetStyle(ON::LightStyle(i));
    if ( rc ) rc = file.ReadDouble( &m_intensity );
    if ( rc ) rc = file.ReadDouble( &m_watts );
    if ( rc ) rc = file.ReadColor( m_ambient );
    if ( rc ) rc = file.ReadColor( m_diffuse );
    if ( rc ) rc = file.ReadColor( m_specular );
    if ( rc ) rc = file.ReadVector( m_direction );
    if ( rc ) rc = file.ReadPoint( m_location );
    if ( rc ) rc = file.ReadDouble( &m_spot_angle );
    if ( rc ) rc = file.ReadDouble( &m_spot_exponent );
    if ( rc ) rc = file.ReadVector( m_attenuation );
    if ( rc ) rc = file.ReadDouble( &m_shadow_intensity );
    if ( rc ) rc = file.ReadInt( &m_light_index );
    if ( rc ) rc = file.ReadUuid( m_light_id );
    if ( rc ) rc = file.ReadString( m_light_name );

    if ( minor_version < 2 ) {
      // set hotspot from 1.0 or 1.1 m_spot_exponent
      double h = 1.0 - m_spot_exponent/128.0;
      if ( h < 0.0 ) 
        h = 0.0;
      else if ( h > 1.0 )
        h = 1.0;
      m_hotspot = h;
      m_spot_exponent = 0.0;
    }

    if ( minor_version >= 1 ) {
      // version 1.1 fields
      if ( rc ) rc = file.ReadVector( m_length );
      if ( rc ) rc = file.ReadVector( m_width );
      if ( minor_version >= 2 ) {
        // version 1.2 fields
        if ( rc ) rc = file.ReadDouble( &m_hotspot );
      }
    }
  }
  return rc;
}
Beispiel #21
0
void FormStyle::applyAll()
{
	allowChColor = false;
	LoadColorList();
	if ( ui.colorsB->count() == 0 )
		ui.scB->setChecked(true);
	SetCustomPalette();
	SetStyle(0);
	allowChColor = true;
	SetColor();
}
Beispiel #22
0
void NyqTextCtrl::OnChar(wxKeyEvent & e)
{
	e.Skip();

   // Hide any previously highlighted parens
   if (mLeftParen >= 0) {
#if defined(__WXMSW__)
      Freeze(); // Prevents selection flashing on Windows
#endif

      SetStyle(mLeftParen, mLeftParen + 1, mOff);
      SetStyle(mLeftParens[mLeftParen], mLeftParens[mLeftParen] + 1, mOff);
      mLeftParen = -1;
      mRightParen = -1;

#if defined(__WXMSW__)
      Thaw(); // Prevents selection flashing on Windows
#endif
   }
}
Beispiel #23
0
void MitStyle() {
  char* author   = "$Author: sixie $$";
  char* modified = "$Modified: Tue Jul  1 08:52:15 2008 by paus $$";
  printf(" MIT root style (%s,%s).\n",author,modified);
  printf("\n");
  printf(" Use: MakeCanvas(name,title)\n");
  printf("      InitSubPad(pad,nPad)\n");
  printf("      InitHist(hist,xTitle,yTitle,color)\n");
  printf("\n");
  SetStyle();
}
Beispiel #24
0
GCombo::GCombo(int id, int x, int y, int cx, int cy, char *name) :
	ResObject(Res_ComboBox)
{
	d = new GComboPrivate;
	Name(name);
	GRect r(x, y, x+cx, y+200);
	SetPos(r);
	SetId(id);
	SetTabStop(true);
	SetClass("COMBOBOX");
	SetStyle(GetStyle() | CBS_DROPDOWNLIST);
}
Beispiel #25
0
CEDClock::EClockStyle CEDClock::SetStyle(EClockStyle dwStyle, DWORD nFlowCount)
{
	if ( dwStyle == XDC_FLOWBACK )
	{
		m_tNavigated = time( NULL ) + nFlowCount;
		m_dwStyle = dwStyle; Invalidate();
		
		return m_dwStyle;
	}
	
	return SetStyle( dwStyle );
}
Beispiel #26
0
//done
TMDIClient::TMDIClient(PTMDIFrame pParent) : TWindow(pParent, NULL, 0)
{
	ClientData.idFirstChild = ID_FIRSTMDICHILD;
	WndClass.lpszClassName = "MDICLIENT";
	SetStyle(MDIS_ALLCHILDSTYLES | WS_CHILD | WS_CLIPCHILDREN | WS_VISIBLE, 0);
	pFrame = pParent;
	x = y = cx = cy = 0;
	SetFlags(WB_TRANSFER, FALSE);

	//remove client object from parent's child list
	pParent->ChildList.detach(this, TShouldDelete::Delete);
}	//TMDIClient::TMDIClient
Beispiel #27
0
void NyqTextCtrl::Colorize(long left, long right)
{
   // Hide any previously highlighted parens
   if (mLeftParen >= 0) {
#if defined(__WXMSW__)
      Freeze(); // Prevents selection flashing on Windows
#endif

      SetStyle(mLeftParen, mLeftParen + 1, mOff);
      SetStyle(mLeftParens[mLeftParen], mLeftParens[mLeftParen] + 1, mOff);
      mLeftParen = -1;
      mRightParen = -1;

#if defined(__WXMSW__)
      Thaw(); // Prevents selection flashing on Windows
#endif
   }

   mLeftParen = left;
   mRightParen = right;

   if (mLeftParen != -1) {
      SetStyle(mLeftParen, mLeftParen + 1, mOn);
      SetStyle(mRightParen, mRightParen + 1, mOn);

      SetStyle(mLeftParen + 1, mLeftParen + 1, mOff);
      SetStyle(mRightParen + 1, mRightParen + 1, mOff);
   }
}
void
plotMultidimFit(const char* filename, const char* channel, int mass=125, bool temp_=false, bool log_=false, std::string dataset_="CMS Preliminary,  H#rightarrow#tau#tau,  4.9 fb^{-1} at 7 TeV, 19.4 fb^{-1} at 8 TeV", std::string xaxis_="#kappa_{V}", std::string yaxis_="#kappa_{F}", bool mssm_=false)
{
  TFile* file = TFile::Open(filename);
  TString style = temp_ ? "graph" : "filled";

  // retrieve TGraphs from file
  TH2F* plot2D;
  TRegexp regex2D(TString::Format("plot2D_%d_*", mass));
  TGraph* bestfit;
  TRegexp regexXY(TString::Format("bestfit_%d_*", mass));
  std::vector<TGraph*> graph68;
  TRegexp regex68(TString::Format("%s68_%d_*", style.Data(), mass));
  std::vector<TGraph*> graph95;
  TRegexp regex95(TString::Format("%s95_%d_*", style.Data(), mass));

  file->cd(channel);
  TIter next(gDirectory->GetListOfKeys());
  TKey* iobj;
  while((iobj = (TKey*)next())){
    TString obj(iobj->GetName());
    if(obj.Contains(regex2D)){
      plot2D = (TH2F*)file->Get(TString::Format("%s/%s", channel, obj.Data()));
    }
    if(obj.Contains(regexXY)){
      bestfit = (TGraph*)file->Get(TString::Format("%s/%s", channel, obj.Data()));
    }
    if(obj.Contains(regex68)){
      std::cout << " ...found object: " << iobj->GetName() << std::endl; 
      graph68.push_back((TGraph*)file->Get(TString::Format("%s/%s", channel, obj.Data())));
    }
    if(obj.Contains(regex95)){
      std::cout << " ...found object: " << iobj->GetName() << std::endl; 
      graph95.push_back((TGraph*)file->Get(TString::Format("%s/%s", channel, obj.Data())));
    }
  }
  //return;

  // set up styles
  SetStyle();
  // do the plotting 
  TCanvas canv = TCanvas("canv", "Limits", 600, 600);
  std::string masslabel = mssm_ ? std::string("m_{#phi}") : std::string("m_{H}");
  plotting2DScan(canv, plot2D, graph95 , graph68 , bestfit, xaxis_, yaxis_, masslabel, mass, -1, -1, -1, -1, temp_, log_); 
  /// setup the CMS Preliminary
  CMSPrelim(dataset_.c_str(), "", 0.145, 0.835);
  // write results to files
  canv.Print(std::string(channel).append("_scan2D").append(".png").c_str());
  canv.Print(std::string(channel).append("_scan2D").append(".pdf").c_str()); 
  canv.Print(std::string(channel).append("_scan2D").append(".eps").c_str()); 
  return;
}
Beispiel #29
0
GWindow::GWindow() : GView(0)
{
	_Window = this;
	d = new GWindowPrivate;
	Menu = 0;
	_Dialog = NULL;
	SetStyle(GetStyle() | WS_TILEDWINDOW | WS_CLIPCHILDREN);
	SetStyle(GetStyle() & ~WS_CHILD);
	SetExStyle(GetExStyle() | WS_EX_CONTROLPARENT);
	
	GWin32Class *c = GWin32Class::Create(GetClass());
	if (c)
	{
		c->Register();
	}	
	
	Visible(false);

	_Default = 0;
	_Lock = new GMutex("GWindow");
	_QuitOnClose = false;
}
Beispiel #30
0
CGuiWorkTab::CGuiWorkTab()
{
    SetStyle(CGuiTabWnd::SHADOW);
    // Modified By SunZhenyu
    if( !m_cfont.CreateStockObject( DEFAULT_GUI_FONT ) )
        m_cfont.CreateStockObject( ANSI_VAR_FONT );
    // m_cfont.CreateFont(14,0,0,0,400,0,0,0,0,1,2,1,34,"Arial");
    m_deplaza=0;
    m_btndesplaza.SetRectEmpty();
    bIniciaArrastre=FALSE;
    m_EnableL=FALSE;
    m_EnableR=FALSE;
}