[Wish]Property and Project > Add New Module > View Module

fiaful

Member
Licensed User
Longtime User
Hi Erel...

In the next version of Basic4Android would be really nice to find the keyword "Property", for example:

Property Get Height as Int
...
End Property
Property Set Height (Value as Int)
...
End Property

or

Property Get Item (Index as Int) as String
...
End Property
Property Set Item (Index as Int, Value As String)
...
End Property

more generally:

Property Get <Property name> as <Property type>
End Property
Property Set <Property name> (<Parameter name> as <Property type>)
End Property


and

Property Get <Property name> (<Parameter name> as <Index or Key type>)
End Property
Property Set <Property name> (<Parameter name> as <Index or Key type>, <Parameter name> as <Property type>)
End Property


obviously with the possibility to also define only the getter (readonly) or setter (writeonly) ...

do not think it's too difficult to implement, and would make reading and especially writing classes more agile ... :)

Another thing I'd really like to find in the next release of Basic4Android is the ability to create a new View ...

maybe from the Menu: Project> Add New Module> View Module

could be a class that inherits from a view and extend the methods:

View_Globals (the equivalent of the current Class_Globals for classes)

Initialize (identical to the existing one)

Paint (C as Canvas) (a method to designing the interior of the component ... the Canvas parameter corresponds to the canvas of view)

but the most important thing would be to be able to add the new view to the parent directly, without creating workaround, how do you now (for example set the parent to initialize the class and then adding the pieces there)

the view so created should have obviously the AddView method to be able to add other components both inside it (Initialize? another method?), both from the outside, so as to make a container view ...

Also it would be nice to have a system that allows you to define and raise events integrated into writing code (as did the good old VB with the keywords Event and RaiseEvent) ... I made a shopping list too long? :)

this would open up a nice whole world of components development that would not hurt at all basic4android (in this way it would be more simple, clean and effective ... if we could have this with the possibility of define the properties ... would be the best! :) )

It would be nice to find all of this in the next release of Basic4Android ...

by the way ... when the next release? :)
 
Top