D dreamworld Active Member Licensed User Longtime User Jun 16, 2013 #1 The Usercontrol in VB.net allows programmers to draw its appearance via Paint method. How to create such a view in B4A? I guess that I am supposed to create a new class module in the first step. But I have no idea of what to do in the next step? How to extend view? And how to add a paint method? I can't find any such samples.
The Usercontrol in VB.net allows programmers to draw its appearance via Paint method. How to create such a view in B4A? I guess that I am supposed to create a new class module in the first step. But I have no idea of what to do in the next step? How to extend view? And how to add a paint method? I can't find any such samples.
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2013 #2 See these search results: Basic4android Search: custom view Upvote 0
D dreamworld Active Member Licensed User Longtime User Jun 16, 2013 #3 I have looked for a long time before posting this thread for help. I know searching "custom view". But "Custom View with Designer Support" did not tell me how to draw a view. It shows me how to add a button to a custom view. I need to draw a view by my own codes. Upvote 0
I have looked for a long time before posting this thread for help. I know searching "custom view". But "Custom View with Designer Support" did not tell me how to draw a view. It shows me how to add a button to a custom view. I need to draw a view by my own codes.
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2013 #4 This tutorial explains how to create a class that can be added with the designer: Custom View with Designer Support You should use Canvas object if you want to manually draw the view. Here is one example: [Class] AnotherDatePicker - A simple "web style" date picker Upvote 0
This tutorial explains how to create a class that can be added with the designer: Custom View with Designer Support You should use Canvas object if you want to manually draw the view. Here is one example: [Class] AnotherDatePicker - A simple "web style" date picker
D dreamworld Active Member Licensed User Longtime User Jun 16, 2013 #5 Thanks, I will try it. Upvote 0