TTaskPanel

TTaskPanel

Postby AntoninoP » Thu Feb 26, 2015 2:18 pm

Hello,
Is it possible use TTaskPanel without a TExplorerBar or make the TExplorerBar totally transparent?
Thanks,
Antonino Perricone
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: TTaskPanel

Postby AntoninoP » Fri Feb 27, 2015 2:00 pm

Hello,
I modified the texplbar.prg code at line 186:
old one was:
Code: Select all  Expand view  RUN
Gradient( ::hDC, { 0, 0, ::nHeight(), ::nWidth() }, ::nTopColor, ::nBottomColor, .T. )

new one is:
Code: Select all  Expand view  RUN
   if ::lTransparent
      ::PaintBack(::hDC)
   else
      Gradient( ::hDC, { 0, 0, ::nHeight(), ::nWidth() }, ::nTopColor, ::nBottomColor, .T. )            
   endif 

I am not sure about Paint, PaintBack, BeginPaint, EndPaint, etc where is the correct point manage the transparency. :roll:

If anyone is interested, I create this batch to update a single prg inside FiveH32.lib
Code: Select all  Expand view  RUN
cd source\%1
hbmk2 %2 -clipper -i..\..\include
move /y %2.obj ..\..\lib\
cd ..\..\lib
lib /remove:%2.obj fiveh32.lib
lib /remove:objh32\%2.obj fiveh32.lib
lib fiveh32.lib %2.obj
cd .. 

It works with harbour and visual studio, it takes 2 parameters, the first one is the directory where is placed the prg and the second one is the filename without extension of prg.

I hope this fix will be included in fiveWin :D
Regards,
Antonino Perricone
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: TTaskPanel

Postby AntoninoP » Fri Mar 20, 2015 2:36 pm

Hello,

I see that this modification is not present in FWH 15.03, why?
Is it so wrong to want a transparent TExplorerBar? We use TExplorerBar with TTaskPanel in a windows with image background...
It is not possible use TTaskPanel without TExplorerBar.
Regards,
Perry
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: TTaskPanel

Postby nageswaragunupudi » Fri Mar 20, 2015 2:50 pm

Is it so wrong to want a transparent TExplorerBar?

Not at all.
I see that this modification is not present in FWH 15.03, why?

Due to constraints of time, we may not be able to accommodate every proposal "immediately". Urgent changes and fixes get priority.
Meanwhile, would you be pleased to provide a screen-shot for the benefit of all users?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TTaskPanel

Postby AntoninoP » Fri Mar 20, 2015 3:35 pm

Sorry, I thought you ignored my post.
For these screenshot I mixed the samples explbar3.prg and btntrans.prg, plus some modification to avoid the explorerBar occupies all window.

This image is without my modification, I setted oExBar:lTransparent := .T.:
Image
This one, instead, is with my modification:
Image

If one want the first look just set the transparent to false.

I saw on texplbar.prg line 74
Code: Select all  Expand view  RUN
  ::nBottom = nHeight - nTop
   ::nRight  = nWidth - nLeft

I think should be
Code: Select all  Expand view  RUN
  ::nBottom = nHeight + nTop
   ::nRight  = nWidth + nLeft


Regards,
Antonino Perricone
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: TTaskPanel

Postby Antonio Linares » Fri Mar 20, 2015 4:20 pm

Antonino,

It looks nice, but as possibilities are endless, the question is:

will FWH users want this change ?

Lets see what the FWH users say :-)
regards, saludos

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

Re: TTaskPanel

Postby AntoninoP » Fri Mar 20, 2015 4:29 pm

As user, I should prefer to use TTaskPanel alone, as replacement of VBar. :D
But this solution is simpler.
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], karinha, Natter and 79 guests