Page 1 of 1

How to use TActivex from WorkShop Resources?

Posted: Mon Jan 01, 2007 5:22 pm
by Rochinha
Hi,

What WS control to use to run activex in resources?

thanks

Re: How to use TActivex from WorkShop Resources?

Posted: Mon Jan 01, 2007 6:37 pm
by Pier Luigi
In the source:

Code: Select all

   DEFINE DIALOG oDlg RESOURCE "GRAPH"
      oChart := TActiveX():Redefine( 101, oDlg, "RMChart.RMChartX" )
      ...
   ACTIVATE DIALOG oDlg CENTER

In the resource file:

Code: Select all

   GRAPH DIALOG 226, 82, 333, 234
   STYLE 0x4L | WS_POPUP | WS_CAPTION | WS_THICKFRAME
   CAPTION "Grafico"
   FONT 6, "MS Sans Serif"
   {
   CONTROL "", 101, "TActivex", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 1, 1, 332, 196
   }
Regards
Pier Luigi

Posted: Tue Jan 02, 2007 11:54 am
by Rochinha
Ok

This examples is very important. I will be use the RMChart Activex too.

Thanks