New TABS bug?
Posted: Sun Mar 09, 2008 11:43 am
Hello,
I can not get the new tabs working if they are NOT bind with a oWnd:oBottom:=oTab.
For example, TABS in a DIALOG:
Produces an error.
Same error for REDEFINE TABS:
The RC:
Once I use oDlg:oBottom:=oTabs, it works as expected.
Is there something I do wrong? I'm puzzled..
Thanks!
Patrick
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
#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
Same error for REDEFINE TABS:
Code: Select all
#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
Code: Select all
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
}
Is there something I do wrong? I'm puzzled..
Thanks!
Patrick