I can not get the new tabs working if they are NOT bind with a oWnd:oBottom:=oTab.
For example, TABS in a DIALOG:
- Code: Select all Expand view RUN
#include "FiveWin.ch"
#include "Folder.ch"
FUNCTION Main()
LOCAL oDlg
DEFINE DIALOG oDlg FROM 0,0 TO 20,70
@ 2,2 TABS OF oDlg ;
PROMPTS "&Test1", "&Test2", "&Test3"
ACTIVATE DIALOG oDlg CENTER
RETURN nil
Produces an error.
Same error for REDEFINE TABS:
- Code: Select all Expand view RUN
#include "FiveWin.ch"
#include "Folder.ch"
FUNCTION Main()
LOCAL oDlg
DEFINE DIALOG oDlg RESOURCE "TestTabs"
REDEFINE TABS ID 100 OF oDlg ;
PROMPTS "&Test1", "&Test2", "&Test3"
ACTIVATE DIALOG oDlg
RETURN nil
The RC:
- Code: Select all Expand view RUN
TestTabs DIALOG 11, 26, 165, 110
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "TestTabs"
FONT 8, "MS Sans Serif"
{
CONTROL "", 100, "TTabs", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER, 8, 86, 149, 14
}
Once I use oDlg:oBottom:=oTabs, it works as expected.
Is there something I do wrong? I'm puzzled..
Thanks!
Patrick