Lazarus

Programming => Operating Systems => Android => Topic started by: Dio Affriza on July 09, 2019, 04:50:10 am

Title: LAMW Weird behavior
Post by: Dio Affriza 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 :-[
Title: Re: LAMW Weird behavior
Post by: A.S. 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?
Title: Re: LAMW Weird behavior
Post by: jmpessoa 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?
Title: Re: LAMW Weird behavior
Post by: Dio Affriza 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.
Title: Re: LAMW Weird behavior
Post by: Dio Affriza 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.
Title: Re: LAMW Weird behavior
Post by: jmpessoa 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....
Title: Re: LAMW Weird behavior
Post by: Dio Affriza 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
Title: Re: LAMW Weird behavior
Post by: jmpessoa on July 12, 2019, 05:48:10 am

Ok.

But,

Quote
We have a "design time" issue ..... not a "run time" issue....
Title: Re: LAMW Weird behavior
Post by: Dio Affriza 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