Recent

Author Topic: LAMW Weird behavior  (Read 1581 times)

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
LAMW Weird behavior
« on: July 09, 2019, 04:50:10 am »
1. I have a problem with TJSONPropStorage, I always accidentally dropped it into my Android module and I didn't noticed it sometimes because I'm using List Component Palette with Sparta Form Designer. After that my App always crashing, then I noticed "why there's a LCL package in my LAMW project?", I removed it, still my App crashing again, so I looking again in my unit uses clause and I found JSONPropStorage, I removed it. Everything back to normal, but still, I made same mistakes sometimes.   :-\

The question: how to disable JSONPropStorage, TMainMenu, and TPopupMenu components, so they cannot be dragged into my AndroidModule?   :D

2. jTextView.Text property when I fill it with empty text it always back into same as the component name when I reopen my project.  %)

Because of that I need to write this code into every JNI_Prompt rather than I reemptied manually every opening project  :o:

Code: Pascal  [Select][+][-]
  1.   edJumlah.Text := '1';
  2.   edHarga.Text := '';
  3.   edDiskon.Text := '';
  4.   edEntriBarang.Text := '';
  5.   edFinalTotal.Text := '';
  6.   edDiskonFinal.Text := '';
  7.   edBayar.Text := '';
  8.   edKembali.Text := '';
  9.  

Thank you :-[
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

A.S.

  • Jr. Member
  • **
  • Posts: 76
Re: LAMW Weird behavior
« Reply #1 on: July 10, 2019, 10:50:54 pm »
2) I noticed a lot of strange checks (Laz_And_controls.pas etc.) like
  if FText <> '' then <jComponent>_setText(...)
Why <jComponent>_setText() should only be invoked if FText is not an empty string?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW Weird behavior
« Reply #2 on: July 10, 2019, 11:03:08 pm »
Quote
Because of that I need to write this code into every JNI_Prompt rather than I reemptied manually every opening project....

A "design time" issue?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: LAMW Weird behavior
« Reply #3 on: July 12, 2019, 04:57:17 am »
Quote
Because of that I need to write this code into every JNI_Prompt rather than I reemptied manually every opening project....

A "design time" issue?
yeah... jTextView.text property always reset the same as the jTextView.Name property after I reopen my project.
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: LAMW Weird behavior
« Reply #4 on: July 12, 2019, 04:59:57 am »
2) I noticed a lot of strange checks (Laz_And_controls.pas etc.) like
  if FText <> '' then <jComponent>_setText(...)
Why <jComponent>_setText() should only be invoked if FText is not an empty string?
Thanks for the clue, I try modify it. I think that's the cultprit.
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW Weird behavior
« Reply #5 on: July 12, 2019, 05:21:48 am »
Quote
I think that's the cultprit...

No. that is not!

We have a "design time" issue ..... not a "run time" issue....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: LAMW Weird behavior
« Reply #6 on: July 12, 2019, 05:36:39 am »
Quote
I think that's the cultprit...

No. that is not!

We have a "design time" issue ..... not a "run time" issue....
Sorry, I've made a mistake. The component is jTextEdit, not the jTextView  :-[
Ah, the naming is confusing  :D
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW Weird behavior
« Reply #7 on: July 12, 2019, 05:48:10 am »

Ok.

But,

Quote
We have a "design time" issue ..... not a "run time" issue....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: LAMW Weird behavior
« Reply #8 on: August 05, 2019, 11:17:08 am »

Ok.

But,

Quote
We have a "design time" issue ..... not a "run time" issue....
Any updates for these design issues?  :D
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

 

TinyPortal © 2005-2018