Menu

#21 smarter geometry parsing

open
None
7
2004-11-04
2002-06-10
Don Hatch
No

It would be nice if the geometry parser was made to
understand
the following:
- Percentages or decimal fractions in size
specifications
e.g. either of the following would cause the window
to take up half the screen in width and
height:
50%x50%
.5x.5
Decimal fractions can be differentiated from
size-in-pixels
by the occurance of a decimal point.
(So for example 1 means 1 pixel, but 1. means the
full screen.)
- Percentages or decimal fractions in position
specifications
e.g. any of the following would cause the window
to be
half the screen size and centered:
50%x50%+25%+25%
.5*.5+.25+.25
.5*.5-.25-.25
- Negative sizes, interpreted similarly to negative
positions.
E.g. my preference would be:
-24x75%, meaning (screen width - 24)x(screen
height * 75%)

The attached patch implements this enhancement.
There are a couple of issues marked with XXX that you
might want
to deal with differently.

Discussion

  • Don Hatch

    Don Hatch - 2002-06-10

    patch to implement smarter geometry parsing enhancement request

     
  • Martin Blais

    Martin Blais - 2002-08-06

    Logged In: YES
    user_id=10996

    thx for suggestion and patch, will integrate into main src
    eventually (when i have a minute)

     
  • Martin Blais

    Martin Blais - 2002-08-06
    • assigned_to: nobody --> blais
     
  • Martin Blais

    Martin Blais - 2004-11-04
    • priority: 5 --> 7
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.