2015-09-08 02:39 PM - last edited on 2023-07-13 03:37 PM by Doreena Deng
2015-09-09 07:20 PM
2016-08-15 09:15 AM
SomeTabPage::SomeTabPage(...) : ... lstItem(GetReference(), DG::Rect(), DG::ListBox::VScroll, DG::ListBox::NoPartialItems, DG::ListBox::Header, 25) { // ... const short tabCnt = 5; lstItem.SetTabFieldCount(tabCnt); lstItem.SetPosition(xpos, ypos); lstItem.SetSize(itmWd, itmHt); lstItem.SetFontSize(DG::Font::Small); short tabTotWidth = wd - 21; // scroll width short tabIdx = 1; short tabWid = 15; short tabBeg = 0; short tabEnd = tabBeg + tabWid; lstItem.SetTabFieldProperties(tabIdx, tabBeg, tabEnd, DG::ListBox::Center, DG::ListBox::EndTruncate, true, true); lstItem.SetHeaderItemText(tabIdx, "head 1"); // other header settings here // populate list box after // ... }But the list box is not showing. When I removed the header flag, the list will be created (of course) with no header.
lstItem.SetPosition(xpos, ypos); lstItem.SetSize(itmWd, itmHt); lstItem.SetFontSize(DG::Font::Small); lstItem.Show();Shows (without header) when header flag is not set; otherwise, no list box is generated.
2017-04-25 05:23 PM
SomeTabPage::SomeTabPage(...) : ... lstItem(GetReference(), DG::Rect(DG::Point (0, 0), DG::Point (100, 100)), DG::ListBox::VScroll, DG::ListBox::NoPartialItems, DG::ListBox::Header, 25) { // ... // modify size if initial one isn't appropriate lstItem.SetSize(itmWd, itmHt); //... }
2017-05-15 04:11 AM