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
CELayoutEditor-a big job about PropertyGrid
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
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.
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.
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:
i can't transfer CEGUI Image to bmp.....
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