Implementing FWH own Class TExplorerBar

Implementing FWH own Class TExplorerBar

Postby Antonio Linares » Tue Jun 01, 2010 7:07 am

Still working on it but you can already see its progress :-)

Image
regards, saludos

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

Re: Implementing FWH own Class TExplorerBar

Postby Bayron » Tue Jun 01, 2010 2:40 pm

Great news, the more controls we have, the more powerful FWH will become... and the nicer applications can be designed.
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: Implementing FWH own Class TExplorerBar

Postby James Bott » Tue Jun 01, 2010 4:36 pm

Nice! I have been looking forward to this control for years. I think this will be very useful.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Implementing FWH own Class TExplorerBar

Postby Antonio Linares » Wed Jun 02, 2010 4:27 am

Showing the panels bitmaps (configurables) and the "hover" color (configurable) when the mouse is over a panel:

Image
regards, saludos

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

Re: Implementing FWH own Class TExplorerBar

Postby Antonio Linares » Wed Jun 02, 2010 6:44 am

Displaying the items bitmaps :-)

Image

Example source code (compatible with Andres Reyes TExplorerBar):
Code: Select all  Expand view  RUN

#include "FiveWin.ch"

//----------------------------------------------------------------------------//

function Main()

   local oWnd, oExBar, oPanel1, oPanel2, oPanel3, oPanel4
   local bClick := { | o | MsgInfo( o:GetText() ) }
     
   DEFINE WINDOW oWnd TITLE "FWH Class TExplorerBar"
   
   oWnd:SetSize( 350, 600 )

   oExBar = TExplorerBar():New()

   oPanel1 = oExBar:AddPanel( "One" )
   oPanel1:lSpecial = .T.
   oPanel1:AddLink( "First item", bClick, "..\bitmaps\16x16\additem.bmp" )
   oPanel1:AddLink( "Second item", bClick, "..\bitmaps\16x16\copy.bmp" )
     
   oPanel2 = oExBar:AddPanel( "Two" )
   oPanel2:AddLink( "First item", bClick, "..\bitmaps\16x16\adddbf.bmp" )
   oPanel2:AddLink( "Second item", bClick, "..\bitmaps\16x16\delete0.bmp" )
   oPanel2:AddLink( "Third item", bClick, "..\bitmaps\16x16\envelope.bmp" )
   oPanel2:AddLink( "Fourth item", bClick, "fourthBMP" )

   oPanel3 = oExBar:AddPanel( "Three" )
   
   oPanel4 = oExBar:AddPanel( "Four" )
   oPanel4:AddLink( "First item", bClick, "firstBMP" )
   oPanel4:AddLink( "Second item", bClick, "secondBMP" )

   oWnd:oClient = oExBar

   ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//
 
regards, saludos

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

Re: Implementing FWH own Class TExplorerBar

Postby fraxzi » Wed Jun 02, 2010 7:02 am

Dear Mr. Antonio,

This is a great addition! I hope you can pin/unpin (hide to the left).. revealing the whole dialog/windows client area

Just 2 cents.. :D


Regards,
Frances
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Implementing FWH own Class TExplorerBar

Postby Antonio Linares » Wed Jun 02, 2010 9:03 am

Using a bitmap for each panel :-)

Image

Code: Select all  Expand view  RUN

#include "FiveWin.ch"

//----------------------------------------------------------------------------//

function Main()

   local oWnd, oExBar, oPanel1, oPanel2, oPanel3, oPanel4
   local bClick := { | o | MsgInfo( o:GetText() ) }
     
   DEFINE WINDOW oWnd TITLE "FWH Class TExplorerBar"
   
   oWnd:SetSize( 350, 600 )

   oExBar = TExplorerBar():New()

   oPanel1 = oExBar:AddPanel( "One", "..\bitmaps\32x32\people.bmp" )
   oPanel1:lSpecial = .T.
   oPanel1:AddLink( "First item", bClick, "..\bitmaps\16x16\additem.bmp" )
   oPanel1:AddLink( "Second item", bClick, "..\bitmaps\16x16\copy.bmp" )
     
   oPanel2 = oExBar:AddPanel( "Two", "..\bitmaps\32x32\case.bmp" )
   oPanel2:AddLink( "First item", bClick, "..\bitmaps\16x16\adddbf.bmp" )
   oPanel2:AddLink( "Second item", bClick, "..\bitmaps\16x16\delete0.bmp" )
   oPanel2:AddLink( "Third item", bClick, "..\bitmaps\16x16\envelope.bmp" )
   oPanel2:AddLink( "Fourth item", bClick, "fourthBMP" )

   oPanel3 = oExBar:AddPanel( "Three", "..\bitmaps\32x32\graphics.bmp" )
   
   oPanel4 = oExBar:AddPanel( "Four" )
   oPanel4:AddLink( "First item", bClick, "firstBMP" )
   oPanel4:AddLink( "Second item", bClick, "secondBMP" )

   oWnd:oClient = oExBar

   ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//
 
regards, saludos

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

Re: Implementing FWH own Class TExplorerBar

Postby MdaSolution » Wed Jun 02, 2010 12:48 pm

Antonio,
Could it run also to DIALOG system ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: Implementing FWH own Class TExplorerBar

Postby Antonio Linares » Sat Jun 19, 2010 8:34 am

Using the Class TExplorerBar on a dialog from resources :-)

explbar2.prg
Code: Select all  Expand view  RUN
#include "FiveWin.ch"

//----------------------------------------------------------------------------//

function Main()

   local oDlg, oExBar
     
   DEFINE DIALOG oDlg RESOURCE "Test"
   
   oExBar = TExplorerBar():Redefine( 100 )

   ACTIVATE DIALOG oDlg CENTERED ;
      ON INIT ExplBarInit( oExBar )

return nil

//----------------------------------------------------------------------------//

function ExplBarInit( oExBar )

   local oPanel1, oPanel2, oPanel3, oPanel4
   local bClick := { | o | MsgInfo( o:GetText() ) }

   oPanel1 = oExBar:AddPanel( "One", "people" )
   oPanel1:lSpecial = .T.
   oPanel1:AddLink( "First item", bClick, "additem" )
   oPanel1:AddLink( "Second item", bClick, "copy" )
     
   oPanel2 = oExBar:AddPanel( "Two", "case" )
   oPanel2:AddLink( "First item", bClick, "adddbf" )
   oPanel2:AddLink( "Second item", bClick, "delete" )
   oPanel2:AddLink( "Third item", bClick, "envelope" )
   oPanel2:AddLink( "Fourth item", bClick, "envelope" )

   oPanel3 = oExBar:AddPanel( "Three", "graphics" )
   oPanel3:AddLink( "First item", bClick, "adddbf" )
   
   oPanel4 = oExBar:AddPanel( "Four" )
   oPanel4:AddLink( "First item", bClick, "copy" )
   oPanel4:AddLink( "Second item", bClick, "additem" )

return nil

//----------------------------------------------------------------------------//
 


explbar2.rc
Code: Select all  Expand view  RUN
#include <windows.h>

#ifdef __FLAT__
   1 24 "WinXP/WindowsXP.Manifest"
#endif

#ifdef __64__
   1 24 "WinXP/WindowsXP.Manifest64"
#endif

Test DIALOG 17, 36, 400, 350
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "FWH Class TExplorerBar"
FONT 8, "MS Sans Serif"
{
 CONTROL "Test", 100, "TEXPLORERBAR", 0 | WS_CHILD | WS_VISIBLE, 0, 0, 150, 350
 DEFPUSHBUTTON "OK", 1, 341, 327, 50, 14
}

people   BITMAP "..\bitmaps\32x32\people.bmp"
case     BITMAP "..\bitmaps\32x32\case.bmp"
graphics BITMAP "..\bitmaps\32x32\graphics.bmp"
additem  BITMAP "..\bitmaps\16x16\additem.bmp"
copy     BITMAP "..\bitmaps\16x16\copy.bmp"
adddbf   BITMAP "..\bitmaps\16x16\adddbf.bmp"
delete   BITMAP "..\bitmaps\16x16\delete0.bmp"
envelope BITMAP "..\bitmaps\16x16\envelope.bmp"
 


Image
regards, saludos

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

Re: Implementing FWH own Class TExplorerBar

Postby RAMESHBABU » Sat Jun 19, 2010 12:19 pm

Mr.Antonio,

TExplorerBar would be another feather in the cap of FWH Controls

By the way even TOutLook2003 is also one of the best controls. I use this control very well in my applications.
There is a need of of Popup Menus added to the each button of this control, as shown in the picture below ?

Image

If this feature is added, then this would be a full OutLook2003 control.

Regards,

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: Implementing FWH own Class TExplorerBar

Postby Antonio Linares » Sat Jun 19, 2010 4:54 pm

Ramesh,

Should it be just one popup associated to the latest Outlook item ?

Or better an optional popup to each item ?
regards, saludos

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

Re: Implementing FWH own Class TExplorerBar

Postby Silvio » Sat Jun 19, 2010 10:34 pm

Nice Antonio,
Just an Idea ....
U can insert also an image on each Panel as "Watermake" at the right part of panel
Have U an idea how create it GLASS for windows seven style ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Implementing FWH own Class TExplorerBar

Postby RAMESHBABU » Sun Jun 20, 2010 12:50 am

Dear Mr.Antonio,

Thank you very much for your attention to my post.

As you feel that it would be very good, if popups are provided to each item.

Regards,

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: Implementing FWH own Class TExplorerBar

Postby Antonio Linares » Sun Jun 20, 2010 7:08 am

Enhancing FWH Class TOutLook2003 painting :-)

Image
regards, saludos

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

Re: Implementing FWH own Class TExplorerBar

Postby RAMESHBABU » Sun Jun 20, 2010 2:03 pm

Dear Mr.Antoni,

I am highly excited to have these changes in our next FWH Version.
Finally will it look like this ?

Image

And I feel that it is the high time for me to go for FWH Upgrade.

Regards,

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 63 guests