Lost on the easy stuff! Please Help!

This is a discussion on Lost on the easy stuff! Please Help! within the C++ Programming forums, part of the General Programming Boards category; I need to call the FontDialog and ColorDialog boxes in my Win32 app, but I can't find the correct event ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    1

    Exclamation Lost on the easy stuff! Please Help!



    I need to call the FontDialog and ColorDialog boxes in my Win32 app, but I can't find the correct event handler to proccess the request. Could someone please either tell me what I am missing or send me the proper code?

    This is where I'm at right now:

    #include <vcl/dialogs.hpp>

    void __fastcall TEText::OpFontClick(TObject *Sender)
    {
    if (FontDialog->Execute())
    {
    FpFont = FontDialog->Font;
    SetListBoxItems();
    }
    }

    After I compile this in my app I get the following errors:

    Undefinded symbol 'FpFont'
    Call to undefined function 'SetListBoxItems'

    Please Help!

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Either the variable FpFont has not been declared anywhere, or it is not visible to the 'OpFontClick' function. Same problem with the undefined function. Make sure that you have all parameters correct for the function, and if the function belongs to that object, you are calling to function through that object (i.e. obj1.SetListBoxItems() or obj1->SetListBoxItems()).

    It is difficult to tell what the problem with only the code you have provided.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Somewhat Lost...
    By Matty_Alan in forum C Programming
    Replies: 4
    Last Post: 06-22-2007, 10:09 PM
  2. Flushing Stuff In The Console Window
    By mike_g in forum C Programming
    Replies: 5
    Last Post: 06-01-2007, 03:29 PM
  3. Windows Defines - Screwing Stuff Up?
    By Tonto in forum Windows Programming
    Replies: 2
    Last Post: 11-19-2006, 03:53 PM
  4. OpenGL Wierd **** - Order of Drawing Stuff?
    By Tonto in forum Game Programming
    Replies: 9
    Last Post: 11-09-2006, 08:56 PM
  5. D3DX - ALT + TAB / Drawing stuff
    By Tonto in forum Game Programming
    Replies: 8
    Last Post: 10-31-2006, 08:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21