Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/03/2003 at 00:24, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.012 Platform: Windows ; Language(s) : C++ ;
--------- Hi everybody!
I created BitmapButtons in R7 with:
AddUserArea( GADGET_MYPICTURE, BFH_FIT, 0, 0 ); AttachImage( GADGET_MYPICTURE, "bitmap.bmp", 0, 0 );
Since there is no "AttachImage" in R8 i tried:
BaseContainer settings; BitmapButtonCustomGui *bmp_logo = NULL; settings.SetBool(BITMAPBUTTON_BORDER,TRUE); bmp_logo = (BitmapButtonCustomGui* ) AddCustomGui(GADGET_MYPICTURE, CUSTOMGUI_BITMAPBUTTON,String(),BFH_FIT,0,0,settings); if (bmp_logo) bmp_logo->SetImage("bitmap.bmp");
It works, but the buttons are 2D! No "Button-Down"-effect. Has anybody a solution?
Thanks Chris
On 13/03/2003 at 08:23, xxxxxxxx wrote:
pass TRUE to your settings container for the BITMAPBUTTON_BUTTON id settings.SetBool(BITMAPBUTTON_BUTTON,TRUE);
On 13/03/2003 at 23:02, xxxxxxxx wrote:
pass TRUE to your settings container for the > > > BITMAPBUTTON_BUTTON id > > > settings.SetBool(BITMAPBUTTON_BUTTON,TRUE); > > Thats what I also tried! No effect. TRUE/FALSE, no difference. > > BITMAPBUTTON_BORDER,BITMAPBUTTON_TOGGLE,BITMAPBUTTON_BUTTON same style. > > Where is the error? > > > > > >
On 14/03/2003 at 00:06, xxxxxxxx wrote:
Solution
BaseContainer settings; BitmapButtonCustomGui *bmp = NULL; settings.SetLong(DESC_CUSTOMGUI,CUSTOMGUI_BITMAPBUTTON); settings.SetBool(BITMAPBUTTON_BUTTON,TRUE); settings.SetLong(BITMAPBUTTON_BORDER,1); bmp = (BitmapButtonCustomGui* ) AddCustomGui(GADGET_SHOWALL,CUSTOMGUI_BITMAPBUTTON,String(),BFH_FIT,0,0,settings); if (bmp) bmp->SetImage("bitmap.bmp");
Thanks you, Samir!
Chris