comp.windows.x
  Home FAQ Contact Sign in
comp.windows.x only
 
Advanced search
September 2008
motuwethfrsasuw
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.windows.x Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Displaying a xbm image         


Author: Jinhao
Date: Sep 14, 2008 21:32

hi, I write a piece of code to display a xbm image onto a window, but
it does not work.

int main()
{
Display* display = XOpenDisplay(0);
int screen = DefaultScreen(display);
Window root = RootWindow(display, screen);
Window wnd = ::XCreateSimpleWindow(display, root,0, 0, 200, 200, 2,
0, 0xffffff);
GC gc = ::XCreateGC(display, wnd, 0, 0);
std::cout<<"Window = "<Show full article (1.01Kb)
2 Comments
  Information about this newsgroup         


Author: Graeme Geldenhuys
Date: Sep 5, 2008 03:27

Hi,

I just joined this newsgroup. Does this group cover anything related to
X-Window, XLib etc. or is it specific to some widgetset/toolkit?

I have written a cross-platform GUI toolkit (Linux, *BSD and Windows)
using Free Pascal compiler. Sometimes I have questions regarding Xlib
API and X11 in general. Is this newsgroup an appropriate place to ask
some questions?

Regards,
- Graeme -

_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
1 Comment
  XEvent content question         


Author: jonathan.j.tanner
Date: Sep 4, 2008 09:50

From a SelectionNotify XEvent, is it possible to determine whether
this is a selection (i.e. middle click paste) or clipboard paste?

Thanks
Jon
1 Comment
  Different window IDs for the same window?         


Author: Rich
Date: Sep 3, 2008 15:04

Does it make sense that I'm getting different Window IDs for the same
window?

I'm retrieving one via VisibilityNotify events
(event.xvisibility.window) and the other from using XGetWindowProperty
for _NET_CLIENT_LIST (the results of which do correspond with what I
get from xprop -root|grep _NET_CLIENT_LIST\(W ). I'm pretty sure the
window should be in both lists, I seem to be able to take screenshots
from it with either ID.

Thanks
1 Comment
  Book: X Power Tools         


Author: Man-wai Chang ToDie (33.6k)
Date: Sep 1, 2008 01:51

Is it good? USD34....

--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 8.04.1) Linux 2.6.26.2
^ ^ 16:51:01 up 25 days 1:03 3 users load average: 1.06 1.03 1.01
? ? (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/
1 Comment
  How do I access an XImage directly?         


Author: nate
Date: Aug 24, 2008 13:43

I am trying to access the pixels of an XImage without using XGetPixel
and XSetPixel. I created an XImage with the following code:

XImage* img = XGetImage(display, window, 0, 0, 256, 256, AllPlanes,
XYPixmap);

I can't figure out how to access the pixels directly. This is what I
have so far (it doesn't work):

int get_pixel(XImage* img, int x, int y) {
int pos = y * img->bytes_per_line + x;
int color = rgb(img->data[pos], img->data[pos+1], img->data[pos+2]);
return color;
}
no comments
  Screen off center         


Author: Nathan Seese
Date: Aug 20, 2008 15:46

The resolution of my monitor is too high; I cant'er see the rightmost
corner of the screen. Any suggestions of how to fix this? I'm running on
gNewSense.
2 Comments
  Capturing screenshot from a minimized window         


Author: Rich
Date: Aug 20, 2008 06:33

I've been using XGetImage to capture screenshots, at the moment saving
them to xpm files. I'm having two problems though:

1. It's very slow and freezes my system for a few seconds.
2. On the unmap the XGetImage doesn't take a screenshot until after
the window has been unmapped, so I just get an image of what was
behind it. Similarly, if I try it on the map event then I seem to
catch it in the middle of painting the window.

Does anyone have any suggestions of a better way to go about capturing
an image of a window before it's unmapped, or where I might be going
wrong with my current method? Thanks.
6 Comments
  [Commercial] Training on Windows Kernel Programming from Professionals         


Author: Concepts Systems
Date: Aug 20, 2008 02:38

Hello All,

With a growing demand for Windows System Professionals, we are pleased
to announce a new weekend batch of “Windows Internals and Device
Drivers” for working professionals and Engineers.

Course Highlights:

Windows Internals

- It includes topics related to key components of system like
- Thread scheduling, I/O, memory management,
- Windows Security
- Debugging using Win Dbg to explore windows internals.

Windows Device Driver

It deals with important driver-building and designing mechanisms
- Windows Driver Model and development
- PnP Concepts
- Storage Stack
- Device Driver building, debugging, writing installer.
- Synchronization, Interrupts, PnP Filter drivers.

Detail syllabus is available at
http://conceptssys.com/SyllabusPdf/wdd.pdf
Show full article (1.89Kb)
1 Comment
  Xlib and mouse events         


Author: Benjamin BOUCHER
Date: Aug 20, 2008 01:50

Hi,

I want to make a C program which capture all mouse events, not only
those from a given window, is it possible ?
If yes, how ?

I tried a XSelectInput(dpy, DefaultRootWindow(dpy), myMASK) but It
didn't work.

Thanks in advance,
5 Comments
1 2 3 4 5 6 7 8 9