Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

GetDDescription and multiple column elements

 Post Reply Post Reply
Author
Message
CMPXCHG8B View Drop Down
Member
Member


Joined: 2011 Dec 11
Online Status: Offline
Posts: 95
Post Options Post Options   Quote CMPXCHG8B Quote  Post ReplyReply Direct Link To This Post Topic: GetDDescription and multiple column elements
    Posted: 2018 Apr 20 at 1:08am

User Information:

Cinema 4D Version:   R17 
Platform:    Mac  ;  
Language(s):     C++  ;   

---------

Greetings to all.

I'm trying to build a plugin UI via GetDDescription(). Everything is working fine, except I've encountered an issue where I need to "stretch" a single element horizontally so it takes up more than one column in a multi-column group.

In a *.res file, I'd just use STATICTEXT { JOINENDSCALE; } to achieve what I want.

However, I can't seem to find an equivalent for this in the C++ API. There's DESC_NEWLINE, but this doesn't seem to do the same thing as JOINENDSCALE. It will take up a column, but then the widget before it won't stretch out horizontally.

How can I achieve the same effect as JOINENDSCALE in C++?

Cheers,
-CMPX
Back to Top
MohamedSakr View Drop Down
Member
Member
Avatar

Joined: 2012 Sep 17
Location: Egypt
Online Status: Offline
Posts: 577
Post Options Post Options   Quote MohamedSakr Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 20 at 6:59am
did you try to add a static text desc in C++?
cheers,
Mohamed Sakr
Back to Top
CMPXCHG8B View Drop Down
Member
Member


Joined: 2011 Dec 11
Online Status: Offline
Posts: 95
Post Options Post Options   Quote CMPXCHG8B Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 20 at 8:57am
Yeah, it just treats it like an empty space and the widget to the left remains unchanged.

-CMPX
Back to Top
MohamedSakr View Drop Down
Member
Member
Avatar

Joined: 2012 Sep 17
Location: Egypt
Online Status: Offline
Posts: 577
Post Options Post Options   Quote MohamedSakr Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 20 at 9:14am
not sure if this will work or not...

#define STATIC_TEXT_JOINT_END_SCALE 2403

and in your BaseContainer of the static text desc:

bc.SetBool(STATIC_TEXT_JOINT_END_SCALE , 1);


Edited by MohamedSakr - 2018 Apr 20 at 9:14am
cheers,
Mohamed Sakr
Back to Top
CMPXCHG8B View Drop Down
Member
Member


Joined: 2011 Dec 11
Online Status: Offline
Posts: 95
Post Options Post Options   Quote CMPXCHG8B Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 20 at 9:08pm
Hey, that works great. Dunno why this isn't in the SDK, but it does exactly what JOINENDSCALE does in the *.res files.

Thanks!

-CMPX
Back to Top
MaximeA View Drop Down
Forum Moderator
Forum Moderator

Forum Moderator

Joined: 2018 Jan 04
Location: France - Nantes
Online Status: Offline
Posts: 54
Post Options Post Options   Quote MaximeA Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 23 at 2:03am
Hi CMPX and Mohamed,

I confirm the use of 2403 is the way to go, and produce the exact same thing as JOINENDSCALE does in the res file.
I will check why this ID is not exposed, and if there are no relevant stopper, this ID will be added to the documentation.

Cheers,
Maxime

MAXON
SDK Specialist
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.