|  | 
| I dont find Handle in xtpControl | 
| Post Reply   | 
| Author | |
| mav50202   Newbie   Joined: 09 August 2005 Status: Offline Points: 24 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 October 2005 at 9:45am | 
| 
   Are you doing this? Dim controlsearch As CommandBarControlCustom or equivalent in FoxPro | |
|  | |
| mav50202   Newbie   Joined: 09 August 2005 Status: Offline Points: 24 |  Post Options  Thanks(0)  Quote  Reply  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. | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  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. | |
|  | |
| mav50202   Newbie   Joined: 09 August 2005 Status: Offline Points: 24 |  Post Options  Thanks(0)  Quote  Reply  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.
    | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |