Next FWH 8.02 Tabs

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

Post by James Bott »

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

Post by Antonio Linares »

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

Post by Antonio Linares »

Using bitmaps on the tabs:

Image

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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

Post by Antonio Linares »

James,

Code: Select all

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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Antonio,

Thanks. It looks real easy. Nice!

James
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

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

Post by Antonio Linares »

regards, saludos

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

Post by Antonio Linares »

Almost finished:

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Post by vilian »

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

Post by Antonio Linares »

Vilian,

In Class TMsgBar yes, it also uses a bitmap
regards, saludos

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

Post by Antonio Linares »

Finished:

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post by Patrick Mast »

Antonio Linares wrote:Finished:
Great! ;-)
FiveWiDi
Posts: 910
Joined: Mon Oct 10, 2005 2:38 pm

Post by FiveWiDi »

Antonio Linares wrote:James,

Code: Select all

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

Post by Antonio Linares »

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
Post Reply