How to make TFOLDEREX in FLAT style?
How to make TFOLDEREX in FLAT style?
Dear All,
I need to change TFOLDEREX UI as FLAT style. How can I do it?
Thanks in advance,
I need to change TFOLDEREX UI as FLAT style. How can I do it?
Thanks in advance,
Regards,
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
- Antonio Linares
- Site Admin
- Posts: 42512
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
Re: How to make TFOLDEREX in FLAT style?
Dear Dutch,
Please provide a screenshot with the folderex look that you wish
Please provide a screenshot with the folderex look that you wish
Re: How to make TFOLDEREX in FLAT style?
Dear Antonio,
I use FOLDER for many years but the disable folder tab and enable is the same. I test TFOLDEREX is show different (that I need).
I just need TFOLDER that show disable tab as disable object as TFOLDEREX.
I use FOLDER for many years but the disable folder tab and enable is the same. I test TFOLDEREX is show different (that I need).
I just need TFOLDER that show disable tab as disable object as TFOLDEREX.
![Image](https://i.postimg.cc/FRd9G3b3/1695373819611.jpg)
Antonio Linares wrote:Dear Dutch,
Please provide a screenshot with the folderex look that you wish
Regards,
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
- Antonio Linares
- Site Admin
- Posts: 42512
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
Re: How to make TFOLDEREX in FLAT style?
Dear Dutch,
We need to modify METHOD PaintTB() so tabs are painted in different styles. Looking for a way to do it
We need to modify METHOD PaintTB() so tabs are painted in different styles. Looking for a way to do it
Re: How to make TFOLDEREX in FLAT style?
hi Dutch
have you try to disable "visual Style" for TFOLDEREX![Question :?:](./images/smilies/icon_question.gif)
have you try to disable "visual Style" for TFOLDEREX
![Question :?:](./images/smilies/icon_question.gif)
greeting,
Jimmy
Jimmy
- Antonio Linares
- Site Admin
- Posts: 42512
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
Re: How to make TFOLDEREX in FLAT style?
hi,
Code: Select all | Expand
oTab := TFolderEx() :New( .. )
// disable visual Style
SetWindowTheme( oTab:hWnd, "", "" )
greeting,
Jimmy
Jimmy
- leandro
- Posts: 1744
- Joined: Wed Oct 26, 2005 2:49 pm
- Location: Colombia
- Has thanked: 34 times
- Been thanked: 10 times
- Contact:
Re: How to make TFOLDEREX in FLAT style?
Creo que tambien te puede funcionar
Code: Select all | Expand
@ 0, 0 FOLDEREX oFld1 PIXEL PROMPTS "Pendientes", "Despachados" OF oP SIZE oP:nWidth, oP:nHeight TAB HEIGHT 40 ON CHANGE EVAL(cbRecibe) NOBORDER
WITH OBJECT oFld1
:aGradSel := { { 1, CLR_WHITE, CLR_WHITE } }
:aGradUnSel := { { 1, CLR_WHITE, CLR_WHITE } }
:aGradOver := { { 1, Rgb( 237, 237, 237 ), Rgb( 237, 237, 237 ) } } //
:aGradOverUnSel := :aGradOver
END
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com
[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 24.09 ] [ xHarbour 64 bits) ]
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com
[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 24.09 ] [ xHarbour 64 bits) ]
Re: How to make TFOLDEREX in FLAT style?
Dear Antonio,
Can I DISABLE TAB (disable color) for TFOLDER?
Can I DISABLE TAB (disable color) for TFOLDER?
Antonio Linares wrote:Dear Dutch,
We need to modify METHOD PaintTB() so tabs are painted in different styles. Looking for a way to do it
Regards,
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
- Antonio Linares
- Site Admin
- Posts: 42512
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
Re: How to make TFOLDEREX in FLAT style?
Dear Dutch,
Please try Leandro's solution as it seems a very good one:
https://fivetechsupport.com/forums/view ... 2a#p263934
Please try Leandro's solution as it seems a very good one:
https://fivetechsupport.com/forums/view ... 2a#p263934
Re: How to make TFOLDEREX in FLAT style?
hi Dutch,
---
Method to set Color of TAB are in Codeblock
in CLASS TFolderEx() there isdutch wrote:Can I DISABLE TAB (disable color) for TFOLDER?
Code: Select all | Expand
METHOD DisableTab( nOption ) CLASS TFolderEx
DEFAULT nOption := ::nOption
IF ::aEnable[ nOption ]
::aEnable[ nOption ] = .F.
::aDialogs[ nOption ]:Disable()
::Refresh()
ENDIF
RETURN NIL
Method to set Color of TAB are in Codeblock
Code: Select all | Expand
bClrTabs := {| o, n | ::SetFldColors( o, n ) },;
METHOD SetFldColors( oThis, n ) CLASS TFolderEx
...
IF ! ::aEnable[ n ]
hBrush = GradientBrush( ::hDC, 0, 0, nWidth, nHeight, ::aGradDis, lHor )
RETURN hBrush
ENDIF
greeting,
Jimmy
Jimmy
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: How to make TFOLDEREX in FLAT style?
Mr. Dutch
While thanking Mr. Leandro,
Please try this small sample
![Image](https://imagizer.imageshack.com/v2/xq70/922/tA10hY.png)
While thanking Mr. Leandro,
Please try this small sample
Code: Select all | Expand
function TestFolderex()
local oDlg, oFld
DEFINE DIALOG oDlg SIZE 400,300 PIXEL TRUEPIXEL ;
TITLE "FOLDEREX FLAT STYLE by Leandro"
@ 10,10 FOLDEREX oFld ADJUST OF oDlg SIZE 380,280 PIXEL ;
PROMPT "Monday", "Tuesday", "WednesDay", "Thursday"
WITH OBJECT oFld
:aGradSel := { { 1, CLR_WHITE, CLR_WHITE } }
:aGradUnSel := { { 1, CLR_WHITE, CLR_WHITE } }
:aGradOver := { { 1, Rgb( 237, 237, 237 ), Rgb( 237, 237, 237 ) } } //
:aGradOverUnSel := :aGradOver
//
:DisableTab( 3 )
END
ACTIVATE DIALOG oDlg CENTERED
return nil
![Image](https://imagizer.imageshack.com/v2/xq70/922/tA10hY.png)
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India