I am considering to develop my next app in B4J. Before this can happen I need to do some research on extending the core functionality.
Hurdle 1: [SOLVED] with [LabeledTextField] sample
With C++Builder I could create new objects and extend the functionality similar to Custom views in B4X.
I combined an EditText and a Label to form a new LabeledEditText. This component (class) also included all business logic from lookup to validation etc. Main reason is development speed and compact final application. Any change of the new component is reflected throughout after a recompile. Additional properties set the type, editor mask etc etc.
Question: is it possible to create a new Custom View based on more than one 'master' view? I could not find any samples on the forum. Is this possible?
Hurdle 2:
I created a generic full data aware Dialog with [Undo] [Save] [Close] etc buttons as well as all standard functionality. To create an edit/add/delete dialog for something like a stock item only requires me to drop the LabeledEditText(s) etc and add less than 20 lines of code to do unique validation.
Question: [SOLVED] Can I create a new CLASS with the basic form (buttons and core functionality) Maybe the question must be: How do I use 'LoadLayout"
Question: Where do I change the default form size in the WYSIWYG preview? I can change the abstract designer in 'Variants' but the WYSIWYG stay at 600 x 600.
Adie
Hurdle 1: [SOLVED] with [LabeledTextField] sample
With C++Builder I could create new objects and extend the functionality similar to Custom views in B4X.
I combined an EditText and a Label to form a new LabeledEditText. This component (class) also included all business logic from lookup to validation etc. Main reason is development speed and compact final application. Any change of the new component is reflected throughout after a recompile. Additional properties set the type, editor mask etc etc.
Question: is it possible to create a new Custom View based on more than one 'master' view? I could not find any samples on the forum. Is this possible?
Hurdle 2:
I created a generic full data aware Dialog with [Undo] [Save] [Close] etc buttons as well as all standard functionality. To create an edit/add/delete dialog for something like a stock item only requires me to drop the LabeledEditText(s) etc and add less than 20 lines of code to do unique validation.
Question: [SOLVED] Can I create a new CLASS with the basic form (buttons and core functionality) Maybe the question must be: How do I use 'LoadLayout"
Question: Where do I change the default form size in the WYSIWYG preview? I can change the abstract designer in 'Variants' but the WYSIWYG stay at 600 x 600.
Adie
Last edited: