FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Next FWH 8.02 Tabs
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Next FWH 8.02 Tabs
Posted: Tue Jan 22, 2008 09:02 PM

Antonio,

>This class uses Bitmaps, so you have to provide different bitmaps

Just to clarify, when you refer to bitmaps you are referring to bitmaps for the background gradient color, not to bitmap icons on the tabs, correct?

Can these tabs display bitmap icons also?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Tue Jan 22, 2008 10:16 PM

James,

The background is a bitmap and the tabs themselves are bitmaps too.

> Can these tabs display bitmap icons also?

Yes, we can also paint small bitmaps on top of the tabs :-)
We are going to provide a sample asap

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Wed Jan 23, 2008 09:57 AM
Using bitmaps on the tabs:



regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Next FWH 8.02 Tabs
Posted: Wed Jan 23, 2008 10:02 AM

Antonio,

Great work.

Can we see the code for the sample (not the class, just the code for the sample used to create the screenshot)?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Wed Jan 23, 2008 10:07 AM
James,
function Main()

   local oTabs1, oTabs2

   DEFINE WINDOW oWnd TITLE "Testing FiveWin Tabs" ;
      COLOR CLR_WHITE, CLR_BLUE

   @ 8, 0 TABS oTabs1 PROMPTS "&One", "&Two", "T&hree", "&Four" OF oWnd ;
      BITMAPS "people.bmp", "open2.bmp", "print.bmp", "zoom2.bmp" ;
      ACTION oWnd:Say( 5, 5, oTabs1:nOption )

   oWnd:oTop = oTabs1

   @ 8, 0 TABS oTabs2 PROMPTS "&One", "&Two", "T&hree", "&Four" OF oWnd ;
      BITMAPS "people.bmp", "open2.bmp", "print.bmp", "zoom2.bmp" ;
      ACTION oWnd:Say( 7, 5, oTabs2:nOption )

   oWnd:oBottom = oTabs2

   ACTIVATE WINDOW oWnd

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Next FWH 8.02 Tabs
Posted: Wed Jan 23, 2008 10:17 AM

Antonio,

Thanks. It looks real easy. Nice!

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Wed Jan 23, 2008 10:42 AM

The text in the top tabs has been moved down one pixel, so it looks better now

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Wed Jan 23, 2008 10:47 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Thu Jan 24, 2008 09:51 AM
Almost finished:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Next FWH 8.02 Tabs
Posted: Thu Jan 24, 2008 11:24 AM

Antonio,

And in the other controls the 2007 definition of colors must also be made through bitmaps?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Thu Jan 24, 2008 11:50 AM

Vilian,

In Class TMsgBar yes, it also uses a bitmap

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Fri Jan 25, 2008 09:31 AM
Finished:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Next FWH 8.02 Tabs
Posted: Fri Jan 25, 2008 10:46 AM
Antonio Linares wrote:Finished:

Great! :-)
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
Next FWH 8.02 Tabs
Posted: Fri Jan 25, 2008 12:51 PM
Antonio Linares wrote:James,
function Main()

   local oTabs1, oTabs2

   DEFINE WINDOW oWnd TITLE "Testing FiveWin Tabs" ;
      COLOR CLR_WHITE, CLR_BLUE

   @ 8, 0 TABS oTabs1 PROMPTS "&One", "&Two", "T&hree", "&Four" OF oWnd ;
      BITMAPS "people.bmp", "open2.bmp", "print.bmp", "zoom2.bmp" ;
      ACTION oWnd:Say( 5, 5, oTabs1:nOption )

   oWnd:oTop = oTabs1

   @ 8, 0 TABS oTabs2 PROMPTS "&One", "&Two", "T&hree", "&Four" OF oWnd ;
      BITMAPS "people.bmp", "open2.bmp", "print.bmp", "zoom2.bmp" ;
      ACTION oWnd:Say( 7, 5, oTabs2:nOption )

   oWnd:oBottom = oTabs2

   ACTIVATE WINDOW oWnd

return nil


Antonio,

Cómo lo ves el crear unas cláusulas TOP, BOTTOM, LEFT, RIGHT?

Saludos
Carlos G.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Next FWH 8.02 Tabs
Posted: Fri Jan 25, 2008 01:40 PM

Carlos,

It is already implemented:

oTabs:nOrientation = OR_TOP | OR_BOTTOM | OR_LEFT | OR_RIGHT

We could set it from the CH command

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion