News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

alignment tool in wxsmith?

Started by ollydbg, December 31, 2011, 08:59:40 AM

Previous topic - Next topic

ollydbg

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?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

MortenMacFly

Quote from: ollydbg on December 31, 2011, 08:59:40 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ollydbg

Quote from: MortenMacFly on December 31, 2011, 10:09:01 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  :).
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

Quote from: ollydbg on January 01, 2012, 09:03:44 AM
Quote from: MortenMacFly on December 31, 2011, 10:09:01 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.

MortenMacFly

Quote from: jens on January 01, 2012, 11:03:07 AM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]