Skip navigation.
Home
The QNX Community Portal

View topic - drawing always in the main window ?

drawing always in the main window ?

Isn't the name clear?

drawing always in the main window ?

Postby witos » Sun Jan 25, 2009 1:40 pm

PgDrawIRect(0, 0, 600, 400, Pg_DRAW_FILL);
it is in the thread whitch does it every 3 seconds.


It always draws reactangle corresponding to active widget. When I select an item from combobox this reactangle is drawn with the left upper corner in the left upper corner of the combobox. Is there any way to make it draw always corresponding to main Window (always left upper corner (0 : 0)??
witos
Active Member
 
Posts: 11
Joined: Mon Jan 19, 2009 2:55 am

RE: drawing always in the main window ?

Postby tfletche » Sat Feb 07, 2009 1:56 pm

I think that you'll likely need to provide a bit more background information. I'm
not really understanding what your problem is.

Thomas
tfletche
QNX Master
 
Posts: 53
Joined: Wed Apr 11, 2007 11:19 am
Location: Ottawa

RE: drawing always in the main window ?

Postby juanplacco » Sat Feb 07, 2009 5:54 pm

From the docs:

PgDrawRect() and PgDrawIRect() work on the current draw context, while you can specify the draw context dc for PgDrawRectCx() and PgDrawIRectCx().

I've never used those functions, but it seems it have to do with the 'draw context'...

You can read a little more:

http://www.qnx.com/developers/docs/6.4. ... RECTANGLES

Regards,
JM
juanplacco
Senior Member
 
Posts: 318
Joined: Wed May 17, 2006 2:30 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron