[bug report] bidle method


    Jul 25 2007 | 2:50 am
    Hi C74,
    I am pretty sure that the bidle method declared on page 213-214 of the
    SDK as:
    void myobject_bidle (t_myobject *x, Point pt, short modifiers, short
    active);
    passes bogus 'modifiers' and 'active' arguments.
    Please confirm it.
    Thank you.
    - Luigi
    ------------------------------------------------------------
    THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
    ------------------------------------------------------------
    Luggage? GPS? Comic books?
    Check out fitting gifts for grads at Yahoo! Search

    • Jul 25 2007 | 6:44 am
      Confirmed. That appears to be a documentation error.
      jb
      Am 25.07.2007 um 04:50 schrieb Luigi Castelli:
      > Please confirm it.
    • Jul 25 2007 | 7:31 am
      Ok,
      thank you Jeremy.
      If it's a documentation error here is my feature request:
      it would be cool to have the bidle method pass at least the 'modifiers'
      argument. I see that being useful in a lot of situations, such as
      changing the cursor icon according to the modifier keys pressed, as the
      mouse rolls over an area of the object.
      - Luigi
      --- Jeremy Bernstein wrote:
      > Confirmed. That appears to be a documentation error.
      >
      > jb
      >
      > Am 25.07.2007 um 04:50 schrieb Luigi Castelli:
      >
      > > Please confirm it.
      >
      >
      ------------------------------------------------------------
      THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
      ------------------------------------------------------------
      Pinpoint customers who are looking for what you sell.
    • Jul 25 2007 | 8:31 am
      Here's how we get that info in jit.pwindow, creating a bitfield based
      on QuickDraw modifier key masks. You could of course interpret the
      info however you want.
      jb
      short makemodifiers(void);
      short makemodifiers(void)
      {
      #ifdef MAC_VERSION
      KeyMap k;
      long modkey;
      short modifiers=0;
      GetKeys(k);
      #ifdef C74_LITTLE_ENDIAN
      modkey = k[1].bigEndianValue;
      modkey = CFSwapInt32BigToHost(modkey);
      #else
      modkey = k[1];
      #endif
      if (modkey&0x8000) modifiers |= cmdKey;
      if (modkey&1) modifiers |= shiftKey;
      if (modkey&2) modifiers |= alphaLock;
      if (modkey&4) modifiers |= optionKey;
      if (modkey&8) modifiers |= controlKey;
      return modifiers;
      #endif
      #ifdef WIN_VERSION
      short modifiers=0;
      if (GetKeyState(VK_CONTROL)&0x8000) modifiers |= cmdKey;
      if (GetKeyState(VK_SHIFT)&0x8000) modifiers |= shiftKey;
      if (GetKeyState(VK_CAPITAL)&0x0001) modifiers |= alphaLock;
      if (GetKeyState(VK_MENU)&0x8000) modifiers |= optionKey;
      if (GetKeyState(VK_RBUTTON)&0x8000) modifiers |= controlKey;
      return modifiers;
      #endif
      }
      Am 25.07.2007 um 09:31 schrieb Luigi Castelli:
      > Ok,
      >
      > thank you Jeremy.
      >
      > If it's a documentation error here is my feature request:
      >
      > it would be cool to have the bidle method pass at least the
      > 'modifiers'
      > argument. I see that being useful in a lot of situations, such as
      > changing the cursor icon according to the modifier keys pressed, as
      > the
      > mouse rolls over an area of the object.
      >
      > - Luigi
      >
      >
      >
      >
      > --- Jeremy Bernstein wrote:
      >
      >> Confirmed. That appears to be a documentation error.
      >>
      >> jb
      >>
      >> Am 25.07.2007 um 04:50 schrieb Luigi Castelli:
      >>
      >>> Please confirm it.
      >>
      >>
      >
      >
      >
      > ------------------------------------------------------------
      > THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT
      > AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY
      > UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS
      > PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE
      > SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF
      > THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
      > ------------------------------------------------------------
      >
      >
      >
      >
      > ______________
      > Pinpoint customers who are looking for what you sell.
    • Jul 25 2007 | 8:43 am
      Very cool!
      Thank you.
      - Luigi
      --- Jeremy Bernstein wrote:
      > Here's how we get that info in jit.pwindow, creating a bitfield based
      >
      > on QuickDraw modifier key masks. You could of course interpret the
      > info however you want.
      >
      > jb
      >
      > short makemodifiers(void);
      > short makemodifiers(void)
      > {
      > #ifdef MAC_VERSION
      > KeyMap k;
      > long modkey;
      > short modifiers=0;
      >
      > GetKeys(k);
      > #ifdef C74_LITTLE_ENDIAN
      > modkey = k[1].bigEndianValue;
      > modkey = CFSwapInt32BigToHost(modkey);
      > #else
      > modkey = k[1];
      > #endif
      >
      > if (modkey&0x8000) modifiers |= cmdKey;
      > if (modkey&1) modifiers |= shiftKey;
      > if (modkey&2) modifiers |= alphaLock;
      > if (modkey&4) modifiers |= optionKey;
      > if (modkey&8) modifiers |= controlKey;
      >
      > return modifiers;
      > #endif
      > #ifdef WIN_VERSION
      > short modifiers=0;
      >
      > if (GetKeyState(VK_CONTROL)&0x8000) modifiers |= cmdKey;
      > if (GetKeyState(VK_SHIFT)&0x8000) modifiers |= shiftKey;
      > if (GetKeyState(VK_CAPITAL)&0x0001) modifiers |= alphaLock;
      > if (GetKeyState(VK_MENU)&0x8000) modifiers |= optionKey;
      > if (GetKeyState(VK_RBUTTON)&0x8000) modifiers |= controlKey;
      >
      > return modifiers;
      > #endif
      > }
      >
      > Am 25.07.2007 um 09:31 schrieb Luigi Castelli:
      >
      > > Ok,
      > >
      > > thank you Jeremy.
      > >
      > > If it's a documentation error here is my feature request:
      > >
      > > it would be cool to have the bidle method pass at least the
      > > 'modifiers'
      > > argument. I see that being useful in a lot of situations, such as
      > > changing the cursor icon according to the modifier keys pressed, as
      >
      > > the
      > > mouse rolls over an area of the object.
      > >
      > > - Luigi
      > >
      > >
      > >
      > >
      > > --- Jeremy Bernstein wrote:
      > >
      > >> Confirmed. That appears to be a documentation error.
      > >>
      > >> jb
      > >>
      > >> Am 25.07.2007 um 04:50 schrieb Luigi Castelli:
      > >>
      > >>> Please confirm it.
      > >>
      > >>
      > >
      > >
      > >
      > > ------------------------------------------------------------
      > > THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT
      > > AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY
      > > UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS
      > > PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE
      > > SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF
      >
      > > THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
      > > ------------------------------------------------------------
      > >
      > >
      > >
      > >
      > >
      >
      >
      > > ______________
      > > Pinpoint customers who are looking for what you sell.
      > > http://searchmarketing.yahoo.com/
      >
      >
      ------------------------------------------------------------
      THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
      ------------------------------------------------------------
      Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.