2011 Software releases
Learn about the 2011 versions of some of Autodesk’s Digital Entertainment Creation tools.
  • 1/2
You are here:Forum Home / Autodesk® MotionBuilder® / Open Reality / How to assign bitmap to FBButton
  RSS 2.0 ATOM  

How to assign bitmap to FBButton
Rate this thread
 
35651
 
Subscribe to this thread
avatar
  • Total Posts: 8
  • Joined: 2008-11-11 00:55:29

Hi,
Is somebody knew how to assign bitmap texture to FBButton(kFBBitmap2States)?
Or is it possible to use texture for layout?

Thanks,
HATTORI00



Replies: 0
avatar
  • Avalon
  • Posted: 18 October 2009 02:28 AM
  • Location: Uppsala, Sweden
  • Total Posts: 49
  • Joined: 2006-08-22 06:48:04

Hi!
Here’s a little snippet, hope it helps.

//Icons
FBString lMyIcon "MyIcon.jpg";

//Buttons
mButtons[0].Caption "My Icon";
mButtons[0].Style kFBBitmapButton;

mButtons[0].SetImageFileNames(lMyIcon)
mButtons[0]
.Width 41;
mButtons[0].Height 41;

Cheers,
Av



Choose a job you love, and you will never have to work a day in your life.

Replies: 0
avatar
  • Total Posts: 8
  • Joined: 2008-11-11 00:55:29

Hi,
Thank you for your replies Avalon.
But I can not figure out how to use “SetImageFileNames”..
it doesn’t work at my place…

Should I have to add it to FBButton class?
if so, would you lead me how to do it?

Thanks,
HATTORI00



Replies: 0
avatar
  • qhliao
  • Posted: 20 October 2009 11:56 AM
  • Total Posts: 31
  • Joined: 2008-05-28 03:48:37

Which version of MB you are using?

FBButton::SetImageFileNames is only available after MB2009.

HATTORI00 18 October 2009 10:47 AM

But I can not figure out how to use “SetImageFileNames”..
it doesn’t work at my place…

Should I have to add it to FBButton class?
if so, would you lead me how to do it?



Replies: 0
avatar
  • Total Posts: 8
  • Joined: 2008-11-11 00:55:29

Hi,
That’s why I couldn’t found one...I’m using 7.5ex2b.

Thanks,

HATTORI00



Replies: 0




   
  Settings Choose Theme color: