ButtonBar Non-2007 style Bitmap and Text Alignment

ButtonBar Non-2007 style Bitmap and Text Alignment

Postby nageswaragunupudi » Tue Mar 16, 2010 6:16 am

When button-bar is used without 2007 style, the bitmaps and prompts are getting mixed up.
Sample Source Code:
Code: Select all  Expand view
#include 'fivewin.ch'

function Main()

   local ownd, oBar

   DEFINE WINDOW oWnd
   DEFINE BUTTONBAR oBar OF oWnd SIZE 64,64 //2007
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level1.bmp' PROMPT 'Level1' TOP
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level2.bmp' PROMPT 'Level2' TOP
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level3.bmp' PROMPT 'Level3' TOP
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level4.bmp' PROMPT 'Level4' TOP

   ACTIVATE WINDOW oWnd

return nil
 

Result
Image

Is there anything I am missing? Or is there a problem to be fixed in BtnBmp.Prg ?
Regards

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

Re: ButtonBar Non-2007 style Bitmap and Text Alignment

Postby anserkk » Tue Mar 16, 2010 8:12 am

Dear MR.Rao,

Here is a trick. I am sure that this is not a good solution, it is only a work around. :)

Image

Code: Select all  Expand view
#include 'fivewin.ch'

function Main()

   local ownd, oBar

   DEFINE WINDOW oWnd
   DEFINE BUTTONBAR oBar OF oWnd SIZE 64,64 //2007
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level1.bmp' PROMPT CRLF+'Level1' TOP
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level2.bmp' PROMPT CRLF+'Level2' TOP
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level3.bmp' PROMPT CRLF+'Level3' TOP
   DEFINE BUTTON OF oBar FILE '\fwh\bitmaps\level4.bmp' PROMPT CRLF+'Level4' TOP

   ACTIVATE WINDOW oWnd

return nil


Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: ButtonBar Non-2007 style Bitmap and Text Alignment

Postby nageswaragunupudi » Tue Mar 16, 2010 1:24 pm

:))
This was not the intention
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests