- Jun 6, 2020
- 11,559
- 4,422
I am trying to draw some tabs that actually look like tabs.
When I use a series of Panels (setting border) I can make a nice looking tab strip. Not being sure that was a proper way to do this I tried to draw a tab using a canvas and it doesn't draw the way I want.
The Tabs (events, entries, accounting, stats) are done with a series of overlaying panels.
The one below it (in Magenta & Blue) was drawn using DrawRectRounded and DrawLine.
I do not understand why I cannot get the rounded edges to look as nice as the ones drawn with using panels and SetBorder
Attaching the test program if someone want to try.
NOTE: Using same value for SetBorder and DrawRectRounded
B4X:
While writing this I was playing with the code at the same time and seem to have it working.
I modified the DrawTab
Spoiler
...
When I use a series of Panels (setting border) I can make a nice looking tab strip. Not being sure that was a proper way to do this I tried to draw a tab using a canvas and it doesn't draw the way I want.
The Tabs (events, entries, accounting, stats) are done with a series of overlaying panels.
The one below it (in Magenta & Blue) was drawn using DrawRectRounded and DrawLine.
I do not understand why I cannot get the rounded edges to look as nice as the ones drawn with using panels and SetBorder
Attaching the test program if someone want to try.
NOTE: Using same value for SetBorder and DrawRectRounded
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن تصاویر باید ثبت نام کنید
While writing this I was playing with the code at the same time and seem to have it working.
برای دیدن تصاویر باید ثبت نام کنید
I modified the DrawTab
Spoiler
...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید