Page 1 of 1
VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Wed Feb 13, 2019 11:38 am
by digitsoft
hello Roger
If I use TYPE or COLOR in DCTABPAGE the Tab Graph does not look the same, what can I do to solve this problem.
If you Note in the photo that you send attached Circle 1 the graph is very good in the tab but in the circle 2 it looks old.
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Wed Feb 13, 2019 1:21 pm
by rdonnay
Can you give me a test program that I can compile and run?
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Wed Feb 13, 2019 3:09 pm
by digitsoft
Hello Roger Deputy Example using TabPage
tabpage 1 and tabpage 4 the graphic is different from tabpage 2 and tabpage 3 since one uses COLOR and TYPE, that also happens with TABWIDTH and ANGLE, in TabPage 4 the graphic is correct but if it comes in you will notice that using TYPE XBPTABPAGE_TAB_BOTTOM change the graph to tabpage 2 and tabpage 3
rdonnay wrote:Can you give me a test program that I can compile and run?
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Wed Feb 13, 2019 4:40 pm
by rdonnay
In the sample you gave me you did not use COLOR GRA_CLR_WHITE on the last 2 tabpages.
If you want visualstyle then add PREEVAL {|o|o:usevisualstyle :=.t.}
This only works for tabs on top.
This is from the Xbase++ documentation:
XbpTabPage:type
Determines the position of the tab.
Attribute: EXPORTED
Data type: Numeric (XBPTABPAGE_TAB_TOP)
Description
One of the #define constants XBPTABPAGE_TAB_TOP or XBPTABPAGE_TAB_BOTTOM can be used for :type. They determine whether to display the tab at the top or bottom of the page.
Note: If a visual style is assigned to the XbpTabPage object, the constant XBPTABPAGE_TAB_TOP should be assigned to member :type. Otherwise, the tab page object is displayed using compatible imagery. For more information about visual styles see XbpWindow:useVisualStyle and the function IsThemeActive().
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Wed Feb 13, 2019 8:41 pm
by Auge_Ohr
hi
as i know XBPTABPAGE_TAB_BOTTOM disables visual style see PDR 6148
Arranging the tabs of an XbpTabPage object at the bottom using the
XBPTABPAGE_TAB_BOTTOM type causes the tab page to be displayed in
"Classic" mode. In other words, no visual style is used to display
the tab page on operating systems such as Windows XP or Vista.
This is by design. There is no visual style defined by Microsoft
for tabs arranged at the bottom. Consequently, visual styles are
disabled for bottom-type XbpTabPage objects
---
when working with Codejock we found out that Windows have Tab-Control, which is only the Tabs, and a Static as Body.
i have build native Tab-Control with ot4xb in DXE.LIB

- DXE_Tabpage_Bottom.jpg (48.21 KiB) Viewed 14578 times
DLL/LIB of Demo is for v1.9.355
- DXE_Tabpage.zip
- need ot4xb
Xbase++ v1.9.355 - (157.27 KiB) Downloaded 857 times
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Thu Feb 14, 2019 12:09 am
by Eugene Lutsenko
It's beautiful, Jimmy, the buttons work! And where to get DXE_BASE.dll?
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Thu Feb 14, 2019 12:53 am
by Auge_Ohr
Eugene Lutsenko wrote:It's beautiful, Jimmy, the buttons work! And where to get DXE_BASE.dll?
uuuups ... here it is.
- DXE_BASE.ZIP
- need ot4xb
Xbase++ v1.9.355 - (29.94 KiB) Downloaded 835 times
both are include in DXE.LIB see "User Constribution"
https://bb.donnay-software.com/donnay/v ... f=7&t=1583
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Thu Feb 14, 2019 4:59 am
by digitsoft
Hello Auge_Ohr
I have compiled your example with Alaska 1.9 and I have this error
Auge_Ohr wrote:hi
as i know XBPTABPAGE_TAB_BOTTOM disables visual style see PDR 6148
Arranging the tabs of an XbpTabPage object at the bottom using the
XBPTABPAGE_TAB_BOTTOM type causes the tab page to be displayed in
"Classic" mode. In other words, no visual style is used to display
the tab page on operating systems such as Windows XP or Vista.
This is by design. There is no visual style defined by Microsoft
for tabs arranged at the bottom. Consequently, visual styles are
disabled for bottom-type XbpTabPage objects
---
when working with Codejock we found out that Windows have Tab-Control, which is only the Tabs, and a Static as Body.
i have build native Tab-Control with ot4xb in DXE.LIB
The attachment DXE_Tabpage_Bottom.jpg is no longer available
DLL/LIB of Demo is for v1.9.355
The attachment DXE_Tabpage.zip is no longer available
Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR
Posted: Thu Feb 14, 2019 10:27 am
by Auge_Ohr
digitsoft wrote:I have compiled your example with Alaska 1.9 and I have this error
that is the missing DLL Eugen ask for so i upload DXE_BASE just 1 Msg above.