Kendall Russell
|
Re: Scrollbar width not changing - PtMultiText and Pt_ARG_SCROLLBAR_Y_WIDTH
|
Kendall Russell
08/25/2011 5:02 PM
post88380
|
Re: Scrollbar width not changing - PtMultiText and Pt_ARG_SCROLLBAR_Y_WIDTH
Thank you for the quick response, however that solution is not working for me.
I set a breakpoint and debugged the code to make sure the realized callback is actually being called and that the code
is processed, but the width of the scrollbar still does not change. (I set it to 25)
> This is a bug. Here is a workaround:
>
> Attach a 'realized' callback to your multitext and link it to this callback:
>
> int
> mtext_realize_cb( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *
> cbinfo )
> {
> PtSetResource( widget, Pt_ARG_SCROLLBAR_Y_WIDTH, 22, 0 );
> return Pt_CONTINUE;
> }
>
> I set it to 22, you will put your number(s).
|
|
|