Announcement

Collapse
No announcement yet.

Label message documentation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Label message documentation

    Found this in the CONTROL ADD LABEL(PBWin 9.0):
    %BN_CLICKED
    Sent when the user clicks a mouse button, or activates the button with the hot-key (unless the button has been disabled).

    %STN_DBLCLK
    Sent when the user double-clicks on a label control (unless the control has been disabled).

    %BN_DISABLE
    Sent when a button is disabled.

    %STN_ENABLE
    Sent when a label control has been enabled.
    %BN_CLICKED should read %STN_CLICKED
    %BN_DISABLE should read %STN_DISABLE

    I believe this to be a typo, rather than a change in messaging from previous documentation(PBWin 8.xx)
    Will send in to support later today, pending arguments to the contrary.
    Rod
    I want not 'not', not Knot, not Knott, not Nott, not knot, not naught, not nought, but aught.

  • #2
    Are you comparing with 8.03 or earlier? Because in 8.04 Help it's the same as in your quote box.

    No opinion on whether it needs fixing till I look in PSDK.

    Cheers,
    Dale

    Comment


    • #3
      From 8.04 Help for CONTROL ADD LABEL, just above the messages:
      A label control will only send messages to a callback if the %SS_NOTIFY style is used.
      From PSDK:
      The STN_CLICKED notification message is sent when the user clicks a static control that has the SS_NOTIFY style.
      %STN_xxxx would seem to be the better choise.
      Dale

      Comment


      • #4
        The 8.xx printed manual is where I looked.
        Rod
        I want not 'not', not Knot, not Knott, not Nott, not knot, not naught, not nought, but aught.

        Comment


        • #5
          From Win32API.inc..
          Code:
           '%STN_CLICKED        = 0
           '%STN_DBLCLK         = 1
           '%STN_ENABLE         = 2
           '%STN_DISABLE        = 3
           
           '%BN_CLICKED         = 0
           '%BN_PAINT           = 1
           '%BN_HILITE          = 2
           '%BN_UNHILITE        = 3
           '%BN_DISABLE         = 4
           '%BN_DOUBLECLICKED   = 5
           '%BN_SETFOCUS        = 6
           '%BN_KILLFOCUS       = 7
           '%BN_DBLCLK          = %BN_DOUBLECLICKED
          %BN_CLICKED and %STN_CLICKED have the same value but they are the only ones. It looks like this is another error in the Docs that has been around since PBWin804 (or earier) but is only coming to light with the intense scrutiny that the release of PBWin9 has stirred up

          Only the %BN_xxx equates are built-in to the PBWin9 compiler
          Rgds, Dave

          Comment

          Working...
          X