Pixmap Oddities I



Hi *,
     I am experiencing some odd behaviour with the pixmap stuff. I have
     a dialog that looks like this:

     +-------------------------------+
     | **********    This is the     |  
     | * *   *  *     message part   |
     | *  * *   *                    |
     | *   *    *                    |
     | **********                    |
     | ----------------------------- |
     |   { OK }     { CANCEL }       |
     +-------------------------------+

    basically there are 4 dialog types: error, info, question and warning. 
    Each has a different pixmap, all three pixmaps are 32x32 and come from 
    the same source and look fine to me.

    Of the 4 dialogs only the Question dialog has the CANCEL button. Now
    the odd problem is that only the Question dialog gets the pixmap
    displayed :( the others just show and empty space there. The only
    difference in the code (will try to post it later if needed) is 
    the creation of the CANCEL button.

    ---- More details ----
    The pixmap and the message part (a label widget) are inserted in
    an hbox container that has been packed into .dlgwin.vbox so that
    they become .dlgwin.vbox.hbox.pixwindow and .dlgwin.vbox.hbox.label, 
    while the buttons remain in .dlgwin.action_area.
    ---- ------------ ----

    Aside from that the dialog is working quite well, upon return I
    get the value corresponding to the button that was pressed. However
    3 out of my 4 pixmaps don't show :(

    From there I tried to find if there was something wrong in some
    way but can't figure out how to get some sort of error indication
    (no run time errors displayed by GTK/GDK) such as null pointer etc,
    that is something that could tell me WHY the pixmap is not being
    displayed.

    Any ideas as to what is wrong with it? (wherever the problem lies).

    		Thanks in advance,
				Emilio
-- 
      __o          "Admit nothing, deny everything, demand proof. :)"
    _`\<,_           -James Ebbs
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
                    D. Emilio Grimaldo Tunon
http://www.iaehv.nl/users/grimaldo/
http://www.iaehv.nl/users/grimaldo/cv/
http://www.iaehv.nl/users/grimaldo/panama.html
http://www.iaehv.nl/users/grimaldo/Linux/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]