This post is aimed at those who may be new to programming concepts as well as b4a.
There are a lot of posts on the forum about wrapping java libraries for use with B4a, but that's not the only use for wrapping.
It is possible to wrap existing B4a/B4j objects to provide additional or specific functionality that you may want reuse throughout an app or all of your apps to create a design standard perhaps.
As an example, in B4j, agrahams message box library provides a function whereby assigning a DialogType, selects an icon for the message box. I thought this is quite cool, so I wrapped the standard B4a message box to provide this functionality.
The attached example shows how, it also shows how to pre-define a message box so you can re-use a particular style of message box without having to set it up every time.
It is written as a class, you can of course compile it to a library so it's available without taking up a module in the IDE.
The demo has no external library dependencies.
If you want to use the images contained in the demo, add the files to the Files tab of your project.
There are a lot of posts on the forum about wrapping java libraries for use with B4a, but that's not the only use for wrapping.
It is possible to wrap existing B4a/B4j objects to provide additional or specific functionality that you may want reuse throughout an app or all of your apps to create a design standard perhaps.
As an example, in B4j, agrahams message box library provides a function whereby assigning a DialogType, selects an icon for the message box. I thought this is quite cool, so I wrapped the standard B4a message box to provide this functionality.
The attached example shows how, it also shows how to pre-define a message box so you can re-use a particular style of message box without having to set it up every time.
It is written as a class, you can of course compile it to a library so it's available without taking up a module in the IDE.
The demo has no external library dependencies.
If you want to use the images contained in the demo, add the files to the Files tab of your project.
Attachments
Last edited: