[SOLVED] Form background and wxGrid incomplete

Post here wxCrafter related issues / features / bugs
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

[SOLVED] Form background and wxGrid incomplete

Post 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?
Last edited by Landslyde on Thu Dec 12, 2019 12:39 am, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post by eranif »

can you show the 'tree view' part of the designer?
Make sure you have read the HOW TO POST thread
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post by Landslyde »

Image
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post 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
Make sure you have read the HOW TO POST thread
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post by Landslyde »

No dice.

Image
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post by eranif »

can you upload the wxcp file?
Make sure you have read the HOW TO POST thread
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post by Landslyde »

Hope this helps. I was messing around with it while waiting on your response and took out the panel.
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post 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
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Form background and wxGrid incomplete

Post 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.
Post Reply