Class ActiveX/OleWevent

Class ActiveX/OleWevent

Postby lailton.webmaster » Thu Aug 06, 2009 8:07 am

Exemplo usando TActiveX, ( Funcionando Bien )
Code: Select all  Expand view
#include "fivewin.ch"

function main()

 public oWnd
 public oCommandbar
 public oRibbonbar
 public oToolA

 public Left:=Top:=Right:=Bottom:=0

 define window ownd

    oCommandBar:= TactiveX():New(oWnd,"Codejock.CommandBarsFrame.12.1.1",0,0,0,0)
    oCommandBar:Do("AttachToWindow", oWnd:hWnd )
    oRibbonBar:= oCommandBar:Do("AddRibbonBar","Redstarsoft")
    oRibbonBar:EnableFrameTheme()

    cToolA:=oCommandBar:Do("Add","ToolBar", 0)
    cToolA:GetWindowRect( @Left, @Top, @Right, @Bottom )
 
    MsgInfo(Left)
    MsgInfo(Top)
    MsgInfo(Right)
    MsgInfo(Bottom)

 activate window ownd


return


Exemplo usando ToleWevent ( GPF )
Code: Select all  Expand view
#include "fivewin.ch"

function main

 public oWnd
 public oCommandbar
 public oRibbonbar
 public oToolA

 public Left:=Top:=Right:=Bottom:=0

 define window ownd

    oCommandBar:= OleWEvent():New("Codejock.CommandBars.12.1.1")
    oCommandBar:AttachToWindow( oWnd:hWnd )
    oRibbonBar:= oCommandBar:AddRibbonBar("Redstarsoft")
    oRibbonBar:EnableFrameTheme()

    cToolA:=oCommandBar:Add("ToolBar", 0)
    cToolA:GetWindowRect( @Left, @Top, @Right, @Bottom )
 
    MsgInfo(Left)
    MsgInfo(Top)
    MsgInfo(Right)
    MsgInfo(Bottom)

 activate window ownd
return


Antonio, tu pode me dizer una cosa, porque en la class ToleWevent yo necessito usar "Codejock.CommandBars.12.1.1"
pero "Codejock.CommandBarsFrame.12.1.1" return GPF ?

y con la TactiveX es lo iverso, yo necessito usar Codejock.CommandBarsFrame.12.1.1 y Codejock.CommandBars.12.1.1 return GPF.

No consito entender :(

Link abaxo con lo exemplos.
http://www.redstarsoft.com.br/TOleDemo.rar
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Class ActiveX/OleWevent

Postby Antonio Linares » Fri Aug 07, 2009 9:28 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 92 guests