• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Suppling title ui element for an edit text control?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suppling title ui element for an edit text control?


  • Subject: Suppling title ui element for an edit text control?
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Sun, 22 Jan 2006 21:58:25 +0100

Dear accessibility developers,

I'm currently trying to set kAXTitleUIElementAttribute for a Carbon Unicode Edit Text control that gets created from a nib and have problems to get the title ui element working.

I have noticed that the static text gets kAXTitleUIElementAttribute with <array of 0> instead of <array of 1> items. When I try to do the same on a button, it works.

Is there something I have missed?

The code I use is:

  titleElement = AXUIElementCreateWithHIObjectAndIdentifier( staticText, 0 );

  HIObjectSetAuxiliaryAccessibilityAttribute(
    editText,
    0,
    kAXTitleUIElementAttribute,
    titleElement
  );

  thisElement  = AXUIElementCreateWithHIObjectAndIdentifier( editText, 0 );

  array = CFArrayCreate(
             kCFAllocatorDefault,
             (const void**)&titleElement,
             1,
             &kCFTypeArrayCallBacks
          );

  HIObjectSetAuxiliaryAccessibilityAttribute(
    staticText,
    0,
    kAXServesAsTitleForUIElementsAttribute,
    array
  );


Thanks,

  Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Suppling title ui element for an edit text control?
      • From: Eric Schlegel <email@hidden>
  • Prev by Date: FWD - Request for Review: FSG Keyboard Access Specifications
  • Next by Date: Re: Suppling title ui element for an edit text control?
  • Previous by thread: FWD - Request for Review: FSG Keyboard Access Specifications
  • Next by thread: Re: Suppling title ui element for an edit text control?
  • Index(es):
    • Date
    • Thread