DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2102
Version: 1.3-feature


FL_ALIGN seems to have some limitations that prevents certain positions for
labels that would should be possible. 

The following diagram shows the 12 possible positions that really should
be achievable. Four of these positions can't currently be achieved (marked
with ???'s):


              TOP|LEFT   TOP|CTR    TOP|RIGHT
               ______________________________
 TOP|LEFT|??? |                              |  RIGHT|TOP|???
              |                              |
     LEFT|CTR |                              |  RIGHT|CTR
              |                              |
 BOT|LEFT|??? |______________________________|  RIGHT|BOT|???

               BOT|LEFT   BOT|CTR    BOT|RIGHT

I think an easy way to remedy this would be to make a new FL_ALIGN_SIDE
flag, to allow TOP/BOT flags to be overloaded. So FL_ALIGN_SIDE could be
used in place of the ???'s above to achieve these positions.

This way only /one/ additional FL_ALIGN bit flag is needed.

Thing is, it gets pretty hard from the user's point of view to predict the
12 positions just by looking at the FL_ALIGN names.

So as a 'part II' to this request, it might be good to add convenience
FL_ALIGN_XXX flags that use clock face numbers to represent the 12
positions, eg:


              11             12             1
               ______________________________
          10  |                              |  2
              |                              |
           9  |                              |  3
              |                              |
           8  |______________________________|  4

               7             6              5

So to put a label at the 4 o'clock position: FL_ALIGN_4_OCLOCK would be a
convenience flag for RIGHT|BOT|SIDE.


Link: http://www.fltk.org/str.php?L2102
Version: 1.3-feature

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to