Recent

Author Topic: Popup window color  (Read 1272 times)

440bx

  • Hero Member
  • *****
  • Posts: 4471
Popup window color
« on: June 30, 2024, 09:12:14 am »
The color of popup windows has been the subject of discussion before and it is still inconsistent in a recent trunk version (yesterday's).

Attached are two screenshots.

The first one shows the cursor hovering over the last parameter of the function and the popup is the nice yellow popup.

The second one shows the cursor hovering over the second to last parameter (just the one above that produced the nice yellow popup) and this time, the popup is grey.

It would be nice if the popups would all be yellow :)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10222
  • Debugger - SynEdit - and more
    • wiki
Re: Popup window color
« Reply #1 on: June 30, 2024, 11:55:42 am »
If it can be reproduced, add a bug report please.

If not, also add a bug report, and add the question, how you might collect info for reproduction (logs, traces, ...)

440bx

  • Hero Member
  • *****
  • Posts: 4471
Re: Popup window color
« Reply #2 on: June 30, 2024, 12:59:42 pm »
It's fully reproducible. 

I attached a project that has 100% reproducibility.  Expand the attached file in a new directory.  I named mine "PopupBug".  Extract the files in that directory.  Once the files are extracted, the following steps are required:

1. open winunits.lpi in the windows subdirectory and compile that project. no need to change any settings, just compile/build.

2. open _zydis.lpi in the Zydis subdirectory and compile that project.  no need to change any settings, just compile/build.

3. open  cds.lpi in the directory you created where you extracted the archive and compile/build it.  Before you can successfully run the program you need to set the "run-run parameters->command line parameters" to be the path to a 32bit executable.  Any 32 bit executable will do.  I left the value I use there as an example.

Once you've set the value, simply press F9 to run the program.  It will break automatically.  Once it has reached the break, you'll need to scroll up a bit to the instruction "ZydisDecoderDecodeFull", hover over zi_operands and you'll get the nice looking yellow popup.  after that hover over zi_decoded_instruction and you'll get the grey popup.

That's it.  (this project only runs in 64 bit because only the 64 bit zydis dll is included in the archive.)

Anything else I can do, just let me know.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10222
  • Debugger - SynEdit - and more
    • wiki
Re: Popup window color
« Reply #3 on: June 30, 2024, 01:12:01 pm »
Please put it on the bug tracker. I don't know if it will get attention here. (It may have mine, but I have no time to look into it)

440bx

  • Hero Member
  • *****
  • Posts: 4471
Re: Popup window color
« Reply #4 on: June 30, 2024, 01:17:50 pm »
Please put it on the bug tracker. I don't know if it will get attention here. (It may have mine, but I have no time to look into it)
I was on my way to doing that when I saw your reply here.  Going there now... :)

ETA:

Added to the bug tracker

Issue: 41008
Link: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41008
« Last Edit: June 30, 2024, 01:25:38 pm by 440bx »
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

cdbc

  • Hero Member
  • *****
  • Posts: 1496
    • http://www.cdbc.dk
Re: Popup window color
« Reply #5 on: June 30, 2024, 05:17:05 pm »
Hi
I've just seen this happen, the grey popup I mean...
Here it happens when the code in question cannot /see/ the declaration directly, but indirectly! ...1 unit removed / further away & not referenced in uses.
I made an alias to the type in the /closer/ unit and the problem went away.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

440bx

  • Hero Member
  • *****
  • Posts: 4471
Re: Popup window color
« Reply #6 on: June 30, 2024, 05:27:41 pm »
I made an alias to the type in the /closer/ unit and the problem went away.
Regards Benny
Hi Benny,

I don't know if you've looked at the example project I attached but, in that one, I believe the two parameters that yield different color popups are at the same "level".

Do you happen to have a solution to the problem that works in that project ?

Thank you.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

cdbc

  • Hero Member
  • *****
  • Posts: 1496
    • http://www.cdbc.dk
Re: Popup window color
« Reply #7 on: June 30, 2024, 08:21:23 pm »
Hi 440bx
Sorry can't, no winders here.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4507
  • I like bugs.
Re: Popup window color
« Reply #8 on: July 29, 2024, 02:31:40 pm »
Here it happens when the code in question cannot /see/ the declaration directly, but indirectly! ...1 unit removed / further away & not referenced in uses.
I made an alias to the type in the /closer/ unit and the problem went away.
Please see the bug tracker issue created by 440bx.
Could you possibly provide a simple project to reproduce the problem?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018