huaner
18-09-2007 09:22:13
hi:
when i rectify my old code which is related to v.0.9.5, i found some questions. so, i hope you can help me. thanks
1.
i found that i pick up a point on the screen not on a widget, the value of str is "DefaultSheet". but in old version the value is "". maybe this is related to your new methods?
2.
i found the value of i is 0. why?
3. i can't see the image
when i rectify my old code which is related to v.0.9.5, i found some questions. so, i hope you can help me. thanks
1.
String str = gm->getMouseOverWidget()->getInstanceName()
i found that i pick up a point on the screen not on a widget, the value of str is "DefaultSheet". but in old version the value is "". maybe this is related to your new methods?
2.
if(!fileCombox)
{
QuickGUI::Combox *fileCombox = openWindow->getComboBox(0);
QuickGUI::List *fileList = fileCombox->getDropDownList();
if(fileList)
{
vector<String>::iterator iter = m_FileVector.begin();
size_t vectorCapatity = 0;
vectorCapatity = m_FileVector.size();
for(size_t i = 0; i < vectorCapatity; i++)
fileList->addListItem(m_FileVector[i]);
//test
i = fileList->getNumberOfListItems();
}
i found the value of i is 0. why?
3. i can't see the image
QuickGUI::Image* image = SectorSetWindow->createImage(QuickGUI::Rect(x, y, width, height), materialName);
MarkLineImage = SectorSetWindow->getImage(0);