Displaying 1 result from an estimated 1 matches for "fxtextdialog".
2007 Aug 24
2
setting the font in FXText
I have subclassed a FXDialogBox and put a FXText in it for displaying a
hex dump in my application. I want to change the font to a courier type
font since it''s a hex dump. When do the following it works as expected:
# A little dialog box to use in our tests
class FXTextDialog < FXDialogBox
def initialize(owner)
# Invoke base class initialize function first
super(owner, "Temp", DECOR_TITLE|DECOR_BORDER, 0, 0, 200, 200)
button = FXHorizontalFrame.new(self,
LAYOUT_SIDE_BOTTOM|FRAME_NONE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
contents = FXH...