Page 1 of 1

[SOLVED] Form background and wxGrid incomplete

Posted: Wed Dec 11, 2019 11:19 pm
by Landslyde
If we can get this fixed, I'm sold on CodeLite and wxCrafter. Now, to the issue.

I'm following a wxCrafter tutorial on youtube, one of yours, I think. Nice tutorial. But after I lay out the three wxGrids and click "Show Preview", the Form's background is incomplete. The wxGrid, too. In the pic, the Preview is the bottom Form.

Image

I tried wxCrafter once before and it was the same way. I super like the tool, but this is a deal breaker for me.

Why is this happening? And what can be done to "fix" it?

Re: Form background and wxGrid incomplete

Posted: Wed Dec 11, 2019 11:22 pm
by eranif
can you show the 'tree view' part of the designer?

Re: Form background and wxGrid incomplete

Posted: Wed Dec 11, 2019 11:26 pm
by Landslyde
Image

Re: Form background and wxGrid incomplete

Posted: Wed Dec 11, 2019 11:33 pm
by eranif
it is recommended to put a wxPanel as the only direct child of wxFrame and then add the controls as teh children of this wxPanel

Re: Form background and wxGrid incomplete

Posted: Wed Dec 11, 2019 11:46 pm
by Landslyde
No dice.

Image

Re: Form background and wxGrid incomplete

Posted: Wed Dec 11, 2019 11:56 pm
by eranif
can you upload the wxcp file?

Re: Form background and wxGrid incomplete

Posted: Thu Dec 12, 2019 12:05 am
by Landslyde
Hope this helps. I was messing around with it while waiting on your response and took out the panel.

Re: Form background and wxGrid incomplete

Posted: Thu Dec 12, 2019 12:22 am
by eranif
Multiple issues:
- Make the wxPanel Expand + Sizer proportion of 1
- the m_mainPanel must not have borders (so it will cover the main frame *completely*)

The above are wxWidgets properties, and non of them is a bug...

I added some border to the wxGrid + added some columns and rows for visibility
I also fixed some alignment issues


See attached fixed wxcp file

Re: Form background and wxGrid incomplete

Posted: Thu Dec 12, 2019 12:30 am
by Landslyde
Looks right. The video I watched had no sound to it, and that made it a little difficult to follow. That, and he/she did the work kind of fast.

Thanks, eranif.