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.

Hyperlink control

Xailer professional forum in English
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Hyperlink control

Mensaje por Giuseppe Bogetti »

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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9250
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Hyperlink control

Mensaje por ignacio »

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 Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Ignacio Ortiz
Mensajes: 15
Registrado: Mar Feb 01, 2005 2:59 pm

Hyperlink control

Mensaje por Ignacio Ortiz »

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
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Hyperlink control

Mensaje por Giuseppe Bogetti »

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
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Hyperlink control

Mensaje por Giuseppe Bogetti »

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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9250
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Hyperlink control

Mensaje por ignacio »

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
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Ignacio Ortiz
Mensajes: 15
Registrado: Mar Feb 01, 2005 2:59 pm

Hyperlink control

Mensaje por Ignacio Ortiz »

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
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Hyperlink control

Mensaje por Giuseppe Bogetti »

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
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

Hyperlink control

Mensaje por Giuseppe Bogetti »

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
Responder