|
|
|
Re: Change Position of ContextButtonPad [message #1798969 is a reply to message #1798967] |
Wed, 28 November 2018 02:32   |
Eclipse User |
|
|
|
Hi Michael,
I solved the Issue by adjusting width and height of the ContextButtonPad.
int x = context.getPictogramElement().getGraphicsAlgorithm().getX();
int y = context.getPictogramElement().getGraphicsAlgorithm().getY();
data.getPadLocation().setRectangle(x + 5, y, 5, 120);
By reducing the width and increasing the heigth, the buttons seem to be forced into the vertical, which is good enough for me.
My initial fault was to not set x and y correctly, so the pad wouldn't display.
Here's the result:

Thanks for your help!
Best regards,
Felix
[Updated on: Wed, 28 November 2018 02:38] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04367 seconds