Creating TABCONTOLS with resource files

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Creating TABCONTOLS with resource files

Post by Ollie »

I need guidance with creating TABCONTOLS with resource files.

Using FWxH and Pelles C - (I can't see a TAB control under Borland's )

I can put the control on the screen, but how do I specify the no. of tabs, tab names and whats on each tab?
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

The no of tabs ist not specified in the resource, but in the source code.

This line

Code: Select all

REDEFINE TABS oTabs ID 1000 OF oDlg ;
             PROMPT "A-Z",;
                    " A ", " B ", " C ", " D ", " E ", " F ", " G ", " H ",;
                    " I ", " J ", " K ", " L ", " M ", " N ", " O ", " P ",;
                    " Q ", " R ", " S ", " T ", " U ", " V ", " W ", " X ",;
                    " Y ", " Z " ;
gives you 27 tabs.

Stefan
Post Reply