FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ActiveX NO BORDER
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX NO BORDER
Posted: Fri Sep 12, 2008 12:19 PM

Patrick,

We have done some progress :-) The style WS_TABSTOP was not used from Class TActiveX ! This change is required:

METHOD New( ... ) ...

...

::nStyle = nOR( WS_CHILD, WS_VISIBLE, WS_TABSTOP )

Now bGotFocus is properly fired :-)

Now we need to discover where the focus goes when the ActiveX gets the focus...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX NO BORDER
Posted: Fri Sep 12, 2008 12:40 PM
Some more research:

It seems as the ActiveX has its own Windows handle, different from the TActiveX control:
   @ 7,15 BUTTON "Test" OF oDlg; 
          SIZE 50,12; 
          ACTION MsgInfo( oActiveX:Do( "GetWindow" ) == oActiveX:hWnd )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 310
Joined: Sun Jan 08, 2006 10:09 PM
ActiveX NO BORDER
Posted: Tue Sep 16, 2008 07:29 AM
Patrick

See the code below:

This code shows how to enter data into one remote .DBF.

With xHarbour change TOLEAuto():New() for CreateObject().

#include "fivewin.ch"

Function Main()
   LOCAL loHyperlink := TOLEAuto():New( "Microsoft.XmlHttp" ) 
   //
   set default to "c:\YourSystem"
   use clientes new shared
   //
   do while .not. eof()
      if !empty(clientes->campo1)
         cURL :=        "http://www.SeuDominio.com.br/salva.asp"
         cURL := cURL + "?campo1="+clientes->campo1
         cURL := cURL + "&campo2="+clientes->campo2
         //
         loHyperlink:Open( "POST", cURL, .F. )
         loHyperlink:Send( "" )
         //
         MsgRun("Adicionei mais um")
      endif
      skip
   enddo
   //
   return nil


Codigo SALVA.ASP
<%
    ' Codigo exemplo de salvamento de variaveis via HTTP GET
    ' podendo ou nao ser retornado apenas o valor inteiro. 
    '------------------------------------------------------------
    pos       = instrrev(lcase(request.servervariables("path_translated")),lcase(scriptrelativefolder)& "\" & lcase(formaction))
    db_dir    = left(request.servervariables("path_translated"), pos-1 )
    db        = db_dir & ".\"

    ' Campos Recuperados
    campo1 = replace( request.QueryString("campo1"), "'", "''")
    campo2 = replace( request.QueryString("campo2"), "'", "''")

    set cnn= server.createobject("adodb.connection")
    cnn.open "Driver={Microsoft dBase Driver (*.dbf)};;DBQ="& db &";"
    cnn.execute("INSERT INTO tabela(campo1,campo2)" & _
                          "VALUES ('"&_
                                   campo1&"','"&_
                                   campo2&"')" )
    Set cnn = Nothing 
    Set Mail = Nothing 
%>


If wish to make the test track IExplorer simply enter a command like:
http://www.SeuDominio.com.br/salva.asp?campo1=DadosNoCampo1&campo2=DadosNoCampo2


Bye
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX NO BORDER
Posted: Tue Sep 16, 2008 07:34 AM

Rochinha,

Thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
ActiveX NO BORDER
Posted: Tue Sep 16, 2008 08:24 AM

Thank you Rochinha ;-)

Patrick

Posts: 603
Joined: Sun May 04, 2008 08:44 PM
no scroll
Posted: Mon Sep 22, 2008 01:12 PM
Patrick Mast wrote:Thank you Rochinha :-)

Patrick


without broder i dont know more to without scroll only u add
in uer HTML

<body scroll=no>

:-)
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Re: no scroll
Posted: Mon Sep 22, 2008 03:46 PM
without broder i dont know more to without scroll only u add
in uer HTML
<body scroll=no>
Perfect! :-)

Thanks you.

Patrick
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
no scroll
Posted: Mon Sep 22, 2008 04:06 PM

And about border what u did ?

thanks

Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Re: no scroll
Posted: Mon Sep 22, 2008 04:10 PM
lailton.webmaster wrote:And about border what u did ?
No solution for that. As wel as no solution on TAB'ing in a web activeX control.

Patrick
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
oh
Posted: Mon Sep 22, 2008 04:11 PM

Oh ok thanks if i found something i post here

thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX NO BORDER
Posted: Mon Sep 22, 2008 07:49 PM

Patrick,

A temporary workaround is to use just one ActiveX control without other controls, so the focus will not go out of the control.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion