Recent

Author Topic: DBLookupComboBox - The cursor is not displayed  (Read 1505 times)

gii

  • Jr. Member
  • **
  • Posts: 53
DBLookupComboBox - The cursor is not displayed
« on: January 20, 2019, 01:31:04 am »
I have a LookupComboBox configured as follows:

ArrowKeysTraverseList = True
AutoComplete = False
AutoDropDown = True
Style = csDropDown

If I have the list hidden, and enter any text in the field, when the list is displayed(AutoDropDown), the cursor becomes invisible.

If I click the arrow, and type anything, everything works as expected.

Is this a bug in the component, or is it an expected behavior? Or maybe I have configured some property in the wrong way?

Another thing I noticed, was that the displayed list does not inherit the same color used by the component.

I'm using:
Windows 7 64bits.
Lazarus 2.0.0 RC3 64bits.
« Last Edit: January 20, 2019, 01:32:52 am by gii »

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: DBLookupComboBox - The cursor is not displayed
« Reply #1 on: January 20, 2019, 03:49:12 am »
Have you checked whether a standard TComBox behaves the same way?

I've not tested (yet) but it may be a widgetset or theming artifact.

About this:
Quote
Another thing I noticed, was that the displayed list does not inherit the same color used by the component.

it's almost definetely a theming artifact. It can be changed but I don't remember ATM how, sorry.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

gii

  • Jr. Member
  • **
  • Posts: 53
Re: DBLookupComboBox - The cursor is not displayed
« Reply #2 on: January 20, 2019, 04:04:52 am »
Yes, it is possible to reproduce the two "problems" reported in the ComboBox.

The first problem is very unpleasant. The mouse becomes invisible the entire form.

The second is aesthetically ugly. : D

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: DBLookupComboBox - The cursor is not displayed
« Reply #3 on: January 20, 2019, 04:49:54 am »
The first problem is very unpleasant. The mouse becomes invisible the entire form.

You meant the mouse pointer, then, not the cursor? That is a bug or very close to it.

Quote
The second is aesthetically ugly. : D

Yeah, it must be :) I kind of remember having seen something similar in this forum not much time ago; do a search for "lookup" and you'll probably find it.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

gii

  • Jr. Member
  • **
  • Posts: 53
Re: DBLookupComboBox - The cursor is not displayed
« Reply #4 on: January 20, 2019, 05:00:41 am »
Quote
You meant the mouse pointer, then, not the cursor? That is a bug or very close to it.

The mouse is invisible throughout the form. It only appears again when the list is closed.

Quote
Yeah, it must be :) I kind of remember having seen something similar in this forum not much time ago; do a search for "lookup" and you'll probably find it.


I'll search, thank you very much.
« Last Edit: January 20, 2019, 05:03:53 am by gii »

 

TinyPortal © 2005-2018