PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

gapidraw and mfc

Hi there

I am coding a project that requires some information about a server from a user before it connects to that server and then gets graphical data and renders it using gapidraw.

my original idea was to use an mfc dialog box to have the user put in the server address, then kill the box and fire up the CGapiApplication class.

this doesn't seem to work, even if i try keep the two things completely separate, neither seems able to get the display.

has anyone managed to do anything like this? if so, how? any advice? should i just give up on the mfc?
any help will be greatly appreciated..

thanks
nerk
nicholsr · 19 Sep 2003, 16:26 UTC — gapidraw and mfc
nerk wrote:
Hi there

I am coding a project that requires some information about a server from a user before it connects to that server and then gets graphical data and renders it using gapidraw.

my original idea was to use an mfc dialog box to have the user put in the server address, then kill the box and fire up the CGapiApplication class.

this doesn't seem to work, even if i try keep the two things completely separate, neither seems able to get the display.

has anyone managed to do anything like this? if so, how? any advice? should i just give up on the mfc?
any help will be greatly appreciated..

thanks
nerk


Hi nerk,

None of the normal components and windows (dialogs) from the OS will work anytime the gapi is used. This affects GapiDraw and PocketFrog and other gapi class libraries.

The way to do it is to pop up a surface (bitmap) and use a SIP to input the data. The SIP is a Software Input Panel that looks like the one that shows up at the bottom of your PPC when you are in an edit mode.

Look at JoJoSip (jojosip.gapidraw.com) and you'll get the idea.

Hope this helps...

Richard
Pejo Software - Per · 19 Sep 2003, 19:55 UTC
It is possible to use MFC with GapiDraw there is a sample included with the GapiDraw distribution doing this.

I guess it wasn't asked though!

It is also possible to use windows dialog boxes in an application that uses GapiDraw.

In Beshaped I am doing this and I also use MFC.

Look at this thread for more info on how to display a dialog box:
http://www.pocketmatrix.com/forums/viewtopic.php?t=6601
Pejo Software - Per wrote:
It is possible to use MFC with GapiDraw there is a sample included with the GapiDraw distribution doing this.

I guess it wasn't asked though!

It is also possible to use windows dialog boxes in an application that uses GapiDraw.

In Beshaped I am doing this and I also use MFC.

Look at this thread for more info on how to display a dialog box:
http://www.pocketmatrix.com/forums/viewtopic.php?t=6601


Oops, I guess I was wrong...
Everytime I tried it all I got was flashing screens..

Sorry for the confusion...

Richard