(CEGUI)如何创建控件 -------静态文本(lable)

  Window* st = winMgr.createWindow("TaharezLook/StaticText", "Demo6/ControlPanel/ColumnPanel");
  fwnd->addChildWindow(st);
  st->setPosition(UVector2(cegui_reldim(0.02f), cegui_reldim( 0.12f)));
  st->setSize(UVector2(cegui_reldim(0.96f), cegui_reldim( 0.25f)));
  st->setText("Column Control");

  //垂直排布    TopAligned 靠顶
  st->setProperty("VertFormatting", "TopAligned");

 

   这样创建的LABLE是有边框和背景的,如果要去除添加下面2个属性设置:

   st->setProperty("FrameEnabled", "false");
   st->setProperty("BackgroundEnabled", "false");

你可能感兴趣的:((CEGUI)如何创建控件 -------静态文本(lable))