AGB  ·  Datenschutz  ·  Impressum  







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

Focus weitergeben

Ein Thema von LoL · begonnen am 4. Aug 2004 · letzter Beitrag vom 21. Aug 2004
Antwort Antwort
LoL
(Gast)

n/a Beiträge
 
#1

Focus weitergeben

  Alt 4. Aug 2004, 12:21
hallo zusammen

ich habe in meinem programm meherer edit felder. den focus gebe ich folgendermaßen weiter:
PostMessage( Handle, WM_NextDlgCtl, 0, 0 ); {Win32 API} ich habe außer den editfelder auch noch ein paar andere buttons. diese haben die eigenschaft "tabstop=false". trotzdem erhalten sie einen focus. woran kann das liegen?
  Mit Zitat antworten Zitat
Blutiger Anfänger
(Gast)

n/a Beiträge
 
#2

Re: Focus weitergeben

  Alt 21. Aug 2004, 23:57
Zitat:
WS_TABSTOP
Specifies a control that can receive the keyboard focus when the user presses the TAB key. Pressing the TAB key changes the keyboard focus to the next control with the WS_TABSTOP style.
You can turn this style on and off to change dialog box navigation. To change this style after a window has been created, use SetWindowLong.
Zitat:
The WM_NEXTDLGCTL message is sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box.

Syntax

WM_NEXTDLGCTL

WPARAM wParam
LPARAM lParam;

Parameters

wParam
If lParam is TRUE, this parameter identifies the control that receives the focus. If lParam is FALSE, this parameter indicates whether the next or previous control with the WS_TABSTOP style receives the focus. If wParam is zero, the next control receives the focus; otherwise, the previous control with the WS_TABSTOP style receives the focus.
lParam
The low-order word indicates how the system uses wParam. If the low-order word is TRUE, wParam is a handle associated with the control that receives the focus; otherwise, wParam is a flag that indicates whether the next or previous control with the WS_TABSTOP style receives the focus.
Entsprechend dürfte der Stil nicht korrekt gesetzt sein, da die Win32-API das korrekt handelt. Ich weiß nicht inwieweit die Eigenschaft von Delphi und API zusammenhängen (ein Zusammenhang ist zu vermuten) aber bei meinen Tests funktioniert es. Versuch mal explizites Setzen des obigen Stils.
  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 18:09 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