This site is no longer active and is available for archival purposes only. Registration and login is disabled.

how to use win32 control in edgelib


how to use win32 control in edgelib

Postby sunfred » Nov 27, 2008 @ 4:32am

sunfred
pm Member
 
Posts: 11
Joined: Nov 7, 2008 @ 4:53am


Postby edge » Dec 1, 2008 @ 9:07am

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby sunfred » Dec 4, 2008 @ 6:18am

hi edge,
Thank you for your help!
And yes, I did create the windows with WS_CHILD flag.But I couldn't capture the message I need by using your code.Maybe there is something wrong with my codes, i'll check them later.
Still I have a question about SHOWING a windows control in edgelib (surface).I successfully create a button in OnDisplayInit(), but how could I show it in edgelib surface?

Thanks!
sunfred
pm Member
 
Posts: 11
Joined: Nov 7, 2008 @ 4:53am


Postby edge » Dec 4, 2008 @ 10:28am

Hi Sunfred,

The best way is to use the GDI display mode. In OnDisplayConfig set the config->openmethod to DOM_GDI. The button should be drawn over your EDGELIB surface.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby sunfred » Dec 9, 2008 @ 8:52am

Hi edge,
Unfortuantly, it does't seem to work even I set "config->openmethod = DOM_GDI".
The button has been created successfully and can response click action within it's rect.But it's black!When I click within the area, it changes to white.
Maybe I should draw controls myself.

Thanks for your help!
sunfred
pm Member
 
Posts: 11
Joined: Nov 7, 2008 @ 4:53am


Postby edge » Dec 9, 2008 @ 4:18pm

Hi Sunfred,

I suggest drawing the controls yourself.

Another (more complicated) method is to show the backbuffer manually. This requires several calls to SetFlipRect and Flip to 'draw the backbuffer around your control'.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron