changing how push Button looks
On 17/02/2015 at 12:44, xxxxxxxx wrote:
Cinema 4D Version: 13+
Platform: Windows ;
Language(s) : C++ ;
I'm adding a Button "DTYPE_BUTTON" in my plugin "MaterialData" using GetDDescription()
what I wanted is to change how this Button looks "controlling width and height" , only found "DESC_FITH" which is what I want for width, but what about height? any method to specify it in pixels?
On 17/02/2015 at 18:52, xxxxxxxx wrote:
a follow up question which may be related, how to limit maximum chars in a string field "DTYPE_STRING"
On 17/02/2015 at 19:40, xxxxxxxx wrote:
my experience with GetDDescription() is that if you want to control the size and positioning of anything, you're probably going to need to make your own custom gui. I've had to do this for some of my objects/elements that display in the AM. I've found GetDDescription() has very little control over sizes and positions etc.
With regards to the string character limit - maybe try polling/testing character count in the SetDParameter() function?
My meagre 2-cents!
On 17/02/2015 at 19:55, xxxxxxxx wrote:
As WP notes, most of the nuanced or specific control of the interface is out the hands of plugin devs. The basis for this is that the underlying system handles these specifics algorithmically based upon defaults and option criteria (sizes, positions, mins and maxs in some cases are more requests than requirements). Either a custom gui control or use a GeUserArea and do the graphical, functional, interface coding yourself within it to accomplish something 'unique'. You can basically do buttons as you like with bitmapbuttons and some finesse but other things will require more effort.
On 18/02/2015 at 04:48, xxxxxxxx wrote:
I was afraid of this "and expecting it too!!" , I guess I will handle all my GUI in a custom way, thanks for clarification guys.