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

wxSmith - tutorial

<< < (6/10) > >>

The Falcon:
BYO,

    Yep, you're spot on with the wxSizer->Layout() suggestion. If I add this call after the wxSmith block of code (in constructor) and also in the event handler that updates the text value, then everything works as expected. Incidentally calling the Show() method on the wsSizer followed by Layout() also works. I'll leave it in your capable hands as to how you implement this in wxSmith at a later stage.
    One other thing did crop up when I was experimenting with this issue. I have a habit (picked up in VB years ago) of renaming the default widget names e.g. BoxSizer1 becomes MainBoxSizer or whatever. I had at one stage added the following inside the wxSmith comment markers; BoxSizer1->Show(stSelected, false, false), followed by BoxSizer1->Layout(). When I changed the name property afterwords in the property dialog (to MainBoxSizer) all the wxSmith generated code was appropriately renamed, however the two calls I had added were gone, deleted, non-existent :o. Ok, well I guess the general rule, at least for the moment, is stay out of wxSmith's code block.  :lol: It's no great drama, it just caught me by surprise. I mean I can't expect wxSmith to go looking everywhere to check if I have used this (changed) name elsewhere. Of course I have to take responsibility for fixing the references/calls in the combo event handler. The point here I guess is that it was the delete that surprised, if it had simply been left alone (or even miraculously renamed as well) there would have been no surprise, but there you go, life is full of surprises. All the best with your development of wxSmith and other endeavours and thanks for your patient assistance with the issues I raised.  :D

Regards
    The Falcon.

RJP Computing:
What happened to the tutorial. I can't find it. It doesn't appear in the wiki any more.

mandrav:

--- Quote from: RJP Computing on January 16, 2006, 04:55:10 am ---What happened to the tutorial. I can't find it. It doesn't appear in the wiki any more.

--- End quote ---

http://wiki.codeblocks.org/index.php?title=WxSmith_Tutorial_%26_Pointers

MortenMacFly:

--- Quote from: RJP Computing on January 16, 2006, 04:55:10 am ---I can't find it. It doesn't appear in the wiki any more.

--- End quote ---
Main page -> "Developing for Code::Blocks" (in table of contents) -> "wxSmith Tutorial & Pointers"

RJP Computing:
Found it.  :oops: Sorry.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version