This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Border color and background color


Hi! My email add is crisc@amkor.com Im new to the X window  Programming
world,  im starting with creating a simple window.
One of the parameter XcreateSimpleWindow function is the border thickness
and border color. How do I specify that?

Ex:

Int win_border_width;
Int win_border_color;

win_border_width=2;
win_border_color=5;

now for ex im starting to create a wiondow like this:

/* create the window, as specified earlier. */
win = XCreateSimpleWindow(display,
                          RootWindow(display, screen_num),
                          win_x, win_y,
                          win_width, win_height,
                          win_border_width, BlackPixel(display,
screen_num),
                          win_botder_color, WhitePixel(display,
screen_num));
Is this correct?
I want Black as my background color. Please help me.

Regards,
Tina









Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]