Article View: comp.os.ms-windows.programmer.tools
Article #681Use of ES_CENTER in OWL EditBox style
From: Stuart M Lichtenthal
Date: Fri, 01 Jan 1993 08:24
Date: Fri, 01 Jan 1993 08:24
24 lines
1190 bytes
1190 bytes
I'm trying to create an editbox with the following style: Edit1->Attr.Style|=ES_READONLY | ES_CENTER; where Edit1 is a pointer to type TEdit in the Borland OWL. The compiler is 3.1. I get the proper READONLY behavior, but the strings I put in the Editbox (upon allocation with new) are not centered. I also tried adding the ES_CENTER to some of the example programs like edittest.cpp and was unsuccessful. Am I compiling with some wrong flag or is this a known problem? The reason I want to use an Editbox instead of a TStatic object is because I wasn't pleased with the positioning of the centered text in my Static child window. Thanks for any help, Stuart Lichtenthal smlg1015@uxa.cso.uiuc.edu .
Technical Details
Message-ID:
<C06218.AF1@news.cso.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!smlg1015Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!smlg1015 From: smlg1015@uxa.cso.uiuc.edu (Stuart M Lichtenthal) Subject: Use of ES_CENTER in OWL EditBox style Message-ID: <C06218.AF1@news.cso.uiuc.edu> Sender: usenet@news.cso.uiuc.edu (Net Noise owner) Organization: University of Illinois at Urbana Date: Fri, 1 Jan 1993 08:24:43 GMT Lines: 24