Swt获取滚动条滚动的距离(怎么获取滚动条上的值)

http://www.itjxue.com  2023-02-19 17:33  来源:未知  点击次数: 

java swt table中固定第一列不随滚动条滚动如何实现?

好像没办法实现的,我曾经还想有两行表头呢,这玩意太死了,一点都不灵活。

SWT 添加滚动条问题

思路是没啥问题的,你是滚动菜单没出来是吧。

滚动菜单你要这样写,创建滚动菜单scrolledComposite之后,再创建一个parent,然后scrolledComposite.setContent(parent);

parent.setSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT));

然后parent记得设置layout

这样菜单才会显示,然后循环出来的composite的父组件都要设置成parent。

SWT 怎么在CTabItem里添加滚动条

不知道你是在问什么。

如果是你想问怎么控制:ctabItem可以用setcontrol来控制一个带有滚动条的scrollcomposite

还是想问点什么,问个问题都不能把问题描述得清楚点。

想用swt写一个滚动条,请高手指教,感激中....

安装下面的做发肯定能出来!function getIndex(el) {

ind = null;

for (i=0; idocument.layers.length; i++) {

whichEl = document.layers[i];

if (whichEl.id == el) {

ind = i;

break;

}

}

return ind;

}function arrange() {

nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;

for (i=firstInd+1; idocument.layers.length; i++) {

whichEl = document.layers[i];

if (whichEl.visibility != "hide") {

whichEl.pageY = nextY;

nextY += whichEl.document.height;

}

}

}function initIt(){

if (!ver4) return;

if (NS4) {

for (i=0; idocument.layers.length; i++) {

whichEl = document.layers[i];

if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";

}

arrange();

}

else {

divColl = document.all.tags("DIV");

for (i=0; idivColl.length; i++) {

whichEl = divColl(i);

if (whichEl.className == "child") whichEl.style.display = "none";

}

}

}function expandIt(el) {

if (!ver4) return;

if (IE4) {

whichEl = eval(el + "Child");

if (whichEl.style.display == "none") {

whichEl.style.display = "block";

}

else {

whichEl.style.display = "none";

}

}

else {

whichEl = eval("document." + el + "Child");

if (whichEl.visibility == "hide") {

whichEl.visibility = "show";

}

else {

whichEl.visibility = "hide";

document.all.cxc.src = "Img/Personal_True_1_1.gif";

}

arrange();

}

}

java求助:如何让swt中Browser控件的滚动条紧贴底部?

原来有做过C/S聊天系统 大概如下 private StyledDocument showout = null;private JScrollPane jScrollPane = null;private JTextPane jTextPane = null; 创建时jScrollPane.setViewportView(getJTextPane()); 应用时showout = jTextPane.getStyledDocument();showout.insertString(showout.getLength(), ShowTime

.showTime()

+ "\t"

+ dm.getFromUser().getNickname()

+ "\t下线了...\n", null); jTextPane.setCaretPosition(showout.getLength());该方法把新输入的内容接到已输入内容的尾部

请教SWT中StyleText滚动条的问题

你把 滚动条样式写页面,那个引用了 样式表里 应该 是没 问题的,可以正常 显示的,不行的话 你可以 引用2 个样式 吗 例如: 希望可以帮你解决掉!

(责任编辑:IT教学网)

更多

推荐CorelDraw教程文章