FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Redifining folders from resource
Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
Redifining folders from resource
Posted: Wed Jul 22, 2009 09: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?

Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Redifining folders from resource
Posted: Thu Jul 23, 2009 08: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

Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
Re: Redifining folders from resource
Posted: Fri Jul 24, 2009 09: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.

Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
Re: Redifining folders from resource
Posted: Fri Jul 24, 2009 09: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.

Continue the discussion