Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxSmith development
DreadNot:
OK. All compiled and no place to go. The wx2.6.1 compiled fine. C::B set to use wx2.6.1 compiled fine. wxSmith compiled fine. However, I still see the same problem in the Workspace area--no workspace/project tree is displayed.
EDIT: See other recent post about the compile.
cyberkoa:
Hi, just want to update my status on trying to add combobox in the wxSmith.
I have start to write the code for wxComboBox , the XML loading code. I refer to other widgets's code to add in appropriate code in defwidgets.cpp/h, creating combobox.cpp/h . The most difficult part is on the combobox selection .
I have refer the help file bundled with wxWidgets 2.6.1 and found that wxComboxBox have 2 constructors , the main different is one of it use wxString choices[] and other use wxArrayString as selection.
I have decided to use the wxArrayString approach since it looks easier. After coding an special function to load selection to wxArrayString, and get ready to have a final compilation, the code could not compiled !! Finally , I found out , in wxwidgets-2.4.2 , only have 1 constructor for wxcombo , I am refering to the latest documentation (2.6.1) to code , hahaha .. .
Therefore , now is in the status to recode all in wxString choices []
:cry:
One thing need to mention is , it seems like there is no engine (code) to allow the wxwidgets's properties to be edited by poping up another dialog , I believe in wxcombo's selection we need that. And in fact , a lot of cases we need that such as color selection.
Maybe , it comes to a stage to upgrade the properties engine.
cyberkoa:
Another update .
I have managed to load a wxCombox and show on the design screen.
However, the combo box shows no item. I have debugged in my code and confirm that I manage to load the items from the XML file.
In BuidExtVars member function , I have created a new function to load a series of strings into a ArrayString. I believe something have missed out.
byo , how is extra variables that defined in the BuildExtVars() be assigned to the widget creation function ? May you explain in short because I have read the source code but not so understand.
cyberkoa:
Here is the screenshot for wxComboBox added.
Code that I have written
1. Loading from XRC file
2. Saving to XRC file
Function that still not done
1. Edit the list in the combo box , need the decision from byo on the revamp on the properties manager.
However, I found that there are a few strange thing
1. widget editor does not reponse to mouse click event
2. When I do a preview, the combobox does not contain anything but in the widget editor , I can see the list using the keyboard up/down cursor.
I shall look into the event handling for the widget editor soon.
cyberkoa:
I have settle the problem that I mentioned previously
- widget editor does not reponse to mouse click event
- When I do a preview, the combobox does not contain anything but in the widget editor , I can see the list using the keyboard up/down cursor.
However, there is still a minor problem on the mouse click event on combobox
- when I click on textbox contained in the combo box , the widget selection event seem like not taken place but if I press on the pull down button , the widget selection is taken place.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version