Feb. 5th, 2012

billroper: (Default)
Somebody Else's Dialog(TM) has been patched and dispatched back to QE for testing.

The absolute capper to the entertainment here was that the dialog wants to invoke a Save As dialog on the way out to let the user decide what file to save the modified contents to. If this were an actual dialog, that would be relatively simple.

However, this is actually a property sheet and there was relatively little that was simple about it. It turns out that the right place to try to patch in the call to the master Save As function is in the OnApply function for each of the property pages that make up the property sheet, because that:

  • will get called when you press the OK button (and Apply is not active for this property sheet)
  • allows you to return FALSE if the user cancels the Save As, which OnOK will not -- once you're there, you're on your way out of the property sheet
  • gets called for every page of the property sheet so that you see the Save As dialog multiple times -- Oops!

    Ok, that's easily fixed. First man in sets a boolean that says don't raise the Save As dialog again; add an OnSetActive override to each page to clear the boolean if/when you return to the property sheet.

    I begin to see why normal people don't handle a Save As dialog this way...
  • billroper: (Default)
    Having no rooting interest in either team, I turned on the Super Bowl tonight primarily to watch the commercials. (Actually, that's not quite true. Given a choice between rooting for the team from New York or rooting for the team that beat the Rams in the Super Bowl several years ago, I'm reduced to rooting for the team from New York.) And it turned out that a pretty good football game broke out.

    I was amused by the thought that anyone who made the proposition bet that the first score in the game would be a safety had probably just made a fair chunk of cash. If they'd managed to bet as well that it would happen on New England's first play from scrimmage, they would have done even better.

    I also don't think I've ever seen the defense lie down and allow the other team to score a touchdown before, nor do I think that I've ever seen the offensive player with the ball frantically trying to stop before crossing the goal line so that he scored butt first.

    And if anyone on the Patriots had managed to catch the ball in the last minute instead of dropping it, Brady might well have done to the Giants what he did to the Rams a few years back.

    But he didn't.

    Nyaah, nyaah! :)

    Profile

    billroper: (Default)
    billroper

    July 2025

    S M T W T F S
       1 2 3 4 5
    6789101112
    13141516171819
    20212223242526
    2728293031  

    Most Popular Tags

    Style Credit

    Expand Cut Tags

    No cut tags
    Page generated Jul. 6th, 2025 08:37 am
    Powered by Dreamwidth Studios