垂直滚动条可水平滚动 [英] vertical scrollbar to scroll horizontally

查看:131
本文介绍了垂直滚动条可水平滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以某种方式可以使垂直滚动条水平滚动吗?

Is it somehow possible to make the vertical scrollbar scroll horizontally?

推荐答案


是否有可能制作垂直滚动条水平滚动?
Is it somehow possible to make the vertical scrollbar scroll horizontally?



你在谈论 JScrollBar ?它有一个方向属性...

Are you talking about a JScrollBar? It has an orientation property ...



你在谈论一个 JScrollBar ?它有一个方向属性...
Are you talking about a JScrollBar? It has an orientation property ...



我不认为那是'它;方向只是告诉JScrollBar如何显示:

水平或垂直。只有一个滚动条会在事件被移动时触发事件

并且用户可以自由地解释这些事件。虽然

OP有什么想法,但我有点好奇......


亲切的问候,


Jos

I don''t think that''s it; the orientation simply tells the JScrollBar how to display:
horizontally or vertically. Just a scrollbar fires events when it has been moved
and the user is free to interpret those events. I''m a bit curious though what the
OP has in mind ...

kind regards,

Jos


这是一个什么样的笑话?你想制作一个程序,你点击垂直滚动条,它会水平滚动它?


我曾经说过一个看似简单对话框的应用程序,它问了一个问题你赞成比尔克林顿正在做的工作吗?它有两个按钮,一个说是的,我做的。另一个人说:不,我不是。有趣的是当你将鼠标移向否时。按钮它会远离鼠标。你永远不能点击它,因为它会移开。这显然是一个笑话程序,但仍然非常聪明。
What is it like a joke or something? You want to make a program where you click on a vertical scroll bar and it scrolls it horizontally?

I once say an application that looked like a simple dialog box, it asked the question "Do you approve of the job Bill Clinton is doing?" It had two buttons, one said "Yes, I do." the other said "No, I don''t." The funny part was when you moved your mouse toward the "No" button it would move away from your mouse. You could never click on it because it would move away. It was obviously a joke program but still pretty clever.


这篇关于垂直滚动条可水平滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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