Hello,
A customer ask me to integrate a Html file in the right size of a Dialog .
How to ??
I suppose i have to use activex .
How to insert this control in a dialog (not a window) .
Thanks
Integrate HTML in a dialog
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Integrate HTML in a dialog
Jack,
Yes, you have to use an ActiveX.
There is a working example in FWH\samples\webexp.prg
To include it in a resource dialog, use "TACTIVEX" as the control name, similar as we do with "TWBROWSE" or "TXBROWSE".
You can review the ActiveX documentation from the FiveTech's wiki:
http://wiki.fivetechsoft.com/doku.php?i ... ds_activex
http://wiki.fivetechsoft.com/doku.php?i ... s_tactivex
Yes, you have to use an ActiveX.
There is a working example in FWH\samples\webexp.prg
To include it in a resource dialog, use "TACTIVEX" as the control name, similar as we do with "TWBROWSE" or "TXBROWSE".
You can review the ActiveX documentation from the FiveTech's wiki:
http://wiki.fivetechsoft.com/doku.php?i ... ds_activex
http://wiki.fivetechsoft.com/doku.php?i ... s_tactivex
Re: Integrate HTML in a dialog
Antonio,
Thanks for this help, it is working .
Does this control responce on this events : ON CLICK or ON Double Click .
I want to open a HTML Editor when the user click or double click on the control .
Thanks
Thanks for this help, it is working .
Does this control responce on this events : ON CLICK or ON Double Click .
I want to open a HTML Editor when the user click or double click on the control .
Thanks
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Integrate HTML in a dialog
Jack,
Once the ActiveX is running, it is in control and we can not use oActiveX:bLClicked, double click, etc.
A solution would be to have a button close to the ActiveX and when clicked call to your HTML editor.
Another posibility is to detect the click on a <a ref> in the HTML and process the ActiveX "BeforeNavigate2" event.
Once the ActiveX is running, it is in control and we can not use oActiveX:bLClicked, double click, etc.
A solution would be to have a button close to the ActiveX and when clicked call to your HTML editor.
Another posibility is to detect the click on a <a ref> in the HTML and process the ActiveX "BeforeNavigate2" event.