Buttons with Bitmaps

Discussions concerning programming of SOFTIMAGE©
Post Reply
jacobo
Posts: 41
Joined: 11 Jun 2009, 00:06

Buttons with Bitmaps

Post by jacobo » 27 Jun 2013, 18:49

Hi;

I was wondering of it is possible to create a PPG button with an Icon on them instead of text. The icon buttons that one can create using AddenumControl and siControlIconList function in a boolean manner, ie you can only click them once and they're only reset when you press another one in its group. I remember seeing a button with a bitmap on it instead of text once, but I might be mistaken. Is this above Js, VB or Py, like in the neighborhood of C++?

Cheers;

AJ

User avatar
csaez
Posts: 253
Joined: 09 Jul 2012, 15:31
Skype: csaezmargotta
Location: Sydney, Australia
Contact:

Re: Buttons with Bitmaps

Post by csaez » 27 Jun 2013, 19:21

Hi,
You can hack it by using a synoptic instead of a button and changing the synoptic filepath at runtime... work with the native gui is a pain! pyqt (or pyside) is a much better framework.

Cheers!

jacobo
Posts: 41
Joined: 11 Jun 2009, 00:06

Re: Buttons with Bitmaps

Post by jacobo » 27 Jun 2013, 19:33

Wow, that sounds neat. Could you give a small example, if you can? I'd really appreciate it.

Thanx for the reply;

AJ

jacobo
Posts: 41
Joined: 11 Jun 2009, 00:06

Re: Buttons with Bitmaps

Post by jacobo » 27 Jun 2013, 20:00

Ok, I got what you meant with the Synoptic. Tested a little, and yeah it's very much doable, thank you for the advice.

I'm also wondering (couldn't find any relevant info in the SDK docs) how it is possible to go ahead and change the Font size, boldness on regular PPG buttons. How can one control that through SetAttribute?

Thanx again.

Cheers;

AJ

User avatar
csaez
Posts: 253
Joined: 09 Jul 2012, 15:31
Skype: csaezmargotta
Location: Sydney, Australia
Contact:

Re: Buttons with Bitmaps

Post by csaez » 27 Jun 2013, 20:30

AFAIK, it's 'locked' to the softimage look&feel, you can't customize the style.

Cheers!

jacobo
Posts: 41
Joined: 11 Jun 2009, 00:06

Re: Buttons with Bitmaps

Post by jacobo » 27 Jun 2013, 20:59

csaez wrote:AFAIK, it's 'locked' to the softimage look&feel, you can't customize the style.

Cheers!
Ouch!! That sucks big time :( I agree with you on the point that GUI design and practicality is one of the most under-documented and neglected part of the SI SDK (compared to say, Maya)

Cheers;

AJ

El Burritoh
Posts: 151
Joined: 30 Nov 2010, 19:56
Location: Tennessee
Contact:

Re: Buttons with Bitmaps

Post by El Burritoh » 29 Aug 2013, 20:58

Are you able to use PyQt instead? Does this have to be done using the standard Softimage PPG?
-Tim Crowson
High Nerd, of the Order of Magnetic Nerds
Personal Website

User avatar
Daniel Brassard
Posts: 878
Joined: 18 Mar 2010, 23:38
Location: St. Thomas, Ontario
Contact:

Re: Buttons with Bitmaps

Post by Daniel Brassard » 29 Aug 2013, 21:06

$ifndef "Softimage"
set "Softimage" "true"
$endif

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests