home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / tools / 1843 < prev    next >
Encoding:
Text File  |  1993-01-01  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!smlg1015
  3. From: smlg1015@uxa.cso.uiuc.edu (Stuart M Lichtenthal)
  4. Subject: Use of ES_CENTER in OWL EditBox style
  5. Message-ID: <C06218.AF1@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Fri, 1 Jan 1993 08:24:43 GMT
  9. Lines: 24
  10.  
  11. I'm trying to create an editbox with the following style:
  12.  
  13. Edit1->Attr.Style|=ES_READONLY | ES_CENTER;
  14.  
  15.  
  16. where Edit1 is a pointer to type TEdit in the Borland OWL.
  17. The compiler is 3.1.  I get the proper READONLY behavior, but
  18. the strings I put in the Editbox (upon allocation with new)
  19. are not centered.  I also tried adding the ES_CENTER to some
  20. of the example programs like edittest.cpp and was unsuccessful. 
  21.  
  22.  
  23. Am I compiling with some wrong flag or is this a known problem?
  24.  
  25. The reason I want to use an Editbox instead of a TStatic object
  26. is because I wasn't pleased with the positioning of the centered
  27. text in my Static child window.
  28.  
  29. Thanks for any help,
  30.  
  31. Stuart Lichtenthal smlg1015@uxa.cso.uiuc.edu
  32. .
  33.  
  34.   
  35.