QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
PtRect and roundness |
Ref. No. |
QNX.000009849 |
Category(ies) |
Development |
Issue |
When we add a PtRect widget and specify a roundness factor, the corners stay square. Is this a bug, because the roundness is working fine with buttons?
|
Solution |
Roundness is a "borded" attribute. So it affects the widget's border only. If you set the PtRects berder width and highlight it, it's border will be rounded. Note that if you make the border width 1, highlight the widget, and make the top and bottom border color the same, you will have a rect affected by the roundness.
There are TWO roundness resources:
Pt_ARG_HIGHLIGHT_ROUDNESS(inherited from PtBasic). It is normally used to round the corners of a widget's border. It does not affect what is drawn on the widget's canvas.
Pt_ARG_RECT_ROUNDNESS(defined by PtRect) which rounds the corners of the rectangle itself. |
|