Página 1 de 1

Hyperlink control

Publicado: Mié Mar 23, 2005 2:53 pm
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

Hyperlink control

Publicado: Mié Mar 23, 2005 4:04 pm
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

Hyperlink control

Publicado: Mié Mar 23, 2005 4:04 pm
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

Hyperlink control

Publicado: Jue Mar 24, 2005 12:00 pm
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

Hyperlink control

Publicado: Jue Mar 24, 2005 12:00 pm
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

Hyperlink control

Publicado: Vie Mar 25, 2005 10:00 pm
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

Hyperlink control

Publicado: Vie Mar 25, 2005 10:00 pm
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

Hyperlink control

Publicado: Vie Mar 25, 2005 10:42 pm
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

Hyperlink control

Publicado: Vie Mar 25, 2005 10:42 pm
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