Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
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
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 9
  • Joined: 10 November 2008 07:55 PM

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: 17 October 2009 07:28 PM

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

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 04:56 AM

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

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

Thanks,

HATTORI00



Replies: 0




   
  Settings Choose Theme color: