Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith development

<< < (25/34) > >>

byo:

--- Quote from: rickg22 on August 25, 2005, 05:19:55 pm ---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)?

--- End quote ---

I usually base on xrc source when adding new widgets (hope cyberkoa do the same ;) ) but it's architecture is different from wxSmith's one. So it may be used to solve some incompatibility problems but unfortunately not as a base of source code :(

cyberkoa:
I have just successfully commit the changes to CVS :)

Basically, I have added in the following controls (including icons)

1. wxdatepickerctrl
2. wxradiobox
3. wxradiobutton
4. wxscrollbar
5. wxspinctrl
6. wxspinbutton
7. wxtreectrl

I refer to the xrc output of wxGlade to code most of the controls except those not in wxGlade.

And the styles , I refer to the Help file of wxwidgets-2.6.1 .

cyberkoa:
hi , byo , seems like our time could not meet in the IM  .. Just some update from my side

Initially I would like to try to do some enhancement on the widget editor such as Pop up menu , but I can see you are doing some major changes in the code , so I stop the research .

Instead , I try to see any additional new widget that I can add , and I am doing 1 of them , ie, wxStaticLine.

I manage to add it , however, there is a problem where when we try to add , it cannot be seen because it takes the default size (very size) , user can only select it from the TreeViewCtrl .

Therefore, I try to hard code a minimum size (wxSize(10,10))  in the creation code and it shows with a viewable size , but have one problem , it cannot be resized !? :shock:

I have looked into the code but I think it is better I do not alter the code of resizing because you are still doing major changes in the code of this layer.


 

cyberkoa:

--- Quote ---I manage to add it , however, there is a problem where when we try to add , it cannot be seen because it takes the default size (very size) , user can only select it from the TreeViewCtrl .

Therefore, I try to hard code a minimum size (wxSize(10,10))  in the creation code and it shows with a viewable size , but have one problem , it cannot be resized
--- End quote ---

I think I know the reason already :) , still checking where is the suitable place to initialize the size.

byo:
Hi, currently I can not help, I'll be inaccessible for one week.

About editor's updates: I've notices many bugs when running wxSmith on Linux. Most of changes were made to add cross-platform compatibility (there's no such thing like transparent window on wxGTK - or it doesn't work and there's no such thing like correct refresh order on wxMSW, and more and more... huh, weird things). And I guess it will change a little bit. But if You'll add something I'll keep it in source :) So any experiments are welcome :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version