如何在delphi firemonkey应用程序中显示来自Web新闻源的最新新闻? [英] How to display the latest news from a web news feed in delphi firemonkey application?

查看:87
本文介绍了如何在delphi firemonkey应用程序中显示来自Web新闻源的最新新闻?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗯,我有一个程序和一个网站,该网站必须包含最新消息,仅使用CSS3格式化,以此类推..由于TWebBrowser,我不知道如何在我的delphi程序中显示最新消息。不是透明的,不能呈现CSS3和HTML5,还有其他方法吗?

Well, I have a program and a website, the website has to part with the latest news, only formatted with CSS3, etc. .. I have no idea how to display in my delphi program the latest news, since the TWebBrowser is not transparent, can not render CSS3 and HTML5, has some other way?

推荐答案

在RSS feed中发布新闻。在您的程序中,使用Indy之类的东西来获取该提要,并使用XML解析器提取重要部分,然后根据需要显示它。您不需要为此嵌入Web浏览器。

Publish your news in an RSS feed. In your program, fetch that feed with something like Indy, extract the important parts with an XML parser, and present it however you want. You don't need to embed a Web browser for that.

您可以装配Web服务器,以使用来自同一RSS feed的输入来生成新闻页面。

You can rig your Web server to generate the news page using input from that same RSS feed.

这篇关于如何在delphi firemonkey应用程序中显示来自Web新闻源的最新新闻?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆