Page 1 of 1

Redifining folders from resource

Posted: Wed Jul 22, 2009 9:44 pm
by MichaelMo
My conversion to 32 bits is going extremely well. I'm quite pleased with how much of my 16 bit code works out of the box without modification. I am however having some trouble figuring out how to redefine a folder from a screen resource file. I'm using Visual Studio to edit the converted screens in the 32 bit DLL file that I converted from 16 bit dll that was created in Borland Resource Workshop. The folder control was a custom TFolder class control under Borland. When I redefine this converted resource I get no folder tabs across the top, and I see only the checkboxes that I defined on the first folder. When I delete the custom control and add a tab control in it's place from VS, I get nothing but a blank screen and no controls at all. What am I doing wrong?

Re: Redifining folders from resource

Posted: Thu Jul 23, 2009 8:23 am
by PeterHarmes
Michael,

You have to change Tfolder to SysTabControl32, like this:

CONTROL "", 6100, "SysTabControl32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 5, 121, 395, 129

Regards,

Pete

Re: Redifining folders from resource

Posted: Fri Jul 24, 2009 9:38 pm
by MichaelMo
Thanks Pete, I'll give it a try. I can see that it would be advantageous to rewrite the screens in pure code to make it more portable, but right now I'd just like to finish converting it to 32 bit.

Re: Redifining folders from resource

Posted: Fri Jul 24, 2009 9:43 pm
by MichaelMo
PeterHarmes wrote:Michael,

You have to change Tfolder to SysTabControl32, like this:

CONTROL "", 6100, "SysTabControl32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 5, 121, 395, 129

Regards,

Pete
That worked like a champ. Thanks.