How to make TFOLDEREX in FLAT style?

Post Reply
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

How to make TFOLDEREX in FLAT style?

Post by dutch »

Dear All,

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)
User avatar
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?

Post by Antonio Linares »

Dear Dutch,

Please provide a screenshot with the folderex look that you wish
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to make TFOLDEREX in FLAT style?

Post by dutch »

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.
Image
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)
User avatar
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?

Post by Antonio Linares »

Dear Dutch,

We need to modify METHOD PaintTB() so tabs are painted in different styles. Looking for a way to do it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: How to make TFOLDEREX in FLAT style?

Post by Jimmy »

hi Dutch

have you try to disable "visual Style" for TFOLDEREX :?:
greeting,
Jimmy
User avatar
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?

Post by Antonio Linares »

Dear Jimmy,

How to do it ? thank you
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: How to make TFOLDEREX in FLAT style?

Post by Jimmy »

hi,

Code: Select all | Expand

   oTab := TFolderEx() :New( .. )
   // disable visual Style
   SetWindowTheme( oTab:hWnd, "", "" )
greeting,
Jimmy
User avatar
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?

Post by leandro »

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) ]
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to make TFOLDEREX in FLAT style?

Post by dutch »

Dear Antonio,

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)
User avatar
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?

Post by Antonio Linares »

Dear Dutch,

Please try Leandro's solution as it seems a very good one:

https://fivetechsupport.com/forums/view ... 2a#p263934
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: How to make TFOLDEREX in FLAT style?

Post by Jimmy »

hi Dutch,
dutch wrote:Can I DISABLE TAB (disable color) for TFOLDER?
in CLASS TFolderEx() there is

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
User avatar
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?

Post by nageswaragunupudi »

Mr. Dutch

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
Regards

G. N. Rao.
Hyderabad, India
Post Reply