Announcement

Collapse
No announcement yet.

Wanted: Colors for buttons

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

  • Wanted: Colors for buttons

    Hi, folks !

    Some days ago I received books from Amazon (recommended by Lance) and decided to make some too brave experiments (my API knowledge is near zero).
    I reconstructed Petzold + Rector code for creating own buttons.
    Because there are DDT in PB/DLL 6.0, my reconstruction was too deep.
    Code, it seems to me wooks, but I am afraid.
    Guys, somebody see mistakes in following code ?
    (code is moved to last message)

    [This message has been edited by Semen Matusovski (edited January 25, 2000).]

  • #2
    A quick glance over suggests the code is fine... certainly nothing stands out as potentially problematic.

    Only one insignificant point - the button that has just the %WS_TABSTOP style can have this style omitted and the code will continue to run identically.

    -------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Thanks, Lance.
      I continued (additional variant - with icon). I used Rector, Newcomer (4th ed) sample. Really nice book, thanks a lot for your advice.
      About %WS_TABSTOP - unlike "classic", for "owner button" it's necessary (I tested).
      A code was moved to "Source code" forum.

      [This message has been edited by Semen Matusovski (edited January 26, 2000).]

      Comment

      Working...
      X