Professional Web Applications Themes

HOWTO: DataBrowser control and keyboard selection. - Mac Programming

When I create a DataBrowser control (ListView), it does not support keyboard selection of items in the control. The up/down arrows do not work. It does not seem to matter what selection mode I use but normally I use kDataBrowserSelectOnlyOne. I have not found any options to enable keyboard support and I have clicked on the control and explicitly set focus to the control using SetKeyboardFocus(..., kControlDataBrowserPart); Nothing seems to work. I have looked at the kEventControlSetFocusPart event and the DataBrowser control is getting focus on part code kControlDataBrowserPart. My application is a Carbon application, using the Carbon event model ...

  1. #1

    Default HOWTO: DataBrowser control and keyboard selection.

    When I create a DataBrowser control (ListView), it does not support
    keyboard selection of items in the control. The up/down arrows do not
    work. It does not seem to matter what selection mode I use but normally
    I use kDataBrowserSelectOnlyOne. I have not found any options to enable
    keyboard support and I have clicked on the control and explicitly set
    focus to the control using SetKeyboardFocus(...,
    kControlDataBrowserPart); Nothing seems to work. I have looked at the
    kEventControlSetFocusPart event and the DataBrowser control is getting
    focus on part code kControlDataBrowserPart.

    My application is a Carbon application, using the Carbon event model and
    my window has a standard window handler installed.

    --
    Norman Black
    Stony Brook Software


    Norman Guest

  2. #2

    Default Re: HOWTO: DataBrowser control and keyboard selection.

    On Fri, 7 Nov 2003, Norman Black wrote:
     

    You are correct, this should happen automatically (apart from typeselect,
    which requires panther and you need to set a flag for columns that support
    it). Is you control properly embedded in your window (if it's in a tab
    control or anything like that it needs to be embedded in that) ?

    Fred

    Frederick Guest

  3. #3

    Default Re: HOWTO: DataBrowser control and keyboard selection.

    Thank for you reply.

    My DataBrowser is embedded in the root control of the window. The window
    is kDoentWindowClass. I have not installed any keyboard event
    handlers on the window itself since I do not need than and I just let
    the control(s) and the standard window handler do their thing.

    --
    Norman Black
    Stony Brook Software

    "Frederick Cheung" <DUH.ucam.org> wrote in message
    news:srcf.societies.cam.ac
    ..uk... [/ref]
    not [/ref]
    normally [/ref]
    enable [/ref]
    set [/ref]
    the [/ref]
    getting [/ref]
    and 
    >
    > You are correct, this should happen automatically (apart from[/ref]
    typeselect, 
    support 

    Norman Guest

Similar Threads

  1. Howto loop through table cells in a selection
    By Roger_Pearse in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 3
    Last Post: March 23rd, 10:42 PM
  2. Keyboard Control & MIAW
    By Ashwan Wadhwa in forum Macromedia Director Lingo
    Replies: 0
    Last Post: October 16th, 03:25 PM
  3. databrowser question
    By John in forum Mac Programming
    Replies: 1
    Last Post: October 13th, 08:33 AM
  4. Sprite control with the keyboard
    By adwatkin webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 2
    Last Post: August 1st, 07:46 AM
  5. DataBrowser problems
    By David Scrève in forum Mac Programming
    Replies: 1
    Last Post: July 18th, 04:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139