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

wxSmith development

<< < (9/34) > >>

rickg22:
Okay guys, in case you didn't notice, I just created a new "RAD Plugins development" forum 8). You're free to expand your wxSmith questions in other threads. Just insert "Wxsmith: " before the specific question.

byo:

--- Quote from: cyberkoa ---Thx,understood.  The flag indicate whether the widget is static widget (keep in xrc) or dynamics created using C++ code . Hmm ,this is important in code generation.
--- End quote ---


Hmm, not exackly. The flag indicating whether dialgo uses XRC or should be inside dialog resource, not one widget.

Maybe will describe with a bit of code (example what would be generated from wxSmith;) ):

1). One widget with VarNotStored = false

--- Code: ---class MyDialog: public wxDialog
{
  public:
    MyDialog(...)
    {
      Widget = new wxStaticText(this,-1,"Hello world");
    }
  protected:
    wxStaticText* Widget;
}

--- End code ---


2). One widget with VarNotStoredd = true

--- Code: ---class MyDialog: public wxDialog
{
  public:
    MyDialog(...)
    {
      wxStaticText* Widget;
      Widget = new wxStaticText(this,-1,"Hello world");
    }
}

--- End code ---


So if VarNotStored == true, it means that Variable for this widget will be created locally inside function creating dialog, VarNotStored == false means that it will be a member of class and will be acessible from other members in this class.

Hope I've explained this now :)

byo:

--- Quote from: rickg22 ---Okay guys, in case you didn't notice, I just created a new "RAD Plugins development" forum 8). You're free to expand your wxSmith questions in other threads. Just insert "Wxsmith: " before the specific question.
--- End quote ---

Thx for new forum :) It should be easier to work now :D

rickg22:
Uh... shouldn't you change the name to IsMember or something?

byo:

--- Quote from: rickg22 ---Uh... shouldn't you change the name to IsMember or something?
--- End quote ---

Thx for advice, should think more before coding ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version