Semen Matusovskiy Well-Known Member Licensed User Jun 5, 2019 #1 Hi, guys -- Is it possible to draw the same shadow as in UIView ? I need this for customview. The object, which I want to shadow, takes a part of panel only. Last edited: Jun 5, 2019
Hi, guys -- Is it possible to draw the same shadow as in UIView ? I need this for customview. The object, which I want to shadow, takes a part of panel only.
Star-Dust Expert Licensed User Longtime User Jun 5, 2019 #2 “If You Can Dream It, You Can Do It”. Walt Disney Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2019 #3 You can draw the shadow yourself. It should be similar to how you draw the "real" view. Upvote 0
Semen Matusovskiy Well-Known Member Licensed User Jun 5, 2019 #4 Erel -- To draw with offset is not a problem. But, unlike MS-DOS, a shadow looks like complex combination of light/dark pixels. Meanwhile I see a possibility to use solid color only. Upvote 0
Erel -- To draw with offset is not a problem. But, unlike MS-DOS, a shadow looks like complex combination of light/dark pixels. Meanwhile I see a possibility to use solid color only.
Semen Matusovskiy Well-Known Member Licensed User Jun 6, 2019 #5 Walt Disney was right. Surprise: GetBase.SetShadow works fine in CustomView. Each "object", created by canvas.DrawRectRounded, canvas.DrawCircle etc. has a shadow (exactly this I wanted). Meanwhile base panel is unchanged. Upvote 0
Walt Disney was right. Surprise: GetBase.SetShadow works fine in CustomView. Each "object", created by canvas.DrawRectRounded, canvas.DrawCircle etc. has a shadow (exactly this I wanted). Meanwhile base panel is unchanged.
Star-Dust Expert Licensed User Longtime User Jun 6, 2019 #6 not for nothing that Disney has existed for 96 years Upvote 0