DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: monica9612
今日帖子: 0
在线用户: 3
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/4/30 20:06:31
标题:
请问这个是不是VCL Design皮肤的Bug? 浏览:1545
加入我的收藏
楼主: 大家有没有用过XE10里面的VCL design?
我用webbrowser打开视频播放窗体的时候,总是会在右边出现滚动条,这个怎么设定啊
正常界面么问题,但是一旦选择了控件,就会在右边出现滚动条,不管怎么调整都会有,这个要怎么解决呢?
此帖子包含附件:
PNG 图像
大小:174.0K
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/4/30 21:25:58
1楼: 有兄弟知道吗?如果我用其他网站也会出现一样的问题,总是会多出这么一条滚动条
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/4/30 22:11:36
2楼: Is there some property like "Vcl.Forms.TForm.AutoScroll = true"

Indicates whether scroll bars appear automatically on the scrolling windowed control if it is not large enough to display all of its controls. 

If AutoScroll is true, the scroll bars appear automatically when necessary. For example, if the user resizes the control so that some of its controls are partially obscured, scroll bars appear. 

If AutoScroll is false, scroll bars don't appear automatically. In this case, use the HorzScrollBar and VertScrollBar properties to make scroll bars appear.
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/4/30 23:16:26
3楼: emailx45,没有用的,你可以试试下,随便用那个皮肤。
AutoScroll:=false;
HorzScrollbar,VertScrollBar的visible,我都设置为false
但还是依旧会出现的。

而且不管你怎么缩放Form窗口,她还是依然会存在的。
此帖子包含附件:
PNG 图像
大小:131.3K
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/4/30 23:45:17
4楼: 我把Webbrowser放进了panel控件里面,问题依旧,总是会多出这一个滚动条
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/5/1 0:36:33
4楼: try say what is the size (width x height) to your "video" on URL.

the scrollbars will be created by WebBrowser, not for your forms!

then, if you URL content is bigger than WebBrowswer size, the scrollbox will be created because the content is bigger than space to show it.

You see?

in past, some used this: but does not works any more in current webbrowser.

procedure TForm1.WebBrowser1DocumentComplete(ASender: TObject; const pDisp: IDispatch; const URL: OleVariant);
begin
  while WebBrowser1.ReadyState <> READYSTATE_COMPLETE do
    Application.ProcessMessages;
  //
  // changing source-code on HTML
  WebBrowser1.OleObject.Document.Body.Style.OverFlowX := 'hidden';
  WebBrowser1.OleObject.Document.Body.Style.OverFlowY := 'hidden';
end;
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/1 10:59:26
5楼: 应该是换肤的Bug把,我只要用默认的界面,就不会出现这个问题,和是否视频窗口放大没有关系的。
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/1 14:04:01
6楼: 我试了下随便用webbrowser打开那个网站,都会是有这个问题,只要用了她的皮肤控件
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/1 23:49:05
7楼: 还有兄弟知道吗?
----------------------------------------------
-
作者:
男 pp0123 (pp0123) ★☆☆☆☆ -
普通会员
2022/5/2 6:49:15
8楼: 这是W3C定义HTML时出现的老问题.
他们以横向表现优先, 是为了西欧文字的便利性而设.
因此, 任何内容不能被表现时, 就会强制出现纵向扩展.(那怕是一个空字符)
你可以控制你使用的 webbrowser 外层, 
但皮肤你是用他人的, 播放器也是他人的. 
内里任何原因而产生多一个空字符或一纵行一点等, 
你控制不到的那一层就会出现滚动条.

重点是除非有那些代码(不一定是 Pascal 哦), 而且懂得修复, 否则投降吧! 

多说些. W3C这伙人虽是各IT界代表, 但他们都不是码奴出身. 也就是权斗拉关系与纯学历而进升的人. 他们为 Web 定义的语言, 在众多码奴眼中都是垃圾一堆. 直到今天他们也在胡乱修订这些狗屁不通的语言特性. 所以写 Web 是真XX浪费生命的事情. 也因此我们需要 Unigui Intraweb 这些东西.
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/2 13:18:41
9楼: 感谢楼上兄弟的解释,那就意味着我无法有修复这个原因?但是问题是,如果我不用vcl design这个控件的皮肤开启,用系统默认的界面,就一点问题也没有啊
----------------------------------------------
-
作者:
男 pp0123 (pp0123) ★☆☆☆☆ -
普通会员
2022/5/2 16:18:07
10楼: 估计是皮肤把这可视范围压缩了一两点, 肉眼分辨不出的.
一是你自己动手写一个皮肤, 但也可能出现同样问题.
一是你换用别的试试. 通常原生的会比较稳妥.
你可以坚持不投降, 那你要判断代价是否值得, 与有没有取胜的可能.
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/2 19:01:25
11楼: 问题还是出在了迅雷的那个播放器软件里面,修改了下属性,搞定了
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/2 19:56:00
12楼: 也还是要感谢email45x大神,谢谢!
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/5/2 21:12:03
13楼: not for that!
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/2 21:47:55
14楼: 忘记感谢pp0123了,否则我也不知道从迅雷播放器的那个文件里面找问题。谢谢!
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/5/3 5:35:58
15楼: @zhouying

will be possible share your solution?

hug
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 pp0123 (pp0123) ★☆☆☆☆ -
普通会员
2022/5/3 6:14:06
16楼: 恭喜你成功了
----------------------------------------------
-
作者:
男 zhouying (zy) ★☆☆☆☆ -
盒子活跃会员
2022/5/7 21:50:29
17楼: 回emailx45,我查看了下应该是那个迅雷播放器里面的Flash播放器的高度问题,我设置了隐藏,另外添加了如下代码
WebBrowser1.OleObject.Document.Body.Style.OverFlowX := 'hidden';
WebBrowser1.OleObject.Document.Body.Style.OverFlowY := 'hidden';
就可以了。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/5/7 23:18:18
18楼: ok
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行173.8281毫秒 RSS