Announcement

Collapse
No announcement yet.

Problem with %ES_CENTER

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

  • Problem with %ES_CENTER

    Hello,

    I am having problem using the %ES_CENTER style on a textbox
    under Windows 95b, the text is always on the left. However
    the same code works just fine under 98 or NT40.

    Same EXE different OS, any ideas?

    Bruce

    ------------------
    Bruce Fech
    Excel Research & Development
    Lansing, Michigan U.S.A.
    517-323-2332
    [email protected]

  • #2
    Edit controls need to include the %ES_MULTILINE style before %ES_CENTER (or %ES_RIGHT) will work.

    From WIN32.HLP:
    There are three styles that cause Windows to align the text in an edit control. The ES_LEFT, ES_CENTER, and ES_RIGHT styles determine whether text is aligned on the left, center, or right, respectively. These styles apply only to multiline edit controls.

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

    Comment


    • #3
      Lance,

      That was it, Thanks.

      Bruce


      ------------------
      Bruce Fech
      Excel Research & Development
      Lansing, Michigan U.S.A.
      517-323-2332
      [email protected]

      Comment

      Working...
      X