Font Dialog problems
-
I have this very odd problem, my application contains and open, save, and font dialog box in it. I am using the ones that come with Visual Studio already, and when I first run my application and launch the font dialog it comes up all weird looking, see this screen shot, until I launch either the open or save dialogs. I dont have to do anything with them other than open them and then cancel them and once I do the font dialog works like it should. Anyone have any suggestions as to why this may be happening or how to fix it? Thanks, Tom Sapp http://www.sappsworld.com -- modified at 23:41 Saturday 5th November, 2005
-
I have this very odd problem, my application contains and open, save, and font dialog box in it. I am using the ones that come with Visual Studio already, and when I first run my application and launch the font dialog it comes up all weird looking, see this screen shot, until I launch either the open or save dialogs. I dont have to do anything with them other than open them and then cancel them and once I do the font dialog works like it should. Anyone have any suggestions as to why this may be happening or how to fix it? Thanks, Tom Sapp http://www.sappsworld.com -- modified at 23:41 Saturday 5th November, 2005
Ok, the even weirder part is this happens with the MessageBox.Show as well! Very Very Odd! Screen Shot Thanks, Tom Sapp http://www.sappsworld.com -- modified at 23:42 Saturday 5th November, 2005
-
I have this very odd problem, my application contains and open, save, and font dialog box in it. I am using the ones that come with Visual Studio already, and when I first run my application and launch the font dialog it comes up all weird looking, see this screen shot, until I launch either the open or save dialogs. I dont have to do anything with them other than open them and then cancel them and once I do the font dialog works like it should. Anyone have any suggestions as to why this may be happening or how to fix it? Thanks, Tom Sapp http://www.sappsworld.com -- modified at 23:41 Saturday 5th November, 2005
Hmm. It looks like the static controls in the dialogs aren't loading (or painting) correctly, while the dialogs themselves are OK. Note that these are common dialogs, provided by Windows, and don't "come with" Visual Studio. That said, are you trying to customize these dialogs at all? Are you creating your own class, derived from
CFontDialog
? Post some of your code where you are using these dialogs, and we'll take a look.
Software Zen:
delete this;
-
Hmm. It looks like the static controls in the dialogs aren't loading (or painting) correctly, while the dialogs themselves are OK. Note that these are common dialogs, provided by Windows, and don't "come with" Visual Studio. That said, are you trying to customize these dialogs at all? Are you creating your own class, derived from
CFontDialog
? Post some of your code where you are using these dialogs, and we'll take a look.
Software Zen:
delete this;
Other than this code called on a menu click: if ( fdFont->ShowDialog() == DialogResult::OK ) rtbDocument->Font = fdFont->Font; all the other code I have is to set options on the dialog to have a minimum size and maximum size. I haven't made a custom object or anything, just used what ever was added when I dragged the font dialog tool from the toolbox to the form. It also happens with the MessageBox.Show code as well. Here is that code: MessageBox::Show( this, message, caption, buttons, MessageBoxIcon::Question, MessageBoxDefaultButton::Button1 ); It's very weird and if you would like to, you can download the project here and take a look at all the code. Thanks, Tom Sapp http://www.sappsworld.com
-
Other than this code called on a menu click: if ( fdFont->ShowDialog() == DialogResult::OK ) rtbDocument->Font = fdFont->Font; all the other code I have is to set options on the dialog to have a minimum size and maximum size. I haven't made a custom object or anything, just used what ever was added when I dragged the font dialog tool from the toolbox to the form. It also happens with the MessageBox.Show code as well. Here is that code: MessageBox::Show( this, message, caption, buttons, MessageBoxIcon::Question, MessageBoxDefaultButton::Button1 ); It's very weird and if you would like to, you can download the project here and take a look at all the code. Thanks, Tom Sapp http://www.sappsworld.com
Tom, I downloaded your project. I ran both the debug and release executables on my machine. The font dialog displayed correctly in both cases. It looks like your project is a managed C++ .NET application. Unfortunately, my expertise is in Win32 and MFC applications (which is why this is the only forum in which I tend to answer questions). You may want to repost your question in the C++/CLI forum[^]. Good luck, and sorry I couldn't be of help.
Software Zen:
delete this;