Re: w32feature()

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:

Hi Chris, thanks for your work (and the work of everyone else who has worked on
it) on win32lib.  It is still my favourite 'toolkit' since it minimises compiled
executable size and lowers distribution hassles, being native win32 based.

> I don't expect to put this in win32lib v0.70.4a, but perhaps in 70..
> 
> Some behaviours of the library are not quite right, but they have been that
> way for a long time and code is using or working around the behaviour.
> 
> I'm contemplting the addition of a w32feature(name) or
> w32feature(name,state=on)
> proedure that would act a little like a with/without directive in this egard.
>.....
> and much code is working around it. w32feature("adjust_tabctrl_rect") would
> enable the newer, nicer behaviour, default being the current.
> 
> Any thoughts?

I like the idea (if maintainers are comfortable with the increased complexity).
I'd like to see a w32feature("long_rects") because of for example getRect
returning a 'left, top, right, bottom' and setRect taking a 'left, top, width,
height'. I'm sure there are more examples.

This makes code look messy with rect[4] - rect[2], etc all over the place and
increases the brain strain of using these functions.

So if these kinds of functions could take a single rect sequence where a rect is
'left,top,right,bottom,width,height' and all functions consistently used this,
then I would be extremely happy.

Gary

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu