Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Combobox Darstellungsproblem (https://www.delphipraxis.net/156700-combobox-darstellungsproblem.html)

haentschman 11. Dez 2010 18:16

Combobox Darstellungsproblem
 
Hallo an alle...

Man nehme eine Combobox, Standard, Einstellung csDropDownList

folgendes Problem:
- beim Scrollen mit dem Mausrad in der aufgeklappten Box springt die Auswahl manchmal unkontrolliert hin und her.
- beim sehr schnellen Scrollen tritt der Effekt eher auf als beim langsamen Scrollen. Ist aber auch da nicht ausgeschlossen.
- der Effekt betrifft sämtliche Comboboxen im Projekt.

:( ein Kunde hat sich schon "beschwert" und ich habe keinen Ansatz.

Bitte um Ideen...

PS: kann das jemand überhaupt nachvollziehen ? D2007

Bummi 11. Dez 2010 20:02

AW: Combobox Darstellungsproblem
 
ich kann es nicht nachvollziehen, hier D2010, wenn Du das Scrollen per Wheel direkt abhängen wollen solltest:
Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TComboBox=Class(StdCtrls.TComboBox)
    procedure CMMouseWheel(var Message: TCMMouseWheel); message CM_MOUSEWHEEL;
  End;
  TForm1 = class(TForm)
    ComboBox1: TComboBox;
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation
uses Math;
{$R *.dfm}

{ TComboBox }

procedure TComboBox.CMMouseWheel(var Message: TCMMouseWheel);
begin
 abort;
end;

end.

haentschman 11. Dez 2010 20:05

AW: Combobox Darstellungsproblem
 
Danke...

leider soll die Wheelfunktion erhalten bleiben. Gehört ja auch zur Standardfunktion einer Combobox.

Hinweis nachträglich: Die betroffenen Systeme sind XP 32bit


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:37 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz