Announcement

Collapse
No announcement yet.

Laufzeitzugriff auf Action-Eigenschaften (wie?)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Laufzeitzugriff auf Action-Eigenschaften (wie?)

    Hallo,
    in meiner aktuellen Anwendung existieren diverse Actions als Resultat des Einsatzes von ActionManager, ActionToolbar und ActionMainMenuBar.

    Mein Problem ich möchte allen Actions zur Laufzeit einen Hint zuordnen. Mein Problem, ich weiß nicht wie ich auf die Actions "realtiv" zugreifen kann. In Pseudocode möchte ich gerne folgendes erreichen:

    for i:=0 to [ACTIONS].count-1 do begin
    [ACTIONS].hint:=[ACTIONS].caption;
    end;

    [ACTIONS] ist gesucht :-)

  • #2
    Hallo,

    <PRE>
    for i := 0 to ActionManager.ActionCount - 1 do
    if ActionManager.Actions[i] is TCustomAction then
    (ActionManager.Actions[i] as TCustomAction).Hint := (ActionManager.Actions[i] as TCustomAction).Caption;
    </PRE&gt

    Comment


    • #3
      Danke :-)

      Werde ich ausprobieren

      Comment

      Working...
      X