FoX: X Error after fx_app.normalFont=

Y

Yuri Leikind

Hello all,

I try to set the normal font for the FXApp object after it has been run
(fx_app.normalFont = my_font), and I get the following errors:

X Error: code 7 major 56 minor 0: BadFont (invalid Font parameter).

The font of the main window is not changed, though newly created windows
have the requested font.

The font object itself is Ok, just because fx_app.normalFont= works well
with the same object before FXApp.run()


What's wrong?
 
Y

Yuri Leikind

Did you call create() on the font before assigning it to the FXApp, i.e.

my_font = FXFont.new(...)
my_font.create
fx_app.normalFont = my_font

?

Oops.... No. Should have known.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top