Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxJoy

<< < (2/2)

zmodem:
Didn't realize this thread was a bit old when I started typing this out.  Heh, oh well, hopefully someone has figured this out before now...
******

Yes, you're right, XRC does not at all support adding grids.  Definately a major shortcoming of XRC.  Hopefully it will be fixed soon. 

Until then, use a foreign window


--- Code: ---int ID_GRID = wxNewId();

wxXmlResource::Get()->LoadFrame(this, parent, "ID_MAIN_FRAME");
wxGrid mygrid = new wxGrid(....);
wxXmlResource::Get()->AttachUnknownControl( "ID_GRID", mygrid );

--- End code ---

Then, in the XRC file, enter this where you want the grid...


--- Code: ---<object class="unknown" name="ID_GRID">
    <size> .... </size>
</object>

--- End code ---

HTH

--cheers

Navigation

[0] Message Index

[*] Previous page

Go to full version