Recent

Author Topic: LAMW - Border, Border Radius and Rounded Corners for jEditText  (Read 968 times)

software_developer

  • New member
  • *
  • Posts: 8
LAMW - Border, Border Radius and Rounded Corners for jEditText
« on: October 29, 2020, 02:14:36 pm »
Is it possible to have rounded corners or border radius for the jEditText component?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Border, Border Radius and Rounded Corners for jEditText
« Reply #1 on: October 30, 2020, 04:59:18 am »

Ok.

I will try some implementation!

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Border, Border Radius and Rounded Corners for jEditText
« Reply #2 on: October 30, 2020, 07:15:53 am »

Done!!

You can try:

Code: Pascal  [Select][+][-]
  1. procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);
  2. begin
  3.  
  4.   //jEditText1.SetRoundBackgroundColor(colbrDarkOrange); //Optionals
  5.   //jEditText1.SetRoundBorderColor(colbrBlue);                  //Optionals
  6.   //jEditText1.SetRoundRadiusCorner(15);                        //Optionals
  7.   //jEditText1.SetRoundBorderWidth(6);                         //Optionals
  8.  
  9.   jEditText1.SetRoundCorner();
  10.  
  11. end;
  12.  

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

software_developer

  • New member
  • *
  • Posts: 8
Re: LAMW - Border, Border Radius and Rounded Corners for jEditText
« Reply #3 on: October 31, 2020, 07:38:57 am »
Hi jmpessoa,

Really amazing, thanks for including this feature!  :)

I was wondering whether there are any tutorials/video tutorials for creating components for android.

I would like to contribute to this project with the little knowledge I have in Pascal and Java.  :)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW - Border, Border Radius and Rounded Corners for jEditText
« Reply #4 on: October 31, 2020, 05:53:42 pm »

Quote
I was wondering whether there are any tutorials/video tutorials for creating components for android.

Go to Lazarus IDE: "Tools"  ---> "[LAMW] ......."   --->  "New jComponent...."   --->  [HELP]

the doc/tutorial is here:

https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_create_new_components.txt

In fact, LAMW has a code generator to help you create or improve a component!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018