search for TTabControl() Sample
Re: search for TTabControl() Sample
hi Enrico,
please use Sample "as it is" without "modification" to get "Problem" which i got.
what i have "comment out" are (working) Solution i found
please use Sample "as it is" without "modification" to get "Problem" which i got.
what i have "comment out" are (working) Solution i found
greeting,
Jimmy
Jimmy
Re: search for TTabControl() Sample
hi Antonio,
thx for Sample
Question : what is the Difference "oTabs OF oMain" vs. "oMain:oClient = oTabs"
thx for Sample
Question : what is the Difference "oTabs OF oMain" vs. "oMain:oClient = oTabs"

greeting,
Jimmy
Jimmy
Re: search for TTabControl() Sample
hi Marc,
thx for Answer.
i got a working Solution
thx for Answer.
i got a working Solution
greeting,
Jimmy
Jimmy
Re: search for TTabControl() Sample
hi,
thx for Answer.
i have search in Source for "TTabControl32" ... there is no File include it
than i have search for "TTabControl" and it is only in "that" CLASS
"SysTabControl32" is used in
---
p.s.
as i want to use CODE for different xBase Dialect i use "Original" Windows Control only.
CLASS TFOLDEREX() is very nice but i´m not sure that i can use Concept with HMG or Xbase++
thx for Answer.
i have search in Source for "TTabControl32" ... there is no File include it

than i have search for "TTabControl" and it is only in "that" CLASS
"SysTabControl32" is used in
but i can´t "see" that TFolder() or TPages() use CLASS TTabControl()c:\fwh\source\classes\folder.prg
c:\fwh\source\classes\tpages.prg
c:\fwh\source\classes\ttabctrl.prg
c:\fwh\source\classes\window.prg
---
p.s.
as i want to use CODE for different xBase Dialect i use "Original" Windows Control only.
CLASS TFOLDEREX() is very nice but i´m not sure that i can use Concept with HMG or Xbase++
greeting,
Jimmy
Jimmy
- nageswaragunupudi
- Posts: 10729
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 10 times
- Contact:
Re: search for TTabControl() Sample
Please read TFolder():New() and TPages():New() methods. You will find:
That means both these controls are created using Windows' SysTabControl32()
Code: Select all | Expand
::Create( "SysTabControl32" )
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 10729
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 10 times
- Contact:
Re: search for TTabControl() Sample
Question : what is the Difference "oTabs OF oMain" vs. "oMain:oClient = oTabs"![]()
Code: Select all | Expand
@ r,c TABS oTabs OF oWnd <otherClause>
oWnd is the Parent of oTabs.
oTabs is one the memebers of oWnd:aControls
Code: Select all | Expand
oWnd:oClient := oBrw
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: search for TTabControl() Sample
hi,
, thx
aah, now i understandnageswaragunupudi wrote:oBrw occupies the entire client area of oWnd. When oWnd is resized, oBrw also is resized to fit inside the Parent window's client area.Code: Select all | Expand
oWnd:oClient := oBrw

greeting,
Jimmy
Jimmy
- Enrico Maria Giordano
- Posts: 8766
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 5 times
- Contact:
Re: search for TTabControl() Sample
You are right. There has to be a bug in folder.prg. This is a workaroud:Jimmy wrote:hi Enrico,
please use Sample "as it is" without "modification" to get "Problem" which i got.
what i have "comment out" are (working) Solution i found
Code: Select all | Expand
#include "FiveWin.ch"
MEMVAR oMain, oTabs, oStatusBar
PROCEDURE Main()
LOCAL nHeight := 1024
LOCAL nWidth := 1280
PRIVATE oMain, oTabs, oStatusBar
DEFINE WINDOW oMain FROM 0,0 TO nWidth, nHeight PIXEL TITLE "FiveWin TGrid Listview Demo "
* #define working
#IFDEF working
oTabs := TFolder():New( 3, 3,{"no_1"} , , oMain, 1, , , .t.,;
.f., oMain:nRight - oMain:nLeft, oMain:nBottom - oMain:nTop )
#ELSE
oTabs := TFolder():New( 3, 3,{""} , , oMain, 1, , , .t.,;
.f., oMain:nRight - oMain:nLeft, oMain:nBottom - oMain:nTop )
oTabs:DelItemPos( 1 )
oTabs:AddItem("Grid_1")
* oTabs:AddItem("Grid_2")
#ENDIF
oTabs:SetOption( 1 )
@ 20, 10 BUTTON "blabla" SIZE 300,200 OF oTabs:aDialogs[ 1 ] PIXEL ACTION MsgInfo("blabla")
DEFINE STATUSBAR oStatusBar PROMPT "Hello World " OF oMain SIZES nWidth - 100 CLOCK
ACTIVATE WINDOW oMain CENTER
RETURN
Re: search for TTabControl() Sample
hi Enrico,
i "see"
change {} to {""} and
---
it would be nice when it could be fixed in CLASS TFolder()
i "see"
change {} to {""} and
Code: Select all | Expand
oTabs:DelItemPos( 1 )
it would be nice when it could be fixed in CLASS TFolder()
greeting,
Jimmy
Jimmy