That should work. That's how they do it in the
PSetUIDemo\cppsrc\PSetUIDemoCPP.cpp

//Redraw the PPG to show the new combo items
ctx.PutAttribute(L"Refresh",true);

Maybe you need the L prefix?


On Wed, Nov 27, 2013 at 2:17 PM, Guillaume Laforge <
[email protected]> wrote:

> Hi,
>
> I've got a custom primitive with a "drop down list enumerator" defined in
> its DefineLayout callback.
> I need to rebuild the "UI Items array" before inspecting the custom
> primitive as it is dynamic.
> The only working way for now is by right clicking the PPG name and pick
> "Refresh".
>
> I added a button using this logic (in the PPGEvent) but it does nothing:
>
>       if ( buttonPressed.GetAsText() == "Refresh" )
>       {
>         in_ctxt.PutAttribute("Refresh", true);
>       }
>
> Is there a way to get the same behavior than the "Right click and Refresh"
> using the C++ SDK ?
>
> Thanks,
>
> Guillaume Laforge
>
>

Reply via email to