Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxSmith development
byo:
--- Quote from: cyberkoa on August 16, 2005, 08:07:34 pm ---I am coding a new widget wxBitMapButton , still in the progress to understand the wxSmith source with propgrid, hope to get it up as soon as possible.
byo , do I need to add a new property specially for the file path , or just leave it as string first ?
--- End quote ---
Hi, there can be a problem with wxBitmapButton because wxSmith doesn't handle creating bitmaps yet. But maybe You'll add support for this ;) But remember to keep compatibility with original XRC structure :)
At the beginning I propose using simple string for bitmap because it's very probably that it will be changed in future.
cyberkoa:
hi, I have coded the following but not commited to CVS (refer to attacehment)
One thing to mention in my development, wxradiobox is not derived from wxControlWithItems , therefore I could not make use of the existing stringlistproperty macro . Moreover , it has not Append Function , therefore , choices cannot be added dynamically.
I guess wxdatepickerctrl may have a default date attribute in XRC but I am not sure.
I try to use the DialogsBlocks and in their wxdatepickerctrl have a default value in the properties editor.
I am searching and reading the defintaion of XRC file format but seems like it is still not very clear for some of the controls.
[attachment deleted by admin]
byo:
Hi, I've checked wxRadioBox already - it need additional properties to be created (I can take care of it). Hmm, can You commit these widgets with this crashable RadioBox ?
rickg22:
If you notice in the XRC sourcecode, the handlers for the distinct classes do all the processing to create new objects. Why not use the xrc code in the first place (or at least copy from it)?
cyberkoa:
--- Quote from: byo on August 25, 2005, 11:27:51 am ---Hi, I've checked wxRadioBox already - it need additional properties to be created (I can take care of it). Hmm, can You commit these widgets with this crashable RadioBox ?
--- End quote ---
I shall commit to CVS later because the development PC is at my house and I am now at office.
I have modified .cbp to suit my development environment (wxwidgets folder name , the library folder name etc... )
maybe you need to add in those files in your project manually
Modified
=====
One more thing to mention , the spinctrl work fine but have a little problem , I try to look into the source code of wxSmith but could not find the cause (a bit complicated). I guess is the wxwidgets problem , the DoGetSize function in wx/msw/spinctrl.cpp maybe return the wrong position.
The problem is very simple , spinctrl consists of 1 spinbutton and 1 textbox at the left .
When we select the spinctrl , the indication outline is drawn at the wrong position , which the left top corner at the left top corner of the spinbutton.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version