Recent

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

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
(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 »
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: 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.  
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

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

ADiV

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

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
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 »
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

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

ADiV

  • Jr. Member
  • **
  • Posts: 90
    • ADiV 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.

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
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...
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