FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to set ActiveX property?
Posts: 24
Joined: Wed Oct 15, 2008 01:04 PM
How to set ActiveX property?
Posted: Mon Oct 19, 2009 06:59 PM

I want to use an ActiveX.

In VB6, I use these ways to set properties:
1. oGrid1.Cols = 27
2. oGrid1.Font.Name = "Arial"
3. oGrid1.Column(2).Width = 20
4. oGrid1.Cell(0,1).Text = "Item Code"

In FWH, I know oGrid1:SetProp( "Cols", 27) to set property, but do not know how to assign others (2 to 4).

Thanks.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to set ActiveX property?
Posted: Mon Oct 19, 2009 07:41 PM

Max,

From FWH 9.05 on you can use:

  1. oGrid1:Cols = 27
  2. oGrid1:Font:Name = "Arial"
  3. oGrid1:Column(2):Width = 20
  4. oGrid1:Cell(0,1):Text = "Item Code"
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 24
Joined: Wed Oct 15, 2008 01:04 PM
Re: How to set ActiveX property?
Posted: Tue Oct 20, 2009 03:47 PM

Antonio,

Thanks for your reply.

But I am using FWH9.01, how to do these settings?

In addition, I know there are different ways to use ActiveX:
1. TActiveX():New( oWnd, cProgID, nTop, nLeft, nBottom, nRight )
2. CreateObject( cProgID )
3. TOLEAuto():New( cProgID )

What are differences between these ways? If use CreateObject() or TOLEAuto(), how to set coordinates?

I have tried TActiveX() to create Excel and Word but Application Exception occurs. And not every 3rd parties VB ActiveX can be created by TActiveX.

Regards

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to set ActiveX property?
Posted: Tue Oct 20, 2009 06:21 PM

Max,

Please try it again using these enhancements that we did on Class TActiveX:

viewtopic.php?f=3t=15314start=0hilit=greatly+enhanced

&&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 24
Joined: Wed Oct 15, 2008 01:04 PM
Re: How to set ActiveX property?
Posted: Wed Oct 21, 2009 10:50 AM

Thanks.

But the module FiveHC.lib in www.mediafire.com did not exist. Please upload it again.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to set ActiveX property?
Posted: Wed Oct 21, 2009 12:12 PM

Max,

You just need to compile the published activex.prg in that post and link the resulting OBJ to your application

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 24
Joined: Wed Oct 15, 2008 01:04 PM
Re: How to set ActiveX property?
Posted: Wed Oct 21, 2009 02:43 PM

Antonio,

Yes, I have re-linked the new ActiveX.obj, but the error "Unresolved external '_HB_FUN_ACTXEND'" occurs.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to set ActiveX property?
Posted: Wed Oct 21, 2009 04:35 PM
Max,

Use a dummy function for a test:
Code (fw): Select all Collapse
function ACTXEND()

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 24
Joined: Wed Oct 15, 2008 01:04 PM
Re: How to set ActiveX property?
Posted: Thu Oct 22, 2009 01:29 PM

Antonio,

Yes, it works. Thanks for your support.

Continue the discussion