CELayoutEditor-a big job about PropertyGrid

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

CELayoutEditor-a big job about PropertyGrid

Postby kili » Mon Jul 23, 2007 03:30

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

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Jul 23, 2007 07:18

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.

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

Postby kili » Tue Jul 24, 2007 09:09

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.....


Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 4 guests