SuperCollider Forum
May 18, 2013, 07:01:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The SuperCollider forum is currently experiencing a rash of spambot registrations. New user requests may not be approved quickly as a result -- and if your email address looks like spam, it might not be approved at all. We are working to improve the security of the registration process, and to provide alternate means to contact the administrators to get a new account. Thanks for your patience.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Buttons  (Read 2864 times)
0 Members and 1 Guest are viewing this topic.
mookid
Newbie
*

Karma: 0
Posts: 3


View Profile WWW
« on: March 22, 2006, 04:15:15 PM »

Is there a button class out there that can accept different fonts for the face?

I'm also looking for a button that will allow bitmaps to be use for the face states.
Logged
dewdrop_world
AdminGroup
Full Member
*

Karma: 9
Posts: 193



View Profile WWW
« Reply #1 on: March 23, 2006, 07:24:54 AM »

The regular SCButton class does it.

myButton = SCButton(layout or window, bounds).font_(Font("Verdana", 20));

As for bitmaps... you can probably hack it using SCMovieView, which can display still images also. You can add mouse and keyboard response hooks to make it clickable (I think, not sure of the level of support for mouseDownAction_() in SCMovieView).

hjh
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!