Next FWH 8.02 Tabs

Postby James Bott » Tue Jan 22, 2008 9: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

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

Postby Antonio Linares » Wed Jan 23, 2008 9:57 am

Using bitmaps on the tabs:

Image

Image
regards, saludos

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

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

Postby Antonio Linares » Wed Jan 23, 2008 10:07 am

James,
Code: Select all  Expand view  RUN
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
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Wed Jan 23, 2008 10:17 am

Antonio,

Thanks. It looks real easy. Nice!

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

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

Postby Antonio Linares » Wed Jan 23, 2008 10:47 am

regards, saludos

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

Postby Antonio Linares » Thu Jan 24, 2008 9:51 am

Almost finished:

Image
regards, saludos

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

Postby vilian » 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
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Thu Jan 24, 2008 11:50 am

Vilian,

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

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

Postby Antonio Linares » Fri Jan 25, 2008 9:31 am

Finished:

Image
regards, saludos

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

Postby Patrick Mast » Fri Jan 25, 2008 10:46 am

Antonio Linares wrote:Finished:

Great! ;-)
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby FiveWiDi » Fri Jan 25, 2008 12:51 pm

Antonio Linares wrote:James,
Code: Select all  Expand view  RUN
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.
FiveWiDi
 
Posts: 1190
Joined: Mon Oct 10, 2005 2:38 pm

Postby Antonio Linares » Fri Jan 25, 2008 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests