Recent

Author Topic: LAMW: creating new components  (Read 4244 times)

dseligo

  • Sr. Member
  • ****
  • Posts: 451
LAMW: creating new components
« on: November 27, 2021, 01:03:42 pm »
When you create new component in LAMW it is named by adding number to class name, e.g. jButton1 for jButton, jTextView1 for jTextView.

This is different behaviour from LCL, where 'T' letter is dropped (e.g. name is Button1 for TButton).

Is there a reason why is so? Could that be changed (so jButton would be named Button1, jTextView would be named TextView1)?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2053
Re: LAMW: creating new components
« Reply #1 on: November 27, 2021, 04:08:50 pm »

Quote
Is there a reason why is so?

No.

Quote
Could that be changed...

I will try...

Thank you!

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

Leledumbo

  • Hero Member
  • *****
  • Posts: 8402
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LAMW: creating new components
« Reply #2 on: December 07, 2021, 06:04:35 am »
I will try...
Ain't that gonna break compatibility?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2053
Re: LAMW: creating new components
« Reply #3 on: December 07, 2021, 06:11:48 am »
Quote
Ain't that gonna break compatibility?

No. We will try  change only the variable name generated by IDE when a component is dropped on form...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2053
Re: LAMW: creating new components
« Reply #4 on: December 14, 2021, 05:01:50 am »
Done for visual components !!!

Thanks to @A.S!

« Last Edit: December 14, 2021, 07:17:21 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

dseligo

  • Sr. Member
  • ****
  • Posts: 451
Re: LAMW: creating new components
« Reply #5 on: December 14, 2021, 09:39:42 am »
Great, thank you

jmpessoa

  • Hero Member
  • *****
  • Posts: 2053
Re: LAMW: creating new components
« Reply #6 on: December 16, 2021, 09:48:01 pm »
Done for no-visual components, too !!!

Thanks to @A.S!  (again...)
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018