Author Topic: alignment tool in wxsmith?  (Read 8514 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
alignment tool in wxsmith?
« 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?
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: alignment tool in wxsmith?
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: alignment tool in wxsmith?
« Reply #2 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  :).
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: alignment tool in wxsmith?
« Reply #3 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: alignment tool in wxsmith?
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ