I'm writing a new component : a checkbox list into a combo box, based on wxOwnerDrawnComboBox.
It will be used into personnal log windows that able to select or unselect TraceMasks listed into this combobox.
The initialisation of this special combo looks like :
// Init mask choice
wxArrayString arrAllTraceMasks = wxLog::GetTraceMasks();
for (size_t stBlc=0;stBlc<arrAllTraceMasks.GetCount();++stBlc)
{
m_pChoiceMask->Append(arrAllTraceMasks[stBlc],true,(void *) stBlc);
}
It's not very easy to make this combo work with wxSmith because I must create wxETKCheckBoxListComboBoxXmlHandler to be able to correctly create the component.
This is working right now (the OnDrawItem / OnDrawBackground functions are not done but it is simple to do it). To be able to let user initialize items list directly into wxSmith interface, I thought I could use the
Xml Data field into wxSmith and decode it into my combo handler.
Unfortunally the Xml Data is not save, I wrote
<item>Label1</item> into it, save all, qui Code::Blocks and reopen : this field is empty. Editing wxs and xrc with text editor : no Label1 is written.
My question :
What this field (Xml Data) is doing for ? How to be able to write some specific data into xrc file to fill content of custom components ?I give you my source code (not yet finished) that can help some peaple like me to create custom component that are not supported by wxSmith.
The source code is too big, cannot post here, I let a link to be able to download the zip with header and source code :
Source code wxETKCheckBoxListComboBox If someone is interested I'll could post the finished component when it'll be done.
I Hope I post in the good forum because it's not really a specific wxWidgets problem (so I don't post on wxWidgets forum) and it's wxSmith problem, there is no specific topic for wxSmith (really very cool component of Code::Blocs)
Best regards,
Stéphane Château