topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
ActiveX -- Para Antonio
|
Juan Carlos,
Ya tenemos algunos avances con los eventos. Confiamos en poder completarlos.
|
ActiveX -- Para Antonio
|
Gracias Antonio.
Aprovechando, explícame algo por favor..
Porqué es posible usar un control ActiveX en una
ventana y en un dialogo no?
Se podrá desde recursos??
Gracias
|
ActiveX -- Para Antonio
|
Juan Carlos,
Acabamos de probar los ActiveX en diálogos y funcionan correctamente. Aquí tienes un ejemplo:
[code:ungnlkvp]
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg TITLE "FiveWin ActiveX Support" SIZE 500, 300
ACTIVATE DIALOG oDlg ;
ON INIT SetActX( oDlg ) ;
CENTERED
return nil
function SetActX( oDlg )
local oActiveX := TActiveX():New( oDlg, "Shell.Explorer" )
oDlg:oClient = oActiveX // To fill the entire window surface
oDlg:Resize()
oActiveX:Do( "GoHome" )
return nil
[/code:ungnlkvp]
Lo que sí falta es implementar el método Redefine()
|
ActiveX -- Para Antonio
|
Juan Carlos,
Aquí está la Clase TActiveX con el método Redefine() y otros necesarios implementados: <!-- m --><a class="postlink" href="http://hyperupload.com/download/dbb97186/activex.zip.html">http://hyperupload.com/download/dbb9718 ... x.zip.html</a><!-- m -->
Y aquí un ejemplo de uso:
[code:1t2x55u2]
// Using an ActiveX in a dialog.
#include "FiveWin.ch"
function Main()
local oDlg, oActiveX
DEFINE DIALOG oDlg RESOURCE "Test"
oActiveX = TActiveX():Redefine( 10, oDlg, "Shell.Explorer" )
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT oActiveX:Do( "GoHome" )
return nil
[/code:1t2x55u2]
[code:1t2x55u2]
#ifdef __FLAT__
1 24 "./../WinXP/WindowsXP.Manifest"
#endif
#define DIALOG_1 1
Test DIALOG 84, 77, 194, 119
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ActiveX Test"
FONT 8, "MS Sans Serif"
{
CONTROL "", 10, "TActiveX", 0 | WS_CHILD | WS_VISIBLE, 11, 9, 171, 100
}
[/code:1t2x55u2]
|
ActiveX -- Para Antonio
|
Y el comando que lo hace más sencillo de usar:
[code:beeuetr3]
#xcommand REDEFINE ACTIVEX <oActX> ;
[ ID <nId> ];
[ <of: OF, WINDOW, DIALOG> <oWnd> ] ;
[ PROGID <cProgID> ] ;
=> ;
<oActX> := TActiveX():Redefine( <nId>, <oWnd>, <cProgID> )
[/code:beeuetr3]
REDEFINE ACTIVEX oActiveX ID 10 OF oDlg PROGID "Shell.Explorer"
|
ActiveX -- Para Antonio
|
Hello Antonio,
Could you send to me this file?
My NB can't download it.
Thank you.
Regards,
Richard
<!-- e --><a href="mailto:richard.service@seed.net.tw">richard.service@seed.net.tw</a><!-- e -->
|
ActiveX -- Para Antonio
|
Richard,
Already sent.
|
ActiveX -- Para Antonio
|
Que tal Antonio
Recién llego a la oficina y veo esto que acabas
de poner y solo me resta decirte
MIL GRACIAS! está genial !!!!
Saludos
|
ActiveX : How can I pass parameter as Address ?
|
Hello All,
How can I pass parameter as address ? Putting @ sign in front of variable name do not seem to work.
Can anyone guide me ?
TIA
Milan.
|
ActiveX : How can I pass parameter as Address ?
|
Milan,
What type of parameter value do you need to supply by address ?
|
ActiveX : How can I pass parameter as Address ?
|
[quote="Antonio Linares":16lnyize]Milan,
What type of parameter value do you need to supply by address ?[/quote:16lnyize]
I need to pass character string.
Milan.
|
ActiveX : How can I pass parameter as Address ?
|
Milan,
There is no need to use @ as strings are passed by address (reference) always.
|
ActiveX Control : Developer Licensing.
|
Hello Antonio,
I want to use an ActiveX control which has developer licensing; on the basis of developer license, it has free runtime license.
It ask for Runtime License at the compile time by using CtrlFactory:GetLicenseKey COM method. (As its document states).
How can I achieve it ?
Eagerly awaiting your reply,
Milan.
|
ActiveX Control : Developer Licensing.
|
Milan,
Sorry, its not supported yet.
|
ActiveX Control : Developer Licensing.
|
Dear Antonio,
Any plan to implement it in near future ? It will help me to use the third party ActiveX Control.
Milan.
[quote="Antonio Linares":sj1ig7pd]Milan,
Sorry, its not supported yet.[/quote:sj1ig7pd]
|
ActiveX Control : Developer Licensing.
|
Milan,
We can't say a date. We do know there is an API to do it, but we need to do some more research.
|
ActiveX Control : Developer Licensing.
|
Antonio..
By the way.... is there some other stuffs missed in ActiveX support ??
|
ActiveX Control : Developer Licensing.
|
Juan Carlos,
No, that we may know about.
|
ActiveX DLL Functions
|
Hi Everybody,
I have an ActiveX DLL that I need to call functions from.
I have not tried any ActiveX before and do not know where to start.
Can someone give me some pointers as to how to call functions inside an ActiveX DLL.
Thanks,
|
ActiveX DLL Functions
|
Jeff,
Please make a search for TActiveX in these forums.
There are many examples
|
ActiveX DLL Functions
|
[url=http://imageshack.us:2vdv6401][img:2vdv6401]http://img357.imageshack.us/img357/4264/searchko6.png[/img:2vdv6401][/url:2vdv6401]
|
ActiveX DLL Functions
|
Antonio,
I've been looking at the different posts but I can not see how I tell my program that I want to use MyFile.DLL.
It looks like once I get that figured out I would be using commands like:
oActiveX:DO("MyFunction")
Is that correct?
|
ActiveX DLL Functions
|
I guess step one is:
hPOX := LoadLibrary("\DLL\MyFile.DLL")
But how do I setup the oActiveX object?
|
ActiveX DLL Functions
|
Jeff,
The first step is to know the PROGID (is a string) of the ActiveX that you are going to use.
i.e. for Microsoft Excell the progid is "OWC11.Spreadsheet"
Whats the activex that you are going to use ?
|
ActiveX DLL Functions
|
it is a 3rd party ActiveX that is used to control a medical device.
Any idea on how I would find the PROGID.
I looked at the DLL file with OleView (via the ITypeLib Viewer) but I can not see anything that looks like the ID.
|
ActiveX DLL Functions
|
Jeff,
Don't you have access to that ActiveX docs ?
You can also use its GUID instead of its PROGID ( <!-- m --><a class="postlink" href="http://en.wikipedia.org/wiki/Globally_Unique_Identifier">http://en.wikipedia.org/wiki/Globally_Unique_Identifier</a><!-- m --> ) which usually looks as a long sequence of numbers separated by "-" and between "{" and "}"
Have you tried to instantiate the ActiveX from VB and review its properties ?
|
ActiveX DLL Functions
|
Try this:
828B8942-5924-4BD3-963D-20786181A6A4
EMG
|
ActiveX DLL Functions
|
When I try to do:
oPulseOX = TActiveX():New( oMainWnd, "{828B8942-5924-4BD3-963D-20786181A6A4}" )
I get an empty white box in the upper left corner and the windows error:
EzSat.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
Is there something I need to link into my app?
Thanks,
|
ActiveX DLL Functions
|
Jeff,
Do you get an error.log file ?
|
ActiveX DLL Functions
|
Sorry, no error.log file is generated.
|
ActiveX DLL Functions
|
Jeff,
Have you tried that ActiveX with Visual Basic ?
|
ActiveX DLL Functions
|
Antonio,
I have no way to test with Vb.
|
ActiveX DLL Functions
|
Jeff,
I am no ActiveX expert, but if I remember correctly ActiveX components have to be registered in the registry. You might do a Google on it.
James
|
ActiveX DLL Functions
|
James,
If I check with OleView it is listed under "Type Libraries"
Jeff
|
ActiveX DLL Functions
|
Jeff,
It does not look as an ActiveX control. I thought it was a DLL to be used with OLE automation, but after some tests I think it is an ActiveX library (it provides an activex interface, but no a visual control interface).
I got the provided EXE running, but it gives an error when pressing the "Get Version" button. Don't know if it should work ok without the hardware. Could you ask the manufacturer about this ?
I am trying on Vista 32. Now I am going to try on XP.
|
ActiveX DLL Functions
|
Jeff,
Same error on XP when pressing the "Get Version" button, testing their provided EXE.
Please contact the manufacturer about it, thanks
|
ActiveX DLL Functions
|
Antonio,
The "Get Version" does require the hardware to be connected.
|
ActiveX DLL Functions
|
Antonio,
Is it possible to use an ActiveX Library with FWH?
Is yes, how would I make a call to the functions inside the DLL?
Thanks,
|
ActiveX DLL Functions
|
Jeff,
> Is it possible to use an ActiveX Library with FWH?
We have never tested it before and it seems as something goes wrong
We have tried to build a test with Borland C++ builder, using your DLL, but we can't get it working too
We keep doing tests
|
ActiveX DLL Functions
|
Jeff,
Couldn't you ask the manufacturer if they could provide you a plain standard DLL with exported functions, not an ActiveX one ?
|
ActiveX DLL Functions
|
I just sent them an email.
Enrico had mentioned in another post:
"As far as I know, you can't return a string from a DLL function"
These are communication functions that need feedback from the device.
Will a standard DLL work?
|
ActiveX DLL Functions
|
Jeff,
>
Enrico had mentioned in another post:
"As far as I know, you can't return a string from a DLL function"
>
You can do it using a GlobalAlloc() chunk of memory, that the DLL client will free later on
> Will a standard DLL work?
Yes, why not ?
|
ActiveX DLL Functions
|
Antonio,
Here is the reply from the manufacturer
>>
our DLL files are in Visual Basic or ActiveX DLL as you described. We are presently not working in "C" code. You might be able to try installing MSI and this might assist you.
<<
|
ActiveX DLL Functions
|
Jeff,
ok, thanks for the info. We are going to do some tests with VB
|
ActiveX DLL Functions
|
Jeff,
We are unable to build and run their sample using Visual Basic Express(free from Microsoft).
Do they expect that their users will just use the latest Visual Basic version ? They should consider to deliver a standard C DLL so everyone can use it, not just Visual Basic users
|
ActiveX Events
|
Hi ppl,I don't understand what is the pourposes of activex events. There are any working sample that can help me to understand it please?Regards,Toninho.
|
ActiveX Events
|
Toninho,Please review fwh/samples/webexp.prgthere you can see how to manage the activex events
|
ActiveX IE
|
Hi, all !
oAct = TActiveX():New( oWnd, "Shell.Explorer.2" )
oDk:=oWnd:GetProp("Document")
OLEInvoke(oDk,"Write",buf) // buf - HTML-text variable
This design worked in earlier versions FWH, but in FWH9.3 I got window error ?
|
ActiveX IE
|
Try it this way:
[code=fw:3vxqf4v1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oAct = TActiveX<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, <span style="color: #ff0000;">"Shell.Explorer.2"</span> <span style="color: #000000;">)</span><br /><br />oDk:=oWnd:<span style="color: #000000;">GetProp</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Document"</span><span style="color: #000000;">)</span><br />oDk:<span style="color: #000000;">Write</span><span style="color: #000000;">(</span> buf <span style="color: #000000;">)</span> <span style="color: #B900B9;">// buf - HTML-text variable</span><br /> </div>[/code:3vxqf4v1]
|
ActiveX IE
|
Thanks, Antonio !
It's work fine
|
ActiveX IE missing methods ?
|
Hello all,
oActiveX:Print() works correctly
[url:30l8ygz7]http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.print.aspx[/url:30l8ygz7]
while oActiveX:ShowPrintDialog() generates a runtime error.
[url:30l8ygz7]http://msdn.microsoft.com/en-us/library/0xbfs8f9.aspx[/url:30l8ygz7]
RIght clicking the control and choosing "Print" from the contect menu works correctly, so, why certain methods doesn't work on ActiveX ?
Any solution ?
TIA,
Davide
FWH 9.04 (latest ActiveX class) - xH - Bcc
P.S.: The same for ShowPrintPreviewDialog() - Please see Error.log below
[code=fw:30l8ygz7]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br /> Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\tests\testprg\testprg.exe <span style="color: #000000;">(</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">798</span>,<span style="color: #000000;">208</span> bytes<br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">27</span> secs <br /> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">04</span>/<span style="color: #000000;">27</span>/<span style="color: #000000;">2009</span>, <span style="color: #000000;">03</span>:<span style="color: #000000;">34</span>:<span style="color: #000000;">40</span><br /> Error description: <span style="color: #000000;">Error</span> <span style="color: #000000;">1434464</span>/<span style="color: #000000;">0</span> S_OK: <span style="color: #000000;">SHOWPRINTPREVIEWDIALOG</span><br /> Args:<br /><br /><span style="color: #000000;">Stack</span> Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\win32ole.prg => TOLEAUTO:<span style="color: #000000;">SHOWPRINTPREVIEWDIALOG</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => HB_EXECFROMARRAY<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\ACTIVEX.PRG => TACTIVEX&#<span style="color: #000000;">058</span>;SHOWPRINTPREVIEWDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">169</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fwie</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>IENAVIGATE<span style="color: #000000;">(</span><span style="color: #000000;">54</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\TOOLBAR.PRG => TTOOLBAR:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">(</span><span style="color: #000000;">219</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">(</span><span style="color: #000000;">1006</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span><span style="color: #000000;">3333</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => WINRUN<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">952</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">testprg</span>.prg => MAIN<span style="color: #000000;">(</span><span style="color: #000000;">190</span><span style="color: #000000;">)</span><br /><br />System<br />======<br /> CPU type: Intel<span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> Atom<span style="color: #000000;">(</span>TM<span style="color: #000000;">)</span> CPU N270 @ <span style="color: #000000;">1</span>.60GHz <span style="color: #000000;">1600</span> Mhz<br /> Hardware memory: <span style="color: #000000;">1012</span> megs<br /><br /> Free System resources: <span style="color: #000000;">90</span> %<br /> GDI resources: <span style="color: #000000;">90</span> %<br /> User resources: <span style="color: #000000;">90</span> %<br /><br /> Compiler version: <span style="color: #000000;">xHarbour</span> build <span style="color: #000000;">1.2</span><span style="color: #000000;">.1</span> Intl. <span style="color: #000000;">(</span>SimpLex<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>Rev. <span style="color: #000000;">6406</span><span style="color: #000000;">)</span><br /> Windows version: <span style="color: #000000;">5.1</span>, Build <span style="color: #000000;">2600</span> Service Pack <span style="color: #000000;">3</span><br /><br /> Windows total applications running: <span style="color: #000000;">58</span><br /> <span style="color: #000000;">1</span> <br /> <span style="color: #000000;">2</span> M<br /> <span style="color: #000000;">3</span> <span style="color: #00C800;">Default</span> IME<br /> <span style="color: #000000;">4</span> <span style="color: #0000ff;">Menu</span> Avvio<br /> <span style="color: #000000;">5</span> CiceroUIWndFrame<br /> <span style="color: #000000;">6</span> S/PDIF IN/OUT Settings<br /> <span style="color: #000000;">7</span> Set Device Type<br /> <span style="color: #000000;">8</span> Mixer ToolBox<br /> <span style="color: #000000;">9</span> Impostazioni connettore<br /> <span style="color: #000000;">10</span> Controllo dello stato<br /> <span style="color: #000000;">11</span> TF_FloatingLangBar_WndTitle<br /> <span style="color: #000000;">12</span> <span style="color: #00C800;">Print</span><br /> <span style="color: #000000;">13</span> testprg: <span style="color: #000000;">Manual</span><br /> <span style="color: #000000;">14</span> testprg<br /> <span style="color: #000000;">15</span> <span style="color: #0000ff;">Prompt</span> dei comandi<br /> <span style="color: #000000;">16</span> WebBrowser.ShowPrintPreviewDialog <span style="color: #00C800;">Method</span> <span style="color: #000000;">(</span>System.Windows.Forms<span style="color: #000000;">)</span> - Mozilla Firefox<br /> <span style="color: #000000;">17</span> JavaUpdate SysTray <span style="color: #0000ff;">Icon</span><br /> <span style="color: #000000;">18</span> NetscapeDispatchWnd<br /> <span style="color: #000000;">19</span> nsAppShell:<span style="color: #000000;">EventWindow</span><br /> <span style="color: #000000;">20</span> MCI command handling <span style="color: #0000ff;">window</span><br /> <span style="color: #000000;">21</span> VCL ImplGetDefaultWindow<br /> <span style="color: #000000;">22</span> DTS Connect<br /> <span style="color: #000000;">23</span> Dolby Home Threater<br /> <span style="color: #000000;">24</span> Advance <span style="color: #0000ff;">Setting</span><br /> <span style="color: #000000;">25</span> TOOLBOX<br /> <span style="color: #000000;">26</span> Load EQ Preset<br /> <span style="color: #000000;">27</span> DeleteEQ<br /> <span style="color: #000000;">28</span> Save EQ<br /> <span style="color: #000000;">29</span> Realtek HD Audio Manager<br /> <span style="color: #000000;">30</span> BackMain_Form<br /> <span style="color: #000000;">31</span> Gestione Audio Realtek HD<br /> <span style="color: #000000;">32</span> HiddenFaxWindow<br /> <span style="color: #000000;">33</span> <span style="color: #000000;">{</span>A7E495BF<span style="color: #000000;">-9589</span>-4a6e<span style="color: #000000;">-8479</span>-DDA2D8D3C05F<span style="color: #000000;">}</span><br /> <span style="color: #000000;">34</span> IgfxExt_Wnd_Name<br /> <span style="color: #000000;">35</span> _GD_Crawl<br /> <span style="color: #000000;">36</span> Connections Tray<br /> <span style="color: #000000;">37</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span><br /> <span style="color: #000000;">38</span> Internet Security<br /> <span style="color: #000000;">39</span> InterVideo WinCinema Manager<br /> <span style="color: #000000;">40</span> HkWndName<br /> <span style="color: #000000;">41</span> PersistWndName<br /> <span style="color: #000000;">42</span> F-Secure Manager<br /> <span style="color: #000000;">43</span> BluetoothNotificationAreaIconWindowClass<br /> <span style="color: #000000;">44</span> Launch Manager<br /> <span style="color: #000000;">45</span> OnScreen <span style="color: #00C800;">Display</span> <span style="color: #0000ff;">Window</span><br /> <span style="color: #000000;">46</span> DritekECWnd<br /> <span style="color: #000000;">47</span> eRecoveryAgent<br /> <span style="color: #000000;">48</span> TouchPad object helper <span style="color: #0000ff;">window</span><br /> <span style="color: #000000;">49</span> Misuratore alimentazione<br /> <span style="color: #000000;">50</span> MS_WebcheckMonitor<br /> <span style="color: #000000;">51</span> Touchpad driver tray <span style="color: #0000ff;">icon</span> <span style="color: #0000ff;">window</span><br /> <span style="color: #000000;">52</span> Touchpad driver backward compatibility <span style="color: #0000ff;">window</span><br /> <span style="color: #000000;">53</span> Touchpad driver helper <span style="color: #0000ff;">window</span><br /> <span style="color: #000000;">54</span> igfxtrayWindow<br /> <span style="color: #000000;">55</span> GDI+ <span style="color: #0000ff;">Window</span><br /> <span style="color: #000000;">56</span> Brother MFC-440CN <span style="color: #0000ff;">Printer</span> <span style="color: #0000ff;">on</span> <span style="color: #000000;">192.168</span><span style="color: #000000;">.1</span><span style="color: #000000;">.2</span><br /> <span style="color: #000000;">57</span> SysFader<br /> <span style="color: #000000;">58</span> Program Manager<br /><br />Variables in use<br />================<br /> Procedure Type Value<br /> ==========================<br /> TOLEAUTO:<span style="color: #000000;">SHOWPRINTPREVIEWDIALOG</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: C <span style="color: #ff0000;">"1434464"</span><br /> __OBJSENDMSG<br /> Param <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TOLEAUTO</span><br /> Param <span style="color: #000000;">2</span>: C <span style="color: #ff0000;">"SHOWPRINTPREVIEWDIALOG"</span><br /> HB_EXECFROMARRAY<br /> Param <span style="color: #000000;">1</span>: P <br /> Param <span style="color: #000000;">2</span>: A Len: <span style="color: #000000;">2</span><br /> TACTIVEX&#<span style="color: #000000;">058</span>;SHOWPRINTPREVIEWDIALOG<br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TACTIVEX</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: A Len: <span style="color: #000000;">2</span><br /> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>IENAVIGATE<br /> Param <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TTOOLBAR</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">1</span><br /> TTOOLBAR:<span style="color: #000000;">COMMAND</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">1</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">722022</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TTOOLBAR</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: N <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: N <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">4</span>: N <span style="color: #000000;">722022</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">5</span>: B <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> TWINDOW:<span style="color: #000000;">COMMAND</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">1</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">722022</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TWINDOW</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: N <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: N <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">4</span>: N <span style="color: #000000;">722022</span><br /> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">273</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">1</span><br /> Param <span style="color: #000000;">3</span>: N <span style="color: #000000;">722022</span><br /> _FWH<br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">722022</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">273</span><br /> Param <span style="color: #000000;">3</span>: N <span style="color: #000000;">1</span><br /> Param <span style="color: #000000;">4</span>: N <span style="color: #000000;">722022</span><br /> Param <span style="color: #000000;">5</span>: N <span style="color: #000000;">3</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TWINDOW</span><br /> WINRUN<br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">590726</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">4</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">5</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">6</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">7</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">8</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">9</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">10</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">11</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">12</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">13</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">14</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">15</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">16</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">17</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">18</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">19</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">20</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">21</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">22</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">23</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">24</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">25</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">26</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">27</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">28</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">29</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">30</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">31</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">32</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">33</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">34</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">35</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">36</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">37</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">38</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">39</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">40</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">41</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">42</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">43</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">44</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">45</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">46</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">47</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">48</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">49</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">50</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">51</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">52</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">53</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">54</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">55</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">56</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">57</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">58</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">59</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">60</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">61</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">62</span>: U <br /> TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><br /> Param <span style="color: #000000;">1</span>: C <span style="color: #ff0000;">"ICONIZED"</span><br /> Param <span style="color: #000000;">2</span>: U <br /> Param <span style="color: #000000;">3</span>: U <br /> Param <span style="color: #000000;">4</span>: U <br /> Param <span style="color: #000000;">5</span>: U <br /> Param <span style="color: #000000;">6</span>: B <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> Param <span style="color: #000000;">7</span>: U <br /> Param <span style="color: #000000;">8</span>: B <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> Param <span style="color: #000000;">9</span>: U <br /> Param <span style="color: #000000;">10</span>: U <br /> Param <span style="color: #000000;">11</span>: U <br /> Param <span style="color: #000000;">12</span>: U <br /> Param <span style="color: #000000;">13</span>: U <br /> Param <span style="color: #000000;">14</span>: U <br /> Param <span style="color: #000000;">15</span>: U <br /> Param <span style="color: #000000;">16</span>: U <br /> Param <span style="color: #000000;">17</span>: B <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> Param <span style="color: #000000;">18</span>: U <br /> Param <span style="color: #000000;">19</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TWINDOW</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: U <br /> MAIN<br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: C <span style="color: #ff0000;">""</span><br /><br />Linked RDDs<br />===========<br /> DBF<br /> DBFFPT<br /> DBFBLOB<br /> DBFNTX<br /><br />DataBases in use<br />================<br /><br /> <span style="color: #000000;">1</span>: => testprg RddName: <span style="color: #000000;">DBFNTX</span><br /> ==============================<br /> RecNo RecCount BOF EOF<br /> <span style="color: #000000;">25</span> <span style="color: #000000;">24</span> .F. .T.<br /><br /> Indexes in use TagName<br /><br /> Relations in use<br /><br />Classes in use:<br />===============<br /> <span style="color: #000000;">1</span> ERROR<br /> <span style="color: #000000;">2</span> HASHENTRY<br /> <span style="color: #000000;">3</span> HBCLASS<br /> <span style="color: #000000;">4</span> HBOBJECT<br /> <span style="color: #000000;">5</span> TMUTEX<br /> <span style="color: #000000;">6</span> TINI<br /> <span style="color: #000000;">7</span> TWINDOW<br /> <span style="color: #000000;">8</span> TCONTROL<br /> <span style="color: #000000;">9</span> TICON<br /> <span style="color: #000000;">10</span> TBRUSH<br /> <span style="color: #000000;">11</span> TFONT<br /> <span style="color: #000000;">12</span> TTIMER<br /> <span style="color: #000000;">13</span> TTRAYICON<br /> <span style="color: #000000;">14</span> TSTRUCT<br /> <span style="color: #000000;">15</span> TWEBCLIENT<br /> <span style="color: #000000;">16</span> TSOCKET<br /> <span style="color: #000000;">17</span> TDIALOG<br /> <span style="color: #000000;">18</span> TSAY<br /> <span style="color: #000000;">19</span> TMENU<br /> <span style="color: #000000;">20</span> TMENUITEM<br /> <span style="color: #000000;">21</span> TIMAGELIST<br /> <span style="color: #000000;">22</span> TBITMAP<br /> <span style="color: #000000;">23</span> TREBAR<br /> <span style="color: #000000;">24</span> TTOOLBAR<br /> <span style="color: #000000;">25</span> TACTIVEX<br /> <span style="color: #000000;">26</span> TOLEAUTO<br /> <span style="color: #000000;">27</span> TREG32<br /><br />Memory Analysis<br />===============<br /> <span style="color: #000000;">215</span> <span style="color: #00C800;">Static</span> variables<br /><br /> Dynamic memory consume:<br /> Actual Value: <span style="color: #000000;">0</span> bytes<br /> Highest Value: <span style="color: #000000;">0</span> bytes<br />Destructors disabled! Destructor <span style="color: #0000ff;">of</span> <span style="color: #00C800;">class</span>: <span style="color: #ff0000;">'TOLEAUTO'</span> can<span style="color: #ff0000;">'t be executed.</span></div>[/code:30l8ygz7]
|
ActiveX NO BORDER
|
Hi,How can I put an activeX ona dialog with NO BORDER and with NO SCROLLBAR?The dialog looks like this now:[img:u5fivd5g]http://www.xharbour.net/picture2.jpg[/img:u5fivd5g]while I'd like to have it look like this:[img:u5fivd5g]http://www.xharbour.net/picture2-new.jpg[/img:u5fivd5g]Thanks!Patrick
|
ActiveX NO BORDER
|
Patrick,Are you creating the dialogbox from source code or from resources ?
|
ActiveX NO BORDER
|
[quote="Antonio Linares":fpbbap4l]Are you creating the dialogbox from source code or from resources ?[/quote:fpbbap4l]From code with @ x, ACTIVEX...Patrick
|
ActiveX NO BORDER
|
Patrick,It seems as the Shell.Explorer ActiveX itself is setting those styles.In the Class TActiveX we only use these styles: ::nStyle = nOR( WS_CHILD, WS_VISIBLE )You could try to modify them dinamically calling to:SetWindowLong( oActiveX:hWnd, GWL_STYLE, nXor( GetWindowLong( oActiveX:hWnd, GWL_STYLE ), nOr( WS_BORDER, WS_VSCROLL ) ) ) from the ACTIVATE DIALOG oDlg ON INIT ...
|
ActiveX NO BORDER
|
Antonio,Also, If I press TAB when the cursor is in a field in the activeX, the TAB does not work in the activeX. Tab seems to go to the next field of the WINDOW, instead of the next label/get in the activex.Patrick
|
ActiveX NO BORDER
|
Patrick,Please try this:oActiveX:nDlgCode = DLGC_WANTALLKEYS
|
ActiveX NO BORDER
|
[quote="Antonio Linares":rr1aerw3]Please try this:
oActiveX:nDlgCode = DLGC_WANTALLKEYS[/quote:rr1aerw3]Sorry, that did not work.Patrick
|
ActiveX NO BORDER
|
Patrick,Please provide us your test.prg and tested url, if possible. ThanksOr is it a HTML file on disk ?
|
ActiveX NO BORDER
|
Antonio,[quote="Antonio Linares":364m11ec]Please provide us your test.prg and tested url, if possible.[/quote:364m11ec]Same sample as before:[code:364m11ec]#include "FiveWin.ch"
PROCEDURE Main()
LOCAL oWnd, oActiveX
DEFINE WINDOW oWnd
@ 50, 10 ACTIVEX oActiveX OF oWnd ;
SIZE 380, 170;
PROGID "Shell.Explorer"
oActiveX:nDlgCode = DLGC_WANTALLKEYS
@ 1,2 BUTTON "Fire 'Send' button" OF oWnd;
SIZE 150,20;
ACTION oActiveX:GetProp("Document"):Forms[0]:Submit()
ACTIVATE WINDOW oWnd;
ON INIT oActiveX:Do("Navigate", "http://www.winfakt.be/form_test_1.htm" )
RETURN[/code:364m11ec]So, 2 problems:1. Border and scrollbar in ActiveX2. Tab does not go from field1 to fields2 or in the sample from field1 to submit button. Tab is handled by the WINDOW instead of the ACTIVEX.I also tried to put the "oActiveX:nDlgCode = DLGC_WANTALLKEYS" in the ON INIT of the window, but still no luck.Thanks!Patrick
|
ActiveX NO BORDER
|
Patrick,Please try it with a dialogbox instead of a window.
|
ActiveX NO BORDER
|
[quote="Antonio Linares":3l1iwtye]Please try it with a dialogbox instead of a window.[/quote:3l1iwtye]Still not ok. Please try this sample:[code:3l1iwtye]#include "FiveWin.ch"
PROCEDURE Main()
LOCAL oDlg, oActiveX
DEFINE DIALOG oDlg FROM 0,0 TO 20,70
@ 5,5 ACTIVEX oActiveX OF oDlg ;
SIZE 265, 110;
PROGID "Shell.Explorer"
oActiveX:nDlgCode = DLGC_WANTALLKEYS
@ 7,35 BUTTON "Next" OF oDlg;
SIZE 50,12;
ACTION oActiveX:GetProp("Document"):Forms[0]:Submit()
@ 7,25 BUTTON "Previous" OF oDlg;
SIZE 50,12;
ACTION oActiveX:Do("GoBack")
ACTIVATE DIALOG oDlg CENTER;
ON INIT (oActiveX:Do("Navigate", "http://www.winfakt.be/wf/test.asp" ),;
oActiveX:nDlgCode = DLGC_WANTALLKEYS)
RETURN[/code:3l1iwtye]If you run this, the dialog looks like this:[img:3l1iwtye]http://www.xharbour.net/picture12.jpg[/img:3l1iwtye]If you now press TAB, it looks like this:[img:3l1iwtye]http://www.xharbour.net/picture13.jpg[/img:3l1iwtye]While I expected to have input field 2 to become active.So, 2 problems here;1. Pressing TAB still try's to go from control to control ON the DIALOG, instead of going from field to field in the BROWSER object.2. The Browser object gets repainted and it gets hidden except for the active input field.Patrick
|
ActiveX NO BORDER
|
Patrick,You are missing a ":" here:oActiveX:nDlgCode [b:3sv4slf2]:=[/b:3sv4slf2] DLGC_WANTALLKEYS
|
ActiveX NO BORDER
|
[quote="Antonio Linares":nn9evn1k]You are missing a ":" here:
oActiveX:nDlgCode [b:nn9evn1k]:=[/b:nn9evn1k] DLGC_WANTALLKEYS[/quote:nn9evn1k]Same result with [b:nn9evn1k]:=[/b:nn9evn1k]I think you need to build the app and see for yourself Antonio. <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Patrick
|
ActiveX NO BORDER
|
Patrick,We are doing all kind of tests but no luck up to now. It seems as the ActiveX traps all the events. Please notice that bLostFocus is not executed:[code:3vlo3mcc]
#include "FiveWin.ch"
PROCEDURE Main()
LOCAL oDlg, oActiveX, cEvents := ""
DEFINE DIALOG oDlg FROM 0,0 TO 20,70
@ 5,5 ACTIVEX oActiveX OF oDlg ;
SIZE 265, 110;
PROGID "Shell.Explorer"
oActiveX:bOnEvent = { | event, aParams, pParams | cEvents += EventInfo( event, aParams, pParams, oActiveX ) }
oActiveX:bLostFocus = { || Msgbeep() }
@ 7,35 BUTTON "Next" OF oDlg;
SIZE 50,12;
ACTION oActiveX:GetProp("Document"):Forms[0]:Submit()
@ 7,25 BUTTON "Previous" OF oDlg;
SIZE 50,12;
ACTION oActiveX:Do("GoBack")
ACTIVATE DIALOG oDlg CENTER;
ON INIT (oActiveX:Do("Navigate", "http://www.winfakt.be/wf/test.asp" ),;
oActiveX:nDlgCode := DLGC_WANTALLKEYS )
MemoEdit( cEvents )
RETURN
function EventInfo( event, aParams, pParams, oActiveX )
local cMsg := "Event: " + cValToChar( event ) + CRLF
local n
cMsg += "Params: " + CRLF
for n = 1 to Len( aParams )
cMsg += cValToChar( aParams[ n ] ) + CRLF
next
if event == "BeforeNavigate2"
// MsgInfo( aParams[ 2 ] )
// SetEventParam( pParams, 7, .t. ) // Comment this to allow navigation
endif
return cMsg + CRLF
[/code:3vlo3mcc]
|
ActiveX NO BORDER
|
[quote="Antonio Linares":9bt8yt44]We are doing all kind of tests but no luck up to now. It seems as the ActiveX traps all the events. Please notice that bLostFocus is not executed:[/quote:9bt8yt44]Yes, I also noticed. Strange things happen.Thanks for looking at it.Patrick
|
ActiveX NO BORDER
|
Patrick,We have done some progress <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> 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 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->Now we need to discover where the focus goes when the ActiveX gets the focus...
|
ActiveX NO BORDER
|
Some more research:It seems as the ActiveX has its own Windows handle, different from the TActiveX control:[code:u6y72tmx]
@ 7,15 BUTTON "Test" OF oDlg;
SIZE 50,12;
ACTION MsgInfo( oActiveX:Do( "GetWindow" ) == oActiveX:hWnd )
[/code:u6y72tmx]
|
ActiveX NO BORDER
|
PatrickSee the code below:This code shows how to enter data into one remote .DBF.With xHarbour change TOLEAuto():New() for CreateObject().[code:kgw5sd49]
#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
[/code:kgw5sd49]
Codigo SALVA.ASP
[code:kgw5sd49]
<%
' 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
%>
[/code:kgw5sd49]
If wish to make the test track IExplorer simply enter a command like:[code:kgw5sd49]
http://www.SeuDominio.com.br/salva.asp?campo1=DadosNoCampo1&campo2=DadosNoCampo2
[/code:kgw5sd49]Bye
|
ActiveX NO BORDER
|
Rochinha,Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
ActiveX NO BORDER
|
Thank you Rochinha <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Patrick
|
ActiveX NO BORDER
|
[quote="Patrick Mast":zdjns80f]Thank you Rochinha <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Patrick[/quote:zdjns80f]without broder i dont know more to without scroll only u addin uer HTML <body scroll=no> <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
|
ActiveX NO BORDER
|
[quote:2q3pnkvr]without broder i dont know more to without scroll only u add
in uer HTML
<body scroll=no>[/quote:2q3pnkvr]Perfect! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Thanks you.Patrick
|
ActiveX NO BORDER
|
And about border what u did ?thanks
|
ActiveX NO BORDER
|
[quote="lailton.webmaster":36396p05]And about border what u did ?[/quote:36396p05]No solution for that. As wel as no solution on TAB'ing in a web activeX control.Patrick
|
ActiveX NO BORDER
|
Oh ok thanks if i found something i post herethanks
|
ActiveX NO BORDER
|
Patrick,A temporary workaround is to use just one ActiveX control without other controls, so the focus will not go out of the control.
|
ActiveX Properties
|
All,
How can I set these property using FWH ActiveX?
Using xHarbour I can do:
oMapPoint:Toolbars:Item("Standard"):Visible := .T.
oMapPoint:Toolbars:Item("Navigation"):Visible := .T.
oMapPoint:Toolbars:Item("Drawing"):Visible := .T.
oMapPoint:Toolbars:Item("Location and Scale"):Visible := .T.
where oMapPoint is the activex object.
Thanks,
Randal Ferguson
|
ActiveX Properties
|
Randal ..
See the excat name of the property of your activex,
For instance, I use an Epson OCX and the the actual name of a property is
comm.Comport
So in Xhb I use
Ef:comm.Comport:=2
In FWH I Use
Ef:SetProp("comm.ComPort","2")
Try It
BTW with OleView utility you can see all the names of the properties, methods, error messages if you don't have access to the activex documentation. Ican sedn it to you if you need it. Just send me a PM
Adolfo
|
ActiveX Properties
|
Adolfo,
Thanks for the reply. I know the actual property names and as I indicated I can set the properties using xHabour/CreateActiveX.
However, using FWH I cannot find any option that works as part of the property name is a literal string. Any other ideas?
Thanks,
Randal
|
ActiveX Properties
|
[quote="Randal Ferguson":3bqbyepn]Adolfo,
Thanks for the reply. I know the actual property names and as I indicated I can set the properties using xHabour/CreateActiveX.
However, using FWH I cannot find any option that works as part of the property name is a literal string. Any other ideas?
Thanks,
Randal[/quote:3bqbyepn]
Mmm that's something I don't know.. sorry
I would've done
oMapPoint:SetProp("Toolbars:Item('Standard'):Visible",.T.)
Hope it Helps...
|
ActiveX Properties
|
Adolfo,
<<oMapPoint:SetProp("Toolbars:Item('Standard'):Visible",.T.) >>
I tried this syntax and several others and could not get it to work.
Thanks,
Randal
|
ActiveX Shell.Explorer
|
Hi,
Is there any method to fill get fields with using ActiveX Shell.Explorer?
Thanks.
|
ActiveX Shell.Explorer
|
Antonio,
Any comment?
|
ActiveX Shell.Explorer
|
Hakan,
Sincerelly I have never tried that.
Anyhow if you google for Shell.Explorer there are lots of examples and surely you may find something that we may help you to adapt to Harbour + FWH
|
ActiveX Shell.Explorer
|
Antonio,
I can read and write any webpage with TipClientHttp.
I need to inquery some information from web. But there is a captha in page.
Is there any method?
Thanks.
|
ActiveX Shell.Explorer
|
Hakan,
ufff, that depends on how complex is the catcha
The only way I can think about is to download the catcha as an image and the using GetPixel() read its contents to "analyze" what it says.
|
ActiveX VB with xHarbour
|
Hi all !
oButton := xButton():New( oWnd )
IF !oButton:lOk
oWnd:END()
RETURN NIL
ENDIF
CLASS xButton
DATA oControl
DATA oButton
CLASSDATA lOk Init .F.
METHOD New()
METHOD Activate()
ENDCLASS
METHOD New( oWnd, nId ) CLASS xButton
IF nId != NIL
::oControl := TActiveX():Redefine( nId, oWnd, "MyOCX.myControl" )
ELSE
::oControl := TActiveX():New( oWnd, "MyOCX.myControl" )
ENDIF
IF !Empty( oWnd:hWnd )
::Activate()
ENDIF
RETURN SELF
METHOD Activate()
::oButton := TOleAuto():New( ActXPdisp( ::oControl:hActiveX ) )
RETURN NIL
My questions :
1. Can I get property on MyOCX, like VB
2. Can I create class to call MyOCX property
Areang
|
ActiveX VB with xHarbour
|
Areang,
> 1. Can I get property on MyOCX, like VB
You may use Microsoft OleView to inspect the properties, methods and events of the ActiveX that you are going to use. Another choice is to install if from Microsoft Office built in VBA (macros editor in Word, Excell, etc.) and inspect it from there.
> 2. Can I create class to call MyOCX property
You may use ERROR HANDLER OnError( uParam1 ) to route PRG msgs to Class TActiveX Methods GetProp, SetProp and Do. Please review source\classes\database.prg to see how to use ERROR HANDLER.
|
ActiveX VB with xHarbour
|
Thank.
I will try it.
Areang
|
ActiveX VB with xHarbour
|
Antonio ! Can you help me about this :
I have CoolControls.ocx, viewed by oleview on :
dispinterface _jcFrames {
properties:
methods:
I can see the methods like this :
[id(0x6803000f), propput]
void Caption([in, out] BSTR* rhs);
Please give me sample about this with complete classes.
to call Caption properties
Thank
best Regard
Areang
|
ActiveX VB with xHarbour
|
Areang,
Try these:
[code:3txow3ps]
local cCaption := ""
...
oActiveX:Do( "Caption", cCaption )
MsgInfo( cCaption )
...
MsgInfo( oActiveX:GetProp( "Caption" ) )
...
oActiveX:Do( "Caption", @cCaption )
MsgInfo( cCaption )
[/code:3txow3ps]
|
ActiveX VB with xHarbour
|
Antonio
I Created the Class, still can't put the caption on the frames
and please also ERROR HANDLER ERROR().
Please Help me !
Here is the sample
#include "Fivewin.ch"
FUNCTION Main()
LOCAL oWnd, oFrames
DEFINE Window oWnd
oWnd:setText( "Use JcFrames from CoolControls.ocx" )
oFrames := Framesx():New( oWnd )
/*
To : Antonio
This is Work fine, I want to put caption on this frames
How to create class and use Caption properties
Here are methods on CoolControls.jcFrame, I got from oleview :
[
uuid(4C252B42-CA3D-477E-8A0E-CD2E4AB70B12),
version(1.0),
hidden,
dual,
nonextensible
]
dispinterface _jcFrames {
properties:
methods:
[id(0x68030015), propput]
void FrameColor([in, out] OLE_COLOR* rhs);
[id(0x68030015), propget]
OLE_COLOR FrameColor();
[id(0x68030014), propput, helpstring("Returns/Sets the Fill color for TextBox and Windows style")]
void FillColor([in, out] OLE_COLOR* rhs);
[id(0x68030014), propget, helpstring("Returns/Sets the Fill color for TextBox and Windows style")]
OLE_COLOR FillColor();
[id(0x68030013), propput]
void RoundedCornerTxtBox([in, out] VARIANT_BOOL* rhs);
[id(0x68030013), propget]
VARIANT_BOOL RoundedCornerTxtBox();
[id(0x68030012), propput]
void Enabled([in, out] VARIANT_BOOL* rhs);
[id(0x68030012), propget]
VARIANT_BOOL Enabled();
[id(0x68030011), propput]
void TxtBoxShadow([in, out] jcShadowConst* rhs);
[id(0x68030011), propget]
jcShadowConst TxtBoxShadow();
[id(0x68030010), propput]
void RoundedCorner([in, out] VARIANT_BOOL* rhs);
[id(0x68030010), propget]
VARIANT_BOOL RoundedCorner();
[id(0x6803000f), propput]
void Caption([in, out] BSTR* rhs);
[id(0x6803000f), propget]
BSTR Caption();
[id(0x6803000e), propput]
void Alignment([in, out] AlignmentConstants* rhs);
[id(0x6803000e), propget]
AlignmentConstants Alignment();
[id(0x6803000d), propput]
void Style([in, out] jcStyleConst* rhs);
[id(0x6803000d), propget]
jcStyleConst Style();
[id(0x6803000c), propput]
void TextBoxHeight([in, out] long* rhs);
[id(0x6803000c), propget]
long TextBoxHeight();
[id(0x6803000b), propput]
void TextColor([in, out] OLE_COLOR* rhs);
[id(0x6803000b), propget]
OLE_COLOR TextColor();
[id(0x6803000a), propput]
void TextBoxColor([in, out] OLE_COLOR* rhs);
[id(0x6803000a), propget]
OLE_COLOR TextBoxColor();
[id(0x68030009), propput]
void BackColor([in, out] OLE_COLOR* rhs);
[id(0x68030009), propget]
OLE_COLOR BackColor();
[id(0x68030008), propputref]
void Font([in, out] Font** rhs);
[id(0x68030008), propput]
void Font([in, out] Font** rhs);
[id(0x68030008), propget]
Font* Font();
[id(0x68030007), propget]
Picture* Picture();
[id(0x68030007), propputref]
void Picture([in] Picture* rhs);
[id(0x68030006), propget]
short IconSize();
[id(0x68030006), propput]
void IconSize([in] short rhs);
[id(0x68030005), propput]
void IconAlignment([in, out] IconAlignConst* rhs);
[id(0x68030005), propget]
IconAlignConst IconAlignment();
[id(0x68030004), propget]
jcThemeConst ThemeColor();
[id(0x68030004), propput]
void ThemeColor([in] jcThemeConst rhs);
[id(0x68030003), propget, helpstring("Returns/Sets the Start color for gradient")]
OLE_COLOR ColorFrom();
[id(0x68030003), propput, helpstring("Returns/Sets the Start color for gradient")]
void ColorFrom([in, out] OLE_COLOR* rhs);
[id(0x68030002), propget, helpstring("Returns/Sets the End color for gradient")]
OLE_COLOR ColorTo();
[id(0x68030002), propput, helpstring("Returns/Sets the End color for gradient")]
void ColorTo([in, out] OLE_COLOR* rhs);
[id(0x68030001), propput]
void HeaderStyle([in, out] jcHeaderConst* rhs);
[id(0x68030001), propget]
jcHeaderConst HeaderStyle();
[id(0x68030000), propput]
void GradientHeaderStyle([in, out] jcGradConst* rhs);
[id(0x68030000), propget]
jcGradConst GradientHeaderStyle();
};
*/
oWnd:oClient := oFrames:oControl
Activate Window oWnd
Return NIL
CLASS FRAMESX
DATA oControl
DATA oButton
CLASSDATA lOk Init .F.
ERROR HANDLER ERROR()
METHOD New()
METHOD Activate()
METHOD Install()
METHOD CheckOCX()
ENDCLASS
METHOD New( oWnd,nId ) CLASS FRAMESX
::CheckOCX()
IF !::lOk
MsgInfo( "Error to Install OCX Control" )
RETURN SELF
ENDIF
IF nId != NIL
::oControl := TActiveX():Redefine( nId, oWnd, "COOLCONTROLS.jcFrames" )
ELSE
::oControl := TActiveX():New( oWnd, "COOLCONTROLS.jcFrames" )
ENDIF
IF !Empty( oWnd:hWnd )
::Activate()
ENDIF
RETURN SELF
METHOD Activate()
::oButton := TOleAuto():New( ActXPdisp( ::oControl:hActiveX ) )
RETURN NIL
/*-----------------------------------------------------------------------------------------------*/
METHOD CheckOCX( lAutoInstall )
DEFAULT lAutoInstall := .F.
IF !::lOk
IF IsActiveX( "CoolControls.jcFrames" )
::lOk := .T.
ELSE
IF lAutoInstall .OR. MsgAlert( "Install OCX COntrol Now ?", { "Yes", "No" } ) == 1
MsgRun( "Installing OCX Control", NIL, { || ::Install() } )
ENDIF
ENDIF
ENDIF
RETURN ::lOk
/*-----------------------------------------------------------------------------------------------*/
METHOD Install()
LOCAL cOriginal, cDestination
cOriginal := "CoolControls.ocx"
cDestination := GetSysDir() + "\CoolControls.ocx"
IF !File( cOriginal )
MsgAlert(cOriginal+" file not found")
RETURN NIL
ENDIF
if !File((cDestination))
Copy File &cOriginal TO &cDestination
endif
if File((cDestination))
WinExec( "REGSVR32 " + cDestino + " /s" )
endif
::lOk := IsActiveX( "CoolControls.jcFrames" )
IF !::lOk
MsgInfo( "Error to Register "+cOriginal+" File" )
ENDIF
RETURN NIL
METHOD ERROR( uParam1 )
LOCAL cMsg, nParam, uRet
nParam := PCount()
cMsg := __GetMessage()
IF SubStr( cMsg, 1, 1 ) == "_"
cMsg := SubStr( cMsg, 2 )
ENDIF
/*
How to handle error code start from here
*/
DO CASE
CASE nParam == 0
uRet := "I don't know"
CASE nParam == 1
uRet := "What is this"
ENDCASE
RETURN uRet
|
ActiveX VB with xHarbour
|
Areang,
To set the caption try this:
oActiveX:SetProp( "Caption", "Hello world" )
|
ActiveX VB with xHarbour
|
[code:2kyqc29p]
METHOD ERROR( uParam1 ) CLASS FRAMESX
local cMsg := __GetMessage()
if SubStr( cMsg, 1, 1 ) == "_"
return ::SetProp( SubStr( cMsg, 2 ), uParam1 )
else
return ::GetProp( cMsg )
endif
return nil
[/code:2kyqc29p]
|
ActiveX VB with xHarbour
|
Thank Antonio, It's work now.
Areang
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
ActiveX VB with xHarbour
|
Hi Antonio !
This is the first class was create by me, and so happy.
But can't put the others control on this frames to work with my windows.
How to work together between xHB control and myocx control.
when uncomment this "oWnd:oClient := oFrames:oControl"
the others control can work together, Is that true ?
In VB, I can see the properties position :
Height, Left, Top and Width but I can't see on oleview of them.
Can you help me again about this ?
Thank
Best Regard
Areang
|
ActiveX VB with xHarbour
|
Areang,
>
when uncomment this "oWnd:oClient := oFrames:oControl"
the others control can work together, Is that true ?
>
Yes, because oWnd:oClient fills the entire surface of the window with the control, so if you want to use more controls on it, you can't assign it to oWnd:oClient.
>
In VB, I can see the properties position :
Height, Left, Top and Width but I can't see on oleview of them.
>
Class TActiveX inherits from Class TControl, so you can do:
oActiveX:nTop = ...
oActiveX:nLeft = ...
oActiveX:nWidth = ...
oActiveX:nHeight = ...
|
ActiveX VB with xHarbour
|
Antonio !
On activex.prg, I can see the class :
CLASS TActiveX FROM TControl
there is :
METHOD ReSize( nFlags, nWidth, nHeight ) INLINE ;
ActXSetLocation( ::hActiveX, 0, 0, nWidth, nHeight )
Can I use it for position my frames ?
Or I have to add this :
Class TActiveX inherits from Class TControl, so you can do:
oActiveX:nTop = ...
oActiveX:nLeft = ...
oActiveX:nWidth = ...
oActiveX:nHeight = ...
But where to write of this code below :
( Please you write here or on activex.prg )
This is my code class, next is activex class
#include "Fivewin.ch"
CLASS FRAMESX
DATA oControl
DATA oButton
CLASSDATA lOk Init .F.
ERROR HANDLER ERROR()
METHOD New()
METHOD Activate()
METHOD Install()
METHOD CheckOCX()
ENDCLASS
METHOD New( oWnd,nId ) CLASS FRAMESX
local cCaption := ""
::CheckOCX()
IF !::lOk
MsgInfo( "Error to Install OCX Control" )
RETURN SELF
ENDIF
IF nId != NIL
::oControl := TActiveX():Redefine( nId, oWnd, "COOLCONTROLS.jcFrames" )
ELSE
::oControl := TActiveX():New( oWnd, "COOLCONTROLS.jcFrames" )
ENDIF
::oControl:SetProp( "Caption", "Hello world" )
IF !Empty( oWnd:hWnd )
::Activate()
ENDIF
RETURN SELF
METHOD Activate()
::oButton := TOleAuto():New( ActXPdisp( ::oControl:hActiveX ) )
RETURN NIL
/*-----------------------------------------------------------------------------------------------*/
METHOD CheckOCX( lAutoInstall )
DEFAULT lAutoInstall := .F.
IF !::lOk
IF IsActiveX( "CoolControls.jcFrames" )
::lOk := .T.
ELSE
IF lAutoInstall .OR. MsgAlert( "Install OCX COntrol Now ?", { "Yes", "No" } ) == 1
MsgRun( "Installing OCX Control", NIL, { || ::Install() } )
ENDIF
ENDIF
ENDIF
RETURN ::lOk
METHOD Install()
LOCAL cOriginal, cDestination
cOriginal := "CoolControls.ocx"
cDestination := GetSysDir() + "\CoolControls.ocx"
IF !File( cOriginal )
MsgAlert(cOriginal+" file not found")
RETURN NIL
ENDIF
if !File((cDestination))
Copy File &cOriginal TO &cDestination
endif
if File((cDestination))
WinExec( "REGSVR32 " + cDestination + " /s" )
endif
::lOk := IsActiveX( "CoolControls.jcFrames" )
IF !::lOk
MsgInfo( "Error to Register "+cOriginal+" File" )
ENDIF
RETURN NIL
METHOD ERROR( uParam1 ) CLASS FRAMESX
local cMsg := __GetMessage()
if SubStr( cMsg, 1, 1 ) == "_"
return ::SetProp( SubStr( cMsg, 2 ), uParam1 )
else
return ::GetProp( cMsg )
endif
return nil
Thank
Best Regard
Areang
|
ActiveX VB with xHarbour
|
Areang,
[code:3bf8r0ux]
METHOD New( oWnd, nId, nTop, nLeft, nWidth, nHeight ) CLASS FRAMESX
...
IF nId != NIL
::oControl := TActiveX():Redefine( nId, oWnd, "COOLCONTROLS.jcFrames" )
ELSE
::oControl := TActiveX():New( oWnd, "COOLCONTROLS.jcFrames" )
::oControl:nTop = nTop
::oControl:nLeft = nLeft
::oControl:nWidth = nWidth
::oControl:nHeight = nHeight
ENDIF
...
[/code:3bf8r0ux]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.