In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Hyperlink control
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
Hyperlink control
Hi,
in my about dlg I've added an Hyperlink control to open a web page.
The browser opens the correct web page. But when I close the browser, the
application is shut down.
This is the code used for the hyperlink ( directly stolen from RichPad
example )
::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(), ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
in my about dlg I've added an Hyperlink control to open a web page.
The browser opens the correct web page. But when I close the browser, the
application is shut down.
This is the code used for the hyperlink ( directly stolen from RichPad
example )
::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(), ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
- ignacio
- Site Admin
- Mensajes: 9253
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Hyperlink control
Giussepe,
Probabily ::Close() is pointing to your main application form instead of the
About dialog.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
> Hi,
>
> in my about dlg I've added an Hyperlink control to open a web page.
>
> The browser opens the correct web page. But when I close the browser, the
> application is shut down.
>
> This is the code used for the hyperlink ( directly stolen from RichPad
> example )
> ::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Probabily ::Close() is pointing to your main application form instead of the
About dialog.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
> Hi,
>
> in my about dlg I've added an Hyperlink control to open a web page.
>
> The browser opens the correct web page. But when I close the browser, the
> application is shut down.
>
> This is the code used for the hyperlink ( directly stolen from RichPad
> example )
> ::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
-
- Mensajes: 15
- Registrado: Mar Feb 01, 2005 2:59 pm
Hyperlink control
Giussepe,
Probabily ::Close() is pointing to your main application form instead of the
About dialog.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
> Hi,
>
> in my about dlg I've added an Hyperlink control to open a web page.
>
> The browser opens the correct web page. But when I close the browser, the
> application is shut down.
>
> This is the code used for the hyperlink ( directly stolen from RichPad
> example )
> ::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Probabily ::Close() is pointing to your main application form instead of the
About dialog.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
> Hi,
>
> in my about dlg I've added an Hyperlink control to open a web page.
>
> The browser opens the correct web page. But when I close the browser, the
> application is shut down.
>
> This is the code used for the hyperlink ( directly stolen from RichPad
> example )
> ::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
Hyperlink control
In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
Ignacio,
I removed the ::Close() leaving only ShellExecute() call.
Then I modified ShellExecute() first param from 0 to the handle of the
dialog box.
The behaviour doesn't change.
I'm using Windows 2000 Pro Service Pack 4
Regards,
> Giussepe,
>
> Probabily ::Close() is pointing to your main application form instead of the
> About dialog.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>> Hi,
>>
>> in my about dlg I've added an Hyperlink control to open a web page.
>>
>> The browser opens the correct web page. But when I close the browser, the
>> application is shut down.
>>
>> This is the code used for the hyperlink ( directly stolen from RichPad
>> example )
>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>
>> --
>> Best regards,
>>
>> Giuseppe Bogetti
>> B.G. Soft
>> Cuneo - Italy
Ignacio,
I removed the ::Close() leaving only ShellExecute() call.
Then I modified ShellExecute() first param from 0 to the handle of the
dialog box.
The behaviour doesn't change.
I'm using Windows 2000 Pro Service Pack 4
Regards,
> Giussepe,
>
> Probabily ::Close() is pointing to your main application form instead of the
> About dialog.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>> Hi,
>>
>> in my about dlg I've added an Hyperlink control to open a web page.
>>
>> The browser opens the correct web page. But when I close the browser, the
>> application is shut down.
>>
>> This is the code used for the hyperlink ( directly stolen from RichPad
>> example )
>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>
>> --
>> Best regards,
>>
>> Giuseppe Bogetti
>> B.G. Soft
>> Cuneo - Italy
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
Hyperlink control
In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
Ignacio,
I removed the ::Close() leaving only ShellExecute() call.
Then I modified ShellExecute() first param from 0 to the handle of the
dialog box.
The behaviour doesn't change.
I'm using Windows 2000 Pro Service Pack 4
Regards,
> Giussepe,
>
> Probabily ::Close() is pointing to your main application form instead of the
> About dialog.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>> Hi,
>>
>> in my about dlg I've added an Hyperlink control to open a web page.
>>
>> The browser opens the correct web page. But when I close the browser, the
>> application is shut down.
>>
>> This is the code used for the hyperlink ( directly stolen from RichPad
>> example )
>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>
>> --
>> Best regards,
>>
>> Giuseppe Bogetti
>> B.G. Soft
>> Cuneo - Italy
Ignacio,
I removed the ::Close() leaving only ShellExecute() call.
Then I modified ShellExecute() first param from 0 to the handle of the
dialog box.
The behaviour doesn't change.
I'm using Windows 2000 Pro Service Pack 4
Regards,
> Giussepe,
>
> Probabily ::Close() is pointing to your main application form instead of the
> About dialog.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>> Hi,
>>
>> in my about dlg I've added an Hyperlink control to open a web page.
>>
>> The browser opens the correct web page. But when I close the browser, the
>> application is shut down.
>>
>> This is the code used for the hyperlink ( directly stolen from RichPad
>> example )
>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>
>> --
>> Best regards,
>>
>> Giuseppe Bogetti
>> B.G. Soft
>> Cuneo - Italy
- ignacio
- Site Admin
- Mensajes: 9253
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Hyperlink control
Giussepe,
You do not need to trap de Onclick evento just put the URL to jump on the
cURL property. BTW the hyperlink class just does the following:
ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
If it does not work on your system I presume there is a problem with
ShellExecute() and Windows 2000.
Please could you test it with just simply including the cURL property.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>
> Ignacio,
>
> I removed the ::Close() leaving only ShellExecute() call.
>
> Then I modified ShellExecute() first param from 0 to the handle of the
> dialog box.
>
> The behaviour doesn't change.
>
> I'm using Windows 2000 Pro Service Pack 4
>
> Regards,
>
>> Giussepe,
>>
>> Probabily ::Close() is pointing to your main application form instead of
>> the
>> About dialog.
>>
>> Regards,
>>
>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>> Hi,
>>>
>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>
>>> The browser opens the correct web page. But when I close the browser,
>>> the
>>> application is shut down.
>>>
>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>> example )
>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>
>>> --
>>> Best regards,
>>>
>>> Giuseppe Bogetti
>>> B.G. Soft
>>> Cuneo - Italy
You do not need to trap de Onclick evento just put the URL to jump on the
cURL property. BTW the hyperlink class just does the following:
ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
If it does not work on your system I presume there is a problem with
ShellExecute() and Windows 2000.
Please could you test it with just simply including the cURL property.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>
> Ignacio,
>
> I removed the ::Close() leaving only ShellExecute() call.
>
> Then I modified ShellExecute() first param from 0 to the handle of the
> dialog box.
>
> The behaviour doesn't change.
>
> I'm using Windows 2000 Pro Service Pack 4
>
> Regards,
>
>> Giussepe,
>>
>> Probabily ::Close() is pointing to your main application form instead of
>> the
>> About dialog.
>>
>> Regards,
>>
>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>> Hi,
>>>
>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>
>>> The browser opens the correct web page. But when I close the browser,
>>> the
>>> application is shut down.
>>>
>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>> example )
>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>
>>> --
>>> Best regards,
>>>
>>> Giuseppe Bogetti
>>> B.G. Soft
>>> Cuneo - Italy
-
- Mensajes: 15
- Registrado: Mar Feb 01, 2005 2:59 pm
Hyperlink control
Giussepe,
You do not need to trap de Onclick evento just put the URL to jump on the
cURL property. BTW the hyperlink class just does the following:
ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
If it does not work on your system I presume there is a problem with
ShellExecute() and Windows 2000.
Please could you test it with just simply including the cURL property.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>
> Ignacio,
>
> I removed the ::Close() leaving only ShellExecute() call.
>
> Then I modified ShellExecute() first param from 0 to the handle of the
> dialog box.
>
> The behaviour doesn't change.
>
> I'm using Windows 2000 Pro Service Pack 4
>
> Regards,
>
>> Giussepe,
>>
>> Probabily ::Close() is pointing to your main application form instead of
>> the
>> About dialog.
>>
>> Regards,
>>
>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>> Hi,
>>>
>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>
>>> The browser opens the correct web page. But when I close the browser,
>>> the
>>> application is shut down.
>>>
>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>> example )
>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>
>>> --
>>> Best regards,
>>>
>>> Giuseppe Bogetti
>>> B.G. Soft
>>> Cuneo - Italy
You do not need to trap de Onclick evento just put the URL to jump on the
cURL property. BTW the hyperlink class just does the following:
ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
If it does not work on your system I presume there is a problem with
ShellExecute() and Windows 2000.
Please could you test it with just simply including the cURL property.
Regards,
"Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>
> Ignacio,
>
> I removed the ::Close() leaving only ShellExecute() call.
>
> Then I modified ShellExecute() first param from 0 to the handle of the
> dialog box.
>
> The behaviour doesn't change.
>
> I'm using Windows 2000 Pro Service Pack 4
>
> Regards,
>
>> Giussepe,
>>
>> Probabily ::Close() is pointing to your main application form instead of
>> the
>> About dialog.
>>
>> Regards,
>>
>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>> Hi,
>>>
>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>
>>> The browser opens the correct web page. But when I close the browser,
>>> the
>>> application is shut down.
>>>
>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>> example )
>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>
>>> --
>>> Best regards,
>>>
>>> Giuseppe Bogetti
>>> B.G. Soft
>>> Cuneo - Italy
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
Hyperlink control
In data Fri, 25 Mar 2005 22:00:42 +0100, Ignacio Ortiz ha scritto:
Ignacio,
Removed the OnClick event but behaviour is the same. Will try and test on
another pc.
Thanks. Regards
> Giussepe,
>
> You do not need to trap de Onclick evento just put the URL to jump on the
> cURL property. BTW the hyperlink class just does the following:
>
> ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
>
> If it does not work on your system I presume there is a problem with
> ShellExecute() and Windows 2000.
>
> Please could you test it with just simply including the cURL property.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
>> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>>
>> Ignacio,
>>
>> I removed the ::Close() leaving only ShellExecute() call.
>>
>> Then I modified ShellExecute() first param from 0 to the handle of the
>> dialog box.
>>
>> The behaviour doesn't change.
>>
>> I'm using Windows 2000 Pro Service Pack 4
>>
>> Regards,
>>
>>> Giussepe,
>>>
>>> Probabily ::Close() is pointing to your main application form instead of
>>> the
>>> About dialog.
>>>
>>> Regards,
>>>
>>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>>> Hi,
>>>>
>>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>>
>>>> The browser opens the correct web page. But when I close the browser,
>>>> the
>>>> application is shut down.
>>>>
>>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>>> example )
>>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> Giuseppe Bogetti
>>>> B.G. Soft
>>>> Cuneo - Italy
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Ignacio,
Removed the OnClick event but behaviour is the same. Will try and test on
another pc.
Thanks. Regards
> Giussepe,
>
> You do not need to trap de Onclick evento just put the URL to jump on the
> cURL property. BTW the hyperlink class just does the following:
>
> ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
>
> If it does not work on your system I presume there is a problem with
> ShellExecute() and Windows 2000.
>
> Please could you test it with just simply including the cURL property.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
>> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>>
>> Ignacio,
>>
>> I removed the ::Close() leaving only ShellExecute() call.
>>
>> Then I modified ShellExecute() first param from 0 to the handle of the
>> dialog box.
>>
>> The behaviour doesn't change.
>>
>> I'm using Windows 2000 Pro Service Pack 4
>>
>> Regards,
>>
>>> Giussepe,
>>>
>>> Probabily ::Close() is pointing to your main application form instead of
>>> the
>>> About dialog.
>>>
>>> Regards,
>>>
>>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>>> Hi,
>>>>
>>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>>
>>>> The browser opens the correct web page. But when I close the browser,
>>>> the
>>>> application is shut down.
>>>>
>>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>>> example )
>>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> Giuseppe Bogetti
>>>> B.G. Soft
>>>> Cuneo - Italy
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
Hyperlink control
In data Fri, 25 Mar 2005 22:00:42 +0100, Ignacio Ortiz ha scritto:
Ignacio,
Removed the OnClick event but behaviour is the same. Will try and test on
another pc.
Thanks. Regards
> Giussepe,
>
> You do not need to trap de Onclick evento just put the URL to jump on the
> cURL property. BTW the hyperlink class just does the following:
>
> ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
>
> If it does not work on your system I presume there is a problem with
> ShellExecute() and Windows 2000.
>
> Please could you test it with just simply including the cURL property.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
>> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>>
>> Ignacio,
>>
>> I removed the ::Close() leaving only ShellExecute() call.
>>
>> Then I modified ShellExecute() first param from 0 to the handle of the
>> dialog box.
>>
>> The behaviour doesn't change.
>>
>> I'm using Windows 2000 Pro Service Pack 4
>>
>> Regards,
>>
>>> Giussepe,
>>>
>>> Probabily ::Close() is pointing to your main application form instead of
>>> the
>>> About dialog.
>>>
>>> Regards,
>>>
>>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>>> Hi,
>>>>
>>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>>
>>>> The browser opens the correct web page. But when I close the browser,
>>>> the
>>>> application is shut down.
>>>>
>>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>>> example )
>>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> Giuseppe Bogetti
>>>> B.G. Soft
>>>> Cuneo - Italy
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Ignacio,
Removed the OnClick event but behaviour is the same. Will try and test on
another pc.
Thanks. Regards
> Giussepe,
>
> You do not need to trap de Onclick evento just put the URL to jump on the
> cURL property. BTW the hyperlink class just does the following:
>
> ShellExecute( 0, "open", ::cURL, 0, 0, SW_SHOWNORMAL )
>
> If it does not work on your system I presume there is a problem with
> ShellExecute() and Windows 2000.
>
> Please could you test it with just simply including the cURL property.
>
> Regards,
>
> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
> news:dcdxweod8u45$.dsnafajqnjrs$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
>> In data Wed, 23 Mar 2005 16:04:03 +0100, Ignacio Ortiz ha scritto:
>>
>> Ignacio,
>>
>> I removed the ::Close() leaving only ShellExecute() call.
>>
>> Then I modified ShellExecute() first param from 0 to the handle of the
>> dialog box.
>>
>> The behaviour doesn't change.
>>
>> I'm using Windows 2000 Pro Service Pack 4
>>
>> Regards,
>>
>>> Giussepe,
>>>
>>> Probabily ::Close() is pointing to your main application form instead of
>>> the
>>> About dialog.
>>>
>>> Regards,
>>>
>>> "Giuseppe Bogetti" <bgsoft@tiscali.it> escribió en el mensaje
>>> news:[email=zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...]zrn5yf6xk3zg.nh8qnswye2mj.dlg@40tude.net...[/email]
>>>> Hi,
>>>>
>>>> in my about dlg I've added an Hyperlink control to open a web page.
>>>>
>>>> The browser opens the correct web page. But when I close the browser,
>>>> the
>>>> application is shut down.
>>>>
>>>> This is the code used for the hyperlink ( directly stolen from RichPad
>>>> example )
>>>>::oTxtWebSite:OnClick := { |oSender, nFlags, nRow, nCol| ::Close(),
>>>> ShellExecute( 0, "open", oSender:cURL, 0, 0, SW_SHOWNORMAL ) }
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> Giuseppe Bogetti
>>>> B.G. Soft
>>>> Cuneo - Italy
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy