Recent

Author Topic: (solved) LAMW: jSwitchButton causes app to stop working  (Read 262 times)

Dio Affriza

  • Jr. Member
  • **
  • Posts: 87
(solved) LAMW: jSwitchButton causes app to stop working
« on: November 13, 2019, 11:06:57 am »
I just use jSwitchButton.IsChecked(), and the app just crashed and stop working, the weird thing is I can use jSwitchButton.SetChecked().
« Last Edit: November 16, 2019, 04:38:11 am by Dio Affriza »

Dio Affriza

  • Jr. Member
  • **
  • Posts: 87
Re: LAMW: jSwitchButton causes app to stop working
« Reply #1 on: November 13, 2019, 11:24:27 am »
Solved, I just create my own function.
Code: Pascal  [Select]
  1. function jSwitchButton.Switched: boolean;
  2. begin
  3.   if FSwitchState = tsOn then
  4.     Result := True
  5.   else
  6.     Result := False;
  7. end;
  8.  

TR3E

  • Jr. Member
  • **
  • Posts: 59
    • TR3E Software
Re: LAMW: jSwitchButton causes app to stop working
« Reply #2 on: November 14, 2019, 09:01:21 am »
Fixed "jSwitchButton.java"

Dio Affriza

  • Jr. Member
  • **
  • Posts: 87
Re: LAMW: jSwitchButton causes app to stop working
« Reply #3 on: November 14, 2019, 08:12:04 pm »
Thankyou, finally someone replying. :)

Just created 3 topics, hundred reads, no reply, and I feel nobody cares.  :( I even made a suggestion to LAMW, and nobody gives an opinion.
« Last Edit: November 14, 2019, 08:24:40 pm by Dio Affriza »

TR3E

  • Jr. Member
  • **
  • Posts: 59
    • TR3E Software
Re: LAMW: jSwitchButton causes app to stop working
« Reply #4 on: November 15, 2019, 07:59:08 am »
I understand you, the same thing happened to me several times. In the end I had to solve the problems myself.

Dio Affriza

  • Jr. Member
  • **
  • Posts: 87
Re: (solved) LAMW: jSwitchButton causes app to stop working
« Reply #5 on: November 16, 2019, 04:45:37 am »
I understand you, the same thing happened to me several times. In the end I had to solve the problems myself.
Yeah, I remember this topic https://forum.lazarus.freepascal.org/index.php/topic,46573.0.html, I just created my own LAMW repository with a silly approach, like trying to add try-except on every LAMW component event. Hahaha...