Page 1 of 1

CELayoutEditor-a big job about PropertyGrid

Posted: Mon Jul 23, 2007 03:30
by kili
Hi,
I want to pass imageset and the mapping images to PropertyGrid
and if click image config field, it jumps out a dialog
which shows all selected previously imageset's images graphics.

Could anyone teach me how to implement this?


i use
wxWidget 2.8.3
PropertyGrid 1.2.7

Posted: Mon Jul 23, 2007 07:18
by scriptkid
Hi,

do you mean to use some standard widget? I don't know PropertyGrid. There is however a patch (not applied yet, sorry) which puts all images into a combobox. Maybe it suits your needs:
http://www.cegui.org.uk/mantis/view.php?id=147

If you want a dialog, you might at least be able to use the code you see in this patch.

HTH.

Posted: Tue Jul 24, 2007 09:09
by kili
Hi, i've already know how to put all imageset names
and image names to combobox.

The main problem is:
my image choosen interface is a listctrl,
and shows all image graphically,thus users
can select which he want directly.

But i don't know how to get out these image graphically
and put them to the listctrl.
:(

this is a slice of my code:

Code: Select all


for(int i = 0; i<ImgName.GetCount(); i++)
   {
      const CEGUI::Imageset* ImgSetName = CEGUI::ImagesetManager::getSingleton().getImageset(CEGUI::String(Imageset.c_str()));
      const CEGUI::Image ImgGraph = ImgSetName->getImage(CEGUI::String(ImgName[i].c_str()));
   
      
      //   m_imageListNormal->Add( wxIcon(_T("icon1"), wxBITMAP_TYPE_ICO_RESOURCE) );

   }



i can't transfer CEGUI Image to bmp.....