|
Hi,
Is somebody knew how to assign bitmap texture to FBButton(kFBBitmap2States)?
Or is it possible to use texture for layout?
Thanks,
HATTORI00
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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?
|
|
|
|
Hi,
That’s why I couldn’t found one...I’m using 7.5ex2b.
Thanks,
HATTORI00
|
|
|