本文整理汇总了C++中ListBox::getHeight方法的典型用法代码示例。如果您正苦于以下问题:C++ ListBox::getHeight方法的具体用法?C++ ListBox::getHeight怎么用?C++ ListBox::getHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListBox
的用法示例。
在下文中一共展示了ListBox::getHeight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mHttp
NewMenuScreen::NewMenuScreen(Feed *feed) : mHttp(this), screenType(screenType) {
lprintfln("NewMenuScreen::Memory Heap %d, Free Heap %d", heapTotalMemory(), heapFreeMemory());
this->feed = feed;
int itemCount = sizeof(menuItems)/sizeof(item);
c=0;
versionChecked=0;
next = NULL;
first = 1;
mainLayout = new Layout(0, 0, scrWidth, scrHeight, NULL, 1, 2);
MAExtent imgSize = maGetImageSize(RES_IMAGE);
int imgHeight = EXTENT_Y(imgSize);
ListBox *listBox = new ListBox(0, 0, scrWidth, scrHeight, mainLayout, ListBox::LBO_VERTICAL, ListBox::LBA_LINEAR, true);
listBox->setSkin(Util::getSkinBack());
/*listBox->setSkin(Util::getSkinHeader());*/
/*listBox->setDrawBackground(false);*/
/*Layout *header = new Layout(0,0,scrWidth, imgHeight, NULL, 1, 1);
header->setSkin(Util::getSkinHeader());*/
ListBox *header = new ListBox(0, 0, scrWidth, imgHeight, NULL, ListBox::LBO_VERTICAL, ListBox::LBA_LINEAR, true);
header->setSkin(Util::getSkinHeader());
Image *image = new Image(0, 0, scrWidth, imgHeight, NULL, true, true, RES_IMAGE);
header->add(image);
listBox->add(header);
label = new Label(0,0,scrWidth,36,NULL,"",0,Util::getDefaultSelected());
label->setMultiLine(true);
label->setAutoSizeY();
label->setMultiLine(true);
label->setDrawBackground(false);
listBox->add(label);
menu = new GCMenu(menuItems, itemCount, 0, 0, scrWidth, listBox->getHeight() - imgHeight, false, false, listBox);
setMain(mainLayout);
origMenu = this;
}