Print Page | Close Window

I dont find Handle in xtpControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3070
Printed Date: 17 November 2024 at 1:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I dont find Handle in xtpControl
Posted By: mav50202
Subject: I dont find Handle in xtpControl
Date 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



Replies:
Posted By: SuperMario
Date Posted: 24 October 2005 at 9:45am
Are you doing this?

Dim controlsearch As CommandBarControlCustom

or equivalent in FoxPro


Posted By: mav50202
Date 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.



Posted By: SuperMario
Date 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.


Posted By: mav50202
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net