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 Sapp
Posts
-
Font Dialog problems -
Font Dialog problemsOk, 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
-
Font Dialog problemsI 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
-
Multiple Forms in MS VC++Cool, apparently the #include "AboutDialog.h" part is what I was missing. I am used to using Delphi that automatically includes these types of things. I will try to remember that from now on! :D Thanks, Tom Sapp http://www.sappsworld.com
-
Multiple Forms in MS VC++I am creating a Windows Forms Application (.NET) and am trying to create and show my own About dialog but I can't figure this out. I have tried doing searches here and on the net but everything I am finding says to do one of two things: AboutDialog::Show(); or AboutDialog myDialog = new AboutDialog(); myDialog.Show(); Either way I do this it gives me an error of "error C2065: 'AboutDialog' : undeclared identifier" Forgive me for asking so many questions but I am still learning and this is one of the ways I find the easiest! Only problem is I am having a heck of a time figuring out how to search for stuff for C++. Thanks, Tom Sapp http://www.sappsworld.com
-
MessageBox used in C++ .NETWell, that resolved that issue. Now I have this issue: error C2514: 'System::Windows::Forms::MessageBox' : class has no constructors Guess I am not doing something right! Thanks, Tom Sapp http://www.sappsworld.com
-
MessageBox used in C++ .NETI am trying to use MessageBox in .NET but I keep getting an error. Code I am using: MessageBox( NULL, "This is the text", "MessageBox", MB_OK ); Error I am recieving: error C2065: 'MB_OK' : undeclared identifier I get this error, however, when I mouse over MB_OK it gives me a tooltip saying "#define MB_OK 0x00000000L". Anyone know what I can use in it's place or how to fix this? Thanks, Tom Sapp http://www.sappsworld.com
-
Save/Open DialogI was wondering what the easiest way to get only the filename from the FileName property of the Save/Open dialogs in Visual C++? I've created a string variable and set it to SaveDialog1.FileName but that contains the path AND the filename. I know I could go through and find the first \ from the end of the variable and remove anything before it but there has to be an easier, less time consuming, way of doing this. In Delphi there was a property of the Save/Open dialogs that would automatically return only the filename and not the path, but, as far as I can tell, there is not one for Visual C++. Any help and/or ideas would be greatly appreciated! Thanks, Tom Sapp http://www.sappsworld.com -- modified at 23:52 Friday 28th October, 2005