Tag Info

New answers tagged

2

Answering in a very abstract and technology/framework agnostic manner, my thinking is as follows What a GUI control is (ie. volume up, volume down) not equates to how it is positioned in a window (a frame of visual reference). Therefore separate the functionality of laying-out from the controls themselves. Use a factory to create various layout managers ...


1

two derived concrete classes for the specifics needed for horizontal-ness vs vertical-ness. This feels the most correct Well, to me this feels mostly wrong. Your button can have a dozen properties or more like the orientation, for example it could be resizable, have a specific color, it could be labeled with an image, text or both, and so on. If you ...


1

As a note up front, I am not familiar with how the Apple UI components commonly work and I mostly have experience working with Qt. This might influence the applicability of my answer. I would start with a set of widgets that are orientation-neutral, but that can naturally be used where you expect an orientation-specific widget. For example a button where ...



Top 50 recent answers are included