Redifining folders from resource

Redifining folders from resource

Postby MichaelMo » Wed Jul 22, 2009 9:44 pm

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?
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: Redifining folders from resource

Postby PeterHarmes » Thu Jul 23, 2009 8:23 am

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
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Redifining folders from resource

Postby MichaelMo » Fri Jul 24, 2009 9:38 pm

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.
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: Redifining folders from resource

Postby MichaelMo » Fri Jul 24, 2009 9:43 pm

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.
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 33 guests