Recent

Author Topic: SOLVED -- TRxDBLookupCombo focus problem  (Read 5357 times)

esvignolo

  • Full Member
  • ***
  • Posts: 149
  • Using FPC in Windows, Linux, Macos
SOLVED -- TRxDBLookupCombo focus problem
« on: November 17, 2017, 05:59:15 am »
Hi everyone, I'm having a problem with the focus of the tRxDbLookupCombobox this only happens in windows. Attached image of the error, as well as the example application to replicate the problem. The RX version is the latest available in the SVN.
When the mainform is stayontop the popup stay behind.

Thanks!
« Last Edit: November 19, 2017, 12:13:41 am by esvignolo »

lainz

  • Hero Member
  • *****
  • Posts: 3273
    • Lainz
Re: TRxDBLookupCombo focus problem
« Reply #1 on: November 18, 2017, 09:40:32 pm »
Adding

Code: Pascal  [Select]
  1. FormStyle := fsStayOnTop;

In the file

Code: Pascal  [Select]
  1. rxpopupunit

In the constructor

Code: Pascal  [Select]
  1. constructor TPopUpForm.CreatePopUp(AOwner: TComponent;
  2.   APopUpFormOptions:TPopUpFormOptions; AFieldList:string; BtnWidtn:integer);

Solves the problem, but for this case only as we discussed, so is not a real solution for a real world application.

esvignolo

  • Full Member
  • ***
  • Posts: 149
  • Using FPC in Windows, Linux, Macos
Re: TRxDBLookupCombo focus problem
« Reply #2 on: November 19, 2017, 12:13:21 am »
Thanks Lainz!! It works! I dont known how tell to this components to add this line.

lainz

  • Hero Member
  • *****
  • Posts: 3273
    • Lainz
Re: TRxDBLookupCombo focus problem
« Reply #3 on: November 19, 2017, 12:16:41 am »
Thanks Lainz!! It works! I dont known how tell to this components to add this line.

Maybe in the Online Package Manager thread they know how to contact the devs.

wp

  • Hero Member
  • *****
  • Posts: 6314
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #4 on: November 19, 2017, 11:58:05 pm »
The maintainer of rx lib is alexs75. If he does not respond to this post you should contact him by PM.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

alexs75

  • Full Member
  • ***
  • Posts: 104
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #5 on: November 20, 2017, 09:39:39 am »
on Windows (win7) and Linux (Gnome3 & KDE) (tested on fedora 24, 25, 26) work normal.
whats you OS? whats you desktop environment?

lainz

  • Hero Member
  • *****
  • Posts: 3273
    • Lainz
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #6 on: November 22, 2017, 02:17:39 pm »
on Windows (win7) and Linux (Gnome3 & KDE) (tested on fedora 24, 25, 26) work normal.
whats you OS? whats you desktop environment?

Hi, I tested it on Windows 10, the version of the library is the one downloaded by the Online Package Manager.

Tested in both Lazarus 1.8 RC4 and Trunk-Trunk.

alexs75

  • Full Member
  • ***
  • Posts: 104
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #7 on: November 28, 2017, 01:51:09 pm »
i'm test lockup in Windows10 - work normal without fsStayOnTop

lainz

  • Hero Member
  • *****
  • Posts: 3273
    • Lainz
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #8 on: November 30, 2017, 10:47:43 pm »
i'm test lockup in Windows10 - work normal without fsStayOnTop

Maybe we have a different Lazarus version or package version?

alexs75

  • Full Member
  • ***
  • Posts: 104
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #9 on: December 01, 2017, 09:05:41 am »
Lazarus 1.9.0 r56568M FPC 3.1.1
tested on Windows10, Fedora26, Wine, Windows7

lainz

  • Hero Member
  • *****
  • Posts: 3273
    • Lainz
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #10 on: December 01, 2017, 12:28:05 pm »
Tested on Windows 7 Lazarus 1.8RC5.

Sure we're testing the same library version?

I'm using the one downloaded with the Online Package Manager

rxnew 2.9.5.201
rxtools 0.2.0.4

And of course the test project of the first post.

alexs75

  • Full Member
  • ***
  • Posts: 104
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #11 on: December 01, 2017, 02:56:33 pm »

lainz

  • Hero Member
  • *****
  • Posts: 3273
    • Lainz
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #12 on: December 01, 2017, 05:16:27 pm »
https://svn.code.sf.net/p/lazarus-ccr/svn/components/rx/trunk - current version

I don't use SVN anymore, but I can read from the LPK that's is Version Major="3" Minor="1" Release="1" Build="210"

So maybe the problem is as I guessed by an old release available in the Online Package Manager.

wp

  • Hero Member
  • *****
  • Posts: 6314
Re: SOLVED -- TRxDBLookupCombo focus problem
« Reply #13 on: December 01, 2017, 06:02:36 pm »
https://svn.code.sf.net/p/lazarus-ccr/svn/components/rx/trunk - current version
I don't use SVN anymore, but I can read from the LPK that's is Version Major="3" Minor="1" Release="1" Build="210"

So maybe the problem is as I guessed by an old release available in the Online Package Manager.
If I remember correctly OPM hosts versions releassed by the package maintainer. Therefore OPM is always a bit behind the development version. But I think a release version 2.9.5 and a development version 3.1.1 are more than a "bit" apart.

alexs75, you should update your OPM version. Or I'll see the same future for OPM that has happended with CCR.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10