## Modifications for XP-style QTabcontrols in RapidQ

As soon as I wrote that bit about hacking QTabcontrols I knew Alain would write in.
Not least because he's asked me about it before.
So here's how to do it...

But before I give the game away I need to inform you of the consequences of this patch.
You'll be removing the `TCS_OWNERDRAWFIXED` style attribute.
It's sole purpose in normal RQ is for `InactiveTabColor` and `InactiveTabFont`.

XP doesn't use them

but you'll also lose them on pre-XP machines and XP in classic mode.
They're a Borland thing anyway and standard Microsoft tabcontrols don't use them.

Also XP doesn't support tabs anywhere other than along the top.

You need to adjust a single byte in each of the libraries.
The easiest way I find to do this is in a Hex Editor.
You'll have to do this with the libraries de-UPXed.

Below is a table of the offsets for each libraries.

Library | Offset
--- | ---
32 / cc.dll | &H000548DA
32 / cc.lib | &H000547FA
2 / 2c.lib | &H0005402E
3 / 3c.lib | &H00049A36
4 / 4c.lib | not applicable

At the offset shown you should edit the existing value (`&H20`) to zero.

When you've done that, try them out as they are and then if you're satisfied re-UPX them.
`--best` is fine but with the latest UPX you'll find that
`--lzma` gives better compression and is faster.

Best of luck, Paul