Page 1 of 1

Creating TABCONTOLS with resource files

Posted: Mon Jan 01, 2007 10:13 pm
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?

Posted: Tue Jan 02, 2007 6:10 pm
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