Professional Web Applications Themes

scroll bars don't redraw - Mac Programming

In article <cs.unm.edu>, Keith Wiley <unm.edu> wrote:   This is not an answer to your question, but you should not be calling Begin/EndUpdate for kEventWindowDrawContent. See comments for kEventWindowDrawContent in CarbonEvents.h hth meeroh -- If this message helped you, consider buying an item from my wish list: <http://web.meeroh.org/wishlist>...

  1. #1

    Default Re: scroll bars don't redraw

    In article <cs.unm.edu>,
    Keith Wiley <unm.edu> wrote:
     

    This is not an answer to your question, but you should not be calling
    Begin/EndUpdate for kEventWindowDrawContent. See comments for
    kEventWindowDrawContent in CarbonEvents.h

    hth

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  2. #2

    Default scroll bars don't redraw

    I really thought I understood clip regions and update regions inval
    regions, but this stuff just isn't working.

    I'm catching the following events for my window:

    kEventWindowDrawContent
    kEventWindowBoundsChanged

    For kEventWindowDrawContent, I call BeginUpdate and EndUpdate and in
    between I redraw everything by calling DrawControls on the window and then
    redrawing my window.

    For kEventWindowBoundsChanged, I simply recalc the rectangles for the
    scroll bars from the window's size and SetControlBounds. Just to be safe,
    I go ahead and call InvalWindowRect on the scroll bar rects at the same
    time, which by my understanding should trigger an update call with an
    update regions that includes the scroll bars.

    When I "grow" the window, the scroll bars don't redraw. And here's the
    srtangest thing. If I'm running the debugger and I stop when I'm
    recalcing the scroll bars, THEN the scroll bars do redraw. Geez.

    Any thoughts on this? Thanks.

    __________________________________________________ ______________________
    Keith Wiley unm.edu
    http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley

    "Yet mark his perfect self-contentment, and hence learn his lesson,
    that to be self-contented is to be vile and ignorant, and that to
    aspire is better than to be blindly and impotently happy."
    -- Edwin A. Abbott, Flatland
    __________________________________________________ ______________________
    Keith Guest

  3. #3

    Default Re: scroll bars don't redraw

    Followup. Forget the comment about the debugger. Even if I don't use the
    debugger, I can get the scroll bars to redraw simply by clicking anywhere
    else in the OS, such as selecting some other window in another app. Then
    the scroll bars suddenly appear.

    __________________________________________________ ______________________
    Keith Wiley unm.edu
    http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley

    "Yet mark his perfect self-contentment, and hence learn his lesson,
    that to be self-contented is to be vile and ignorant, and that to
    aspire is better than to be blindly and impotently happy."
    -- Edwin A. Abbott, Flatland
    __________________________________________________ ______________________
    Keith Guest

Similar Threads

  1. Custon Scroll bars
    By ChiefRocka00 in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 4th, 01:30 AM
  2. GETTING RID OF EXTRA SCROLL BARS IN IE?
    By breathingunderwater in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: October 12th, 07:50 PM
  3. Scroll bars on a datagrid
    By UJ in forum ASP.NET Data Grid Control
    Replies: 2
    Last Post: May 14th, 03:44 PM
  4. Scroll Bars Just Stop....
    By scotiegirl in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: April 1st, 05:27 PM
  5. scroll bars - kindly go away
    By artane webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 5
    Last Post: July 28th, 12:45 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