AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Popup Control Touch

Ein Thema von tomkupitz · begonnen am 11. Aug 2015
Antwort Antwort
tomkupitz

Registriert seit: 26. Jan 2011
323 Beiträge
 
Delphi 11 Alexandria
 
#1

Popup Control Touch

  Alt 11. Aug 2015, 12:17
Hallo,

Code:
procedure TPopupList.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams(Params);
 
  with Params do
  begin
    WndParent := GetDesktopWindow;
    Style := WS_CLIPSIBLINGS or WS_CHILD or WS_TABSTOP;
    ExStyle := WS_EX_TOPMOST or WS_EX_TOOLWINDOW;
    WindowClass.Style := CS_DBLCLKS or CS_SAVEBITS;

    if FBorderStyle = bsSingle then
      if NewStyleControls and Ctl3D then
      begin
        Style := Style and not WS_BORDER;
        ExStyle := ExStyle or WS_EX_DLGMODALFRAME;
      end
      else
        Style := Style or WS_BORDER;
  end;
end;
ich erstelle (siehe oben) ein Popup-Control. Auf dem Pc kann man leicht mit MouseLeave und MouseEnter kontrollieren, ob die Maus innerhalb oder ausserhalb ist. Ggf. kann das Control dann geschlossen werden. Nun soll dieses Control in einem Tablet-Pc (Touch) genutzt werden. Wie muss ich nun prüfen, ob neben das Control getoucht wurde, um es zu schließen?

Danke und beste Grüße
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:34 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