Skip navigation.
Home
The QNX Community Portal

View topic - PgDrawIRectCx()

PgDrawIRectCx()

Isn't the name clear?

PgDrawIRectCx()

Postby witos » Wed Jan 21, 2009 3:08 am

Hello,
Im working on project in which i have to draw rectangle with other reactangles in it every 3 seconds. I have a problem because function
PgDrawIRect() draws it in currect graphics content. I want to draw it always in the same graphics context. I mage GUI in appBuilder inserted there background widget and i want it to be the graphics content for my reactange.
I read that PgDrawIRectCx() may be usefull but i dont have any idea on how pass first argument

int PgDrawIRectCx( void *dc,
int ulx, int uly,
int lrx, int lry,
unsigned int flags );

thank you very much for help.
witos
Active Member
 
Posts: 11
Joined: Mon Jan 19, 2009 2:55 am

RE: PgDrawIRectCx()

Postby micro » Wed Jan 21, 2009 3:04 pm

Try opening a PgRaw() and Draw in there.

The DC should be your direct context.


Edit: Err Draw Context
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

RE: PgDrawIRectCx()

Postby witos » Wed Jan 21, 2009 9:21 pm

thanks for reply
But I dont know how to do it and dont know if it is really what i was looking for. Whatever drawing context is active I want my reactangle to be drawn i the one and the same
witos
Active Member
 
Posts: 11
Joined: Mon Jan 19, 2009 2:55 am

RE: PgDrawIRectCx()

Postby micro » Thu Jan 22, 2009 1:33 pm

Check the Raw Drawing and Animation chapter in the documentation.
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

RE: PgDrawIRectCx()

Postby witos » Fri Jan 23, 2009 7:55 pm

sorry but i cant find any solution in this documentation :(
witos
Active Member
 
Posts: 11
Joined: Mon Jan 19, 2009 2:55 am

RE: PgDrawIRectCx()

Postby dleach » Thu Feb 19, 2009 1:25 pm

You need to use PhDCCreate(). The void*dc for the first parameter is very confusing, and should have been a type. I am not sure exactly what you are trying to accomplish, but I hope my suggestion helps.

-Derek
dleach
New Member
 
Posts: 3
Joined: Thu Feb 19, 2009 1:24 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest