Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi SetCapture (https://www.delphipraxis.net/15626-setcapture.html)

toms 1. Feb 2004 18:32


SetCapture
 
Hi,

Hat jemand eine Idee, warum SetCapture() im OnMouseDown
eines TToolButtons nicht funktioniert?
(Bei einem TButton, TLabel usw funktioniert's problemlos)

Assarbad 14. Feb 2004 22:09

Re: SetCapture
 
Keine Ahnung, ein TLabel ist kein echtes Fenster, ein TStatic hingegen schon. Der TToolbutton ist ja auch ein selbstgebasteltes Control von Delphi, damit könnte es zusammenhängen.

An deiner Stelle würde ich einfach mal eine Testreihe mit WM_CAPTURECHANGED und ReleaseCapture(), GetCapture() und SetCapture() aufbauen. Dann kannst du nachweisen, ob es am TToolButton liegt oder ein anderes Problem ist. Sagt GetLastError() was? Setze mal vorher SetLastError(ERROR_SUCCESS) ...


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:56 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