|
List Info
Thread: Spacers and wxGridBagSizers
|
|
| Spacers and wxGridBagSizers |

|
2006-09-05 20:29:54 |
|
I've run into some problems with spacers and wxGridBagSizers.
The first problem is with spacers inside of a wxGridBagSizer. I add a spacer to a wxGridBagSizer. If I then try to move it in the "Projects" pane (within the wxGridBagSizer), I get "Cannot move to this position" twice, and the "Documents" properties list gets "confused". It has properties with blank names (where "Grid x" and "Grid y" were) for the spacer. If I hit F7 to refresh the view, the control I tried to move it in front of is like that as well (after the error message twice again).
I've included a very simple project which is the start point. Just add a spacer to the wxGridBagSizer, and drag the "Spacer" entry in the Windows tree on top of the first wxStaticText. Things go downhill after that.
The second problem I ran into is with deleting columns in a wxGridBagSizer. If you use the included project again (unchanged), right-click on the left wxStaticText, and select Delete->Column, you get "Cannot move to this position" and the column remains. If you try it with the other one (the last column), it just does nothing.
Delete->"Cell in column" doesn't seem to do anything, either. If you have an empty column (e.g., by using Insert->Column), there's no way (that I see) to delete it, and as shown above, adding something to it in order to have a place to right-click doesn't work.
The other issue I found is about spacers: they aren't represented in the "Documents" preview, at least if they're in a wxGridBagSizer (I just checked, and there's a red box for it if it's inside a wxBoxSizer). In either case, you can't select one from the "Documents" "Editor" section (the "preview"). It would be nice if there were something in the preview window, so you can tell it's there and manipulate it (like, say, dragging it around inside a wxGridBagSizer). I don't know what would be best -- maybe a different shade of gray or just a thin border.
Thanks,
Phillip (who really appreciates this program and how much easier it makes his life )
__._,_.___
.
__,_._,___
|
| Spacers and wxGridBagSizers |

|
2006-09-07 07:38:11 |
|
Hi Phillip,
Sorry about these bugs, I'm working on them and most should be fixed
next time around (with the exception of manipulating spacers, though
I'll consider painting them some colour).
Thanks,
Julian
Phillip Seaver wrote:
> I've run into some problems with spacers and wxGridBagSizers.
>
> The first problem is with spacers inside of a wxGridBagSizer. I add a
> spacer to a wxGridBagSizer. If I then try to move it in the
> "Projects" pane (within the wxGridBagSizer), I get "Cannot move to
> this position" twice, and the "Documents" properties list gets
> "confused". It has properties with blank names (where "Grid x" and
> "Grid y" were) for the spacer. If I hit F7 to refresh the view, the
> control I tried to move it in front of is like that as well (after the
> error message twice again).
>
> I've included a very simple project which is the start point. Just
> add a spacer to the wxGridBagSizer, and drag the "Spacer" entry in the
> Windows tree on top of the first wxStaticText. Things go downhill
> after that. 
>
> The second problem I ran into is with deleting columns in a
> wxGridBagSizer. If you use the included project again (unchanged),
> right-click on the left wxStaticText, and select Delete->Column, you
> get "Cannot move to this position" and the column remains. If you try
> it with the other one (the last column), it just does nothing.
>
> Delete->"Cell in column" doesn't seem to do anything, either. If you
> have an empty column (e.g., by using Insert->Column), there's no way
> (that I see) to delete it, and as shown above, adding something to it
> in order to have a place to right-click doesn't work. 
>
> The other issue I found is about spacers: they aren't represented in
> the "Documents" preview, at least if they're in a wxGridBagSizer (I
> just checked, and there's a red box for it if it's inside a
> wxBoxSizer). In either case, you can't select one from the
> "Documents" "Editor" section (the "preview"). It would be nice if
> there were something in the preview window, so you can tell it's there
> and manipulate it (like, say, dragging it around inside a
> wxGridBagSizer). I don't know what would be best -- maybe a different
> shade of gray or just a thin border.
>
> Thanks,
>
> Phillip (who really appreciates this program and how much easier it
> makes his life )
>
--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks
__._,_.___
.
__,_._,___
|
| Spacers and wxGridBagSizers |

|
2006-09-07 07:38:11 |
|
Hi Phillip,
Sorry about these bugs, I'm working on them and most should be fixed
next time around (with the exception of manipulating spacers, though
I'll consider painting them some colour).
Thanks,
Julian
Phillip Seaver wrote:
> I've run into some problems with spacers and wxGridBagSizers.
>
> The first problem is with spacers inside of a wxGridBagSizer. I add a
> spacer to a wxGridBagSizer. If I then try to move it in the
> "Projects" pane (within the wxGridBagSizer), I get "Cannot move to
> this position" twice, and the "Documents" properties list gets
> "confused". It has properties with blank names (where "Grid x" and
> "Grid y" were) for the spacer. If I hit F7 to refresh the view, the
> control I tried to move it in front of is like that as well (after the
> error message twice again).
>
> I've included a very simple project which is the start point. Just
> add a spacer to the wxGridBagSizer, and drag the "Spacer" entry in the
> Windows tree on top of the first wxStaticText. Things go downhill
> after that. 
>
> The second problem I ran into is with deleting columns in a
> wxGridBagSizer. If you use the included project again (unchanged),
> right-click on the left wxStaticText, and select Delete->Column, you
> get "Cannot move to this position" and the column remains. If you try
> it with the other one (the last column), it just does nothing.
>
> Delete->"Cell in column" doesn't seem to do anything, either. If you
> have an empty column (e.g., by using Insert->Column), there's no way
> (that I see) to delete it, and as shown above, adding something to it
> in order to have a place to right-click doesn't work. 
>
> The other issue I found is about spacers: they aren't represented in
> the "Documents" preview, at least if they're in a wxGridBagSizer (I
> just checked, and there's a red box for it if it's inside a
> wxBoxSizer). In either case, you can't select one from the
> "Documents" "Editor" section (the "preview"). It would be nice if
> there were something in the preview window, so you can tell it's there
> and manipulate it (like, say, dragging it around inside a
> wxGridBagSizer). I don't know what would be best -- maybe a different
> shade of gray or just a thin border.
>
> Thanks,
>
> Phillip (who really appreciates this program and how much easier it
> makes his life )
>
--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks
__._,_.___
.
__,_._,___
|
[1-3]
|
|