Professional Web Applications Themes

updating a window's caption in carbon - Mac Programming

Hi, I have a window that I'm updating and it updates fine with this call: err=SetWindowTitleWithCFString(window, CFSTR("Created socket.")); The problem is that it doesn't get updated until my event handler has finished. I'd like to use the caption as a status indicator and see the update when I change its value. I tried calling: QDFlushPortBuffer( GetWindowPort(window) ,NULL); after the call but that doesn't do it. Then I tried calling: err=InvalWindowRect (window, &rect); after the call and that doesn't do it. So I guess I'm completely stuck. Ideas?...

  1. #1

    Default updating a window's caption in carbon

    Hi,

    I have a window that I'm updating and it updates fine with this call:

    err=SetWindowTitleWithCFString(window,
    CFSTR("Created socket."));

    The problem is that it doesn't get updated until my event handler has
    finished. I'd like to use the caption as a status indicator and see the
    update when I change its value.

    I tried calling:
    QDFlushPortBuffer( GetWindowPort(window) ,NULL);

    after the call but that doesn't do it. Then I tried calling:

    err=InvalWindowRect (window, &rect);

    after the call and that doesn't do it. So I guess I'm completely stuck.

    Ideas?
    Frank Guest

  2. #2

    Default Re: updating a window's caption in carbon

    In article <ev1.net>,
    com (Frank) wrote:
     

    You shouldn't be blocking in event processing for a long time. That'll
    cause your app to put up the spinning beachball, and that'll cause your
    users to force-quit it.

    Instead, take the extensive processing that you're doing and run it in a
    timer, processing a bit of data each time through and updating the
    window title if necessary. You'll still handle data quickly, and your
    application will remain responsive.

    -Eric

    --
    Eric Albert edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

Similar Threads

  1. Caption for cfchart
    By sbarbe in forum Macromedia ColdFusion
    Replies: 3
    Last Post: June 9th, 01:25 PM
  2. Updating parent window from popup
    By mkobus in forum ASP.NET General
    Replies: 6
    Last Post: July 25th, 10:15 AM
  3. image caption
    By Abdalla Fawaz Elhawary in forum ASP Components
    Replies: 2
    Last Post: July 21st, 09:34 PM
  4. Carbon Window Help
    By Peter Ammon in forum Mac Programming
    Replies: 0
    Last Post: July 11th, 05:21 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