Multiples rollout, one paramblock ?

Multiples rollout, one paramblock ?

Anonymous
Not applicable
252 Views
1 Reply
Message 1 of 2

Multiples rollout, one paramblock ?

Anonymous
Not applicable
Hi all,

I'm currently having an issue when using different ParamBlockDesc to add rollouts to my modifier, only the last declared ParamBlockDesc will fill its values into the dialog. For example

static ParamBlockDesc2 basic_param_blck
(
0, _T("Basics"), 0, GetModifierTestDesc(), P_AUTO_CONSTRUCT + P_AUTO_UI, SIMPMOD_PBLOCKREF,
IDD_BASICS, IDS_BASICS, 0, 0, NULL,

... params definitions....

end
);

static ParamBlockDesc2 mesh_param_blck
(
0, _T("Mesh"), 0, GetModifierTestDesc(), P_AUTO_CONSTRUCT + P_AUTO_UI, SIMPMOD_PBLOCKREF,
IDD_MESH, IDS_PHYSYCAL_MESH, 0, 0, NULL,

... params definitions....

end
);

Both dialogs will appear but only mesh_param_blck parameters will be filled. If I comment mesh_param_blck, basic_param_blck will correctly be filled.

Could the problem be because i'm specifying the same ClassDesc2 for each ?

Do I have to merge them into a single ParamBlockDesc to have it working correctly ? I tried to do that but how do you declare 2 dialogs in the same ParamBlockDesc ?

Thanks !
0 Likes
253 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
0 Likes