Attribute Manager : Tab focus

On 16/04/2014 at 23:50, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R13 
Platform:   Windows  ;   
Language(s) :     C++  ;

Hello all,

i am trying to find a way to set the focus to a specific tab from the attribute manager, in case the user
selects my custom object.

As a better explanation: if the user selects my custom object , in the attribute manager i want to set the focus to a certain tab. No matter what tab was last selected, if the user clicks my object  in
the attribute manager, this tab has to be the active one.

Is there any way to control this from the code of my plugin?

Thank you!

On 17/04/2014 at 14:08, xxxxxxxx wrote:

Hi Pia, welcome to this forum.

The AM itself stores which Tab was last active. Activate a tab and select a different object. The
same tab will be open which you just had chosen for the other object. There is no way you can
change this behavior. It would also be extremely inconsistent with the behavior of the AM. If
a user selects a Tab, we assume he wants to stay at this tab until he selects another one. An
exception to this is when the last chosen tab is not available on another object. In this case, the
AM will display the tab that is open by default (which you can specify in the description resource
by adding DEFAULT 1; in the group).


On 13/05/2014 at 03:49, xxxxxxxx wrote:

Hi Niklas,

thanks for the info! at the time i posted the question it was done exactly as you described, by
using the DEFAULT 1.

Good, at least now i know that this can t be done :) Thanks again