View topic - PtWebClient Demo

Page 1 of 1

PtWebClient Demo

PostPosted: Tue Nov 18, 2014 7:11 am
by Sujith Varghese
Hello All,

We are using PtWebclient demo provided in the download/file.php?id=186 for displaying a custom web page from local drive.
The modifications done on the source code are

base_setup( PtWidget_t *link_instance, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )

PtArg_t args[2];
printf ("base_setup\n");
PtSetArg( &args[0], Pt_ARG_WEB_SERVER, "vserver.file", 0 );
PtSetResources( ABW_Base_web_client, 1, args );
PtSetArg( &args[0], Pt_ARG_WEB_GET_URL ,"file:///home/test.html", Pt_WEB_ACTION_DISPLAY );
PtSetResources( ABW_Base_web_client, 1, args );

return( Pt_CONTINUE );


But the mentioned html page didn't displayed on Window. Can you provide some helpful hint on this issue.