Recent

Author Topic: [Solved] TDBLookupComboBox selected value  (Read 14948 times)

rvk

  • Hero Member
  • *****
  • Posts: 6944
Re: TDBLookupComboBox selected value
« Reply #15 on: March 06, 2018, 12:51:31 pm »
When i run this code in a Mac with Lazarus 1.8.2 i get the old value of the combobox when i change it.
In 1.8.0 i get the chosen value.
That is the problem i have. I posted this so anyone else can try and get the same result as i have. Then we know that it is a bug
That would mean it's a bug in the Mac widget-set so someone with access to it would need to test it to confirm.

What widgetset are you using? (this is important)

(you also still have 1.8.0 in your signature)

Edit: Maybe related: https://bugs.freepascal.org/view.php?id=32222

Also, in the mean time, until this is fixed, you could use the scroll-event (afterscrol) on TQ_Divisie.
« Last Edit: March 06, 2018, 12:54:28 pm by rvk »

madref

  • Hero Member
  • *****
  • Posts: 1116
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: TDBLookupComboBox selected value
« Reply #16 on: March 06, 2018, 02:40:19 pm »
I am using the standerd widget-set, so it's Carbon.
And th bug reported looks the same problem.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Tahoe 26.2
Lazarus 4.99 (rev main_4_99-3149-g7867f6275c) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

rvk

  • Hero Member
  • *****
  • Posts: 6944
Re: TDBLookupComboBox selected value
« Reply #17 on: March 06, 2018, 02:49:15 pm »
The bugreport I mentioned seems only for Cocoa.
And the fix only mentions adding text to the combobox.
So, for Carbon it's probably another problem.

madref

  • Hero Member
  • *****
  • Posts: 1116
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: TDBLookupComboBox selected value
« Reply #18 on: March 07, 2018, 04:14:28 pm »
I also get the same error if i use the newest trunk (1.9.0) version on my mac
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Tahoe 26.2
Lazarus 4.99 (rev main_4_99-3149-g7867f6275c) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

rvk

  • Hero Member
  • *****
  • Posts: 6944
Re: TDBLookupComboBox selected value
« Reply #19 on: March 07, 2018, 04:24:23 pm »
You can add a bugtracker entry with a small example so it will be looked at.

balazsszekely

  • Guest
Re: TDBLookupComboBox selected value
« Reply #20 on: March 07, 2018, 05:52:06 pm »
You can give it a try, but AFAIK carbon issues are no longer fixed, basically is a waste of time:
Quote
On June 28, 2017, Apple announced that 32-bit software for macOS, such as all Carbon applications, would no longer be supported “without compromise” on versions of macOS after macOS 10.13 High Sierra and only 64-bit software (which excludes Carbon) would run natively on versions of macOS that come after High Sierra.

madref

  • Hero Member
  • *****
  • Posts: 1116
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: TDBLookupComboBox selected value
« Reply #21 on: March 07, 2018, 10:04:02 pm »
While looking through this forum i found this thread with the same problem with a simple solution.
http://forum.lazarus.freepascal.org/index.php/topic,40318.0.html
Just by setting ReadOnly to False it worked.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Tahoe 26.2
Lazarus 4.99 (rev main_4_99-3149-g7867f6275c) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

 

TinyPortal © 2005-2018