How to make TFOLDEREX in FLAT style?

How to make TFOLDEREX in FLAT style?

Postby dutch » Fri Sep 22, 2023 9:19 am

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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to make TFOLDEREX in FLAT style?

Postby Antonio Linares » Fri Sep 22, 2023 1:46 pm

Dear Dutch,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to make TFOLDEREX in FLAT style?

Postby dutch » Sat Sep 23, 2023 4:32 am

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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to make TFOLDEREX in FLAT style?

Postby Antonio Linares » Sun Sep 24, 2023 8:02 pm

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
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to make TFOLDEREX in FLAT style?

Postby Jimmy » Sun Sep 24, 2023 9:24 pm

hi Dutch

have you try to disable "visual Style" for TFOLDEREX :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: How to make TFOLDEREX in FLAT style?

Postby Antonio Linares » Mon Sep 25, 2023 5:34 am

Dear Jimmy,

How to do it ? thank you
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to make TFOLDEREX in FLAT style?

Postby Jimmy » Mon Sep 25, 2023 12:55 pm

hi,

Code: Select all  Expand view
  oTab := TFolderEx() :New( .. )
   // disable visual Style
   SetWindowTheme( oTab:hWnd, "", "" )
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: How to make TFOLDEREX in FLAT style?

Postby leandro » Mon Sep 25, 2023 10:13 pm

Creo que tambien te puede funcionar

Code: Select all  Expand view

@ 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

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: How to make TFOLDEREX in FLAT style?

Postby dutch » Tue Sep 26, 2023 1:33 am

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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to make TFOLDEREX in FLAT style?

Postby Antonio Linares » Tue Sep 26, 2023 6:14 am

Dear Dutch,

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

viewtopic.php?p=263934&sid=1638a370ada5b0acba8110c25770d52a#p263934
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to make TFOLDEREX in FLAT style?

Postby Jimmy » Tue Sep 26, 2023 6:49 am

hi Dutch,
dutch wrote:Can I DISABLE TAB (disable color) for TFOLDER?

in CLASS TFolderEx() there is
Code: Select all  Expand view
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 view
  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
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: How to make TFOLDEREX in FLAT style?

Postby nageswaragunupudi » Tue Sep 26, 2023 11:44 am

Mr. Dutch

While thanking Mr. Leandro,
Please try this small sample
Code: Select all  Expand view
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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 65 guests