VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#1 Post 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.
Attachments
Example.jpg
Example.jpg (117.32 KiB) Viewed 12851 times
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#2 Post by rdonnay »

Can you give me a test program that I can compile and run?
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#3 Post 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?
Attachments
Captura.JPG
Captura.JPG (30.66 KiB) Viewed 12843 times
Tabpage.rar
Example
(13.51 KiB) Downloaded 681 times
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#4 Post 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().
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#5 Post 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
DXE_Tabpage_Bottom.jpg (48.21 KiB) Viewed 12833 times
DLL/LIB of Demo is for v1.9.355
DXE_Tabpage.zip
need ot4xb
Xbase++ v1.9.355
(157.27 KiB) Downloaded 692 times
greetings by OHR
Jimmy

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#6 Post by Eugene Lutsenko »

It's beautiful, Jimmy, the buttons work! And where to get DXE_BASE.dll?

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#7 Post 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 705 times
both are include in DXE.LIB see "User Constribution"
https://bb.donnay-software.com/donnay/v ... f=7&t=1583
greetings by OHR
Jimmy

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#8 Post 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
Attachments
Captura.JPG
Captura.JPG (19.82 KiB) Viewed 12803 times
Nolberto Paulino
Regards

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: VISUAL PROBLEM IN DCTABPAGE USING TYPE or COLOR

#9 Post 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.
greetings by OHR
Jimmy

Post Reply