From: "Lars M." Date: 2003-01-21T01:02:15+09:00 Subject: Re: [FXText] Thanks so much! -Lars ----- Original Message ----- From: "Lyle Johnson" To: "Lars M." Sent: Monday, January 20, 2003 4:45 PM Subject: Re: [FXText] > Lars M. wrote: > > > How can I add a sunken border to the FXText widget? > > Since FXText is not derived from FXFrame you can't set the border > properties directly on an FXText widget. The solution is to instead put > the FXText inside some other subclass of FXFrame, e.g. > > textFrame = FXHorizontalFrame.new(frameParent, > FRAME_SUNKEN | FRAME_THICK | ...) > textWidget = FXText.new(textFrame, ...) > > You'll probably also want to set the interior padding on the frame to zero: > > textFrame.padLeft = 0 > textFrame.padRight = 0 > textFrame.padTop = 0 > textFrame.padBottom = 0 > > Hope this helps, > > Lyle >