Code::Blocks Forums

User forums => Help => Topic started by: ollydbg on December 31, 2011, 08:59:40 am

Title: alignment tool in wxsmith?
Post by: ollydbg on December 31, 2011, 08:59:40 am
I just add many items in a dialog under wxsmith, but I would like to let some of them left aligned.

I see that wxsmith does not support select multiply items (I just try to hold down the CTRL key or Shift key when I select element, but it does not work), so I guess this feature is not implemented, right?
Title: Re: alignment tool in wxsmith?
Post by: MortenMacFly on December 31, 2011, 10:09:01 am
so I guess this feature is not implemented, right?
Correct, as it would be not an easy thing to do, because you would need t consider the type of the controls you multi-select (think of spacers for example). Not all controls support all flags. However, it's doable - if you look at DialogBlocks for example.
Title: Re: alignment tool in wxsmith?
Post by: ollydbg on January 01, 2012, 09:03:44 am
However, it's doable
Hope some one will implement it some day. (I'm not familiar with the wxsmith‘s source code, so can't help much currently  :).
Title: Re: alignment tool in wxsmith?
Post by: Jenna on January 01, 2012, 11:03:07 am
However, it's doable
Hope some one will implement it some day. (I'm not familiar with the wxsmith‘s source code, so can't help much currently  :).
It would surely be an interesting feature to have the possibility to multiselect several controls and have the ability to change the settings that are common to all of them.

Maybe I find the time to see if it can be implemented, but I think it's not so easy.
Title: Re: alignment tool in wxsmith?
Post by: MortenMacFly on January 01, 2012, 08:02:41 pm
Maybe I find the time to see if it can be implemented, but I think it's not so easy.
I what should come first is a correct inheritance of flags (events) between controls. Then (I think) enabling / disabling common flags would be easier as these are simply the flags of the same parent between the controls. I think that's what Byo had in mind in the beginning - but is seems its not consequently implemented.