Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - I dont find Handle in xtpControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I dont find Handle in xtpControl

 Post Reply Post Reply
Author
Message
mav50202 View Drop Down
Newbie
Newbie


Joined: 09 August 2005
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote mav50202 Quote  Post ReplyReply Direct Link To This Post Topic: I dont find Handle in xtpControl
    Posted: 21 October 2005 at 3:28am
When i add a xtpControlCustom in toolbar, i dont find the "handle" property in the control.

I work with 9.60 and Visual Fox Pro, and when i get the type of the xtpcontrolcustom is always type label or button, but never is custom control, can be that this control is not compatible with different types of toolbar (floating bar, etc)??

Thanks to all

code:

controlsearch = controlnew.CommandBar.Controls.Add(7,ID_SEARCH,"Search Form",-1,.f.)
controlsearch.handle = Search.hWnd

ERROR CODE OLE 0x80020006 : Unknow property
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2005 at 9:45am
Are you doing this?

Dim controlsearch As CommandBarControlCustom

or equivalent in FoxPro
Back to Top
mav50202 View Drop Down
Newbie
Newbie


Joined: 09 August 2005
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote mav50202 Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2005 at 11:38am

No, in VFP with the rest of controls in my toolbox not is neccesary declarate the objects before (like edit or label, etc), with the ControlCustom is neccesary???

The main problem is i have no idea translate that sentence to VFP, maybe createobject or other declaration, but if this line is neccesary i will try with differents sentences.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2005 at 12:00pm
Well I am assuming that it can't find the handle property because it does not know it is a CustomControl.  But do not use FoxPro, so I was not sure on the rules.

You can try controlsearch.Handle = Search.hWnd incase FoxPro is case sensative.
Back to Top
mav50202 View Drop Down
Newbie
Newbie


Joined: 09 August 2005
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote mav50202 Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2005 at 12:23pm
Problem not is case sensitive, when i access to the properties with intellisense, i dont find the propertie Handle, but the great problem is that when i get the Type of the control is a ControlButton (type 3), this is the problem, when i add a object with 7 (CustomControl), the control dont recognize type 7.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.