m**i 发帖数: 650 | 1 设置了panel的property "visiable" = false. 但是panel占的那块空间
还是存在的。假设panel 下面是label. 怎么能panel invisiable的同时,
下面的那个label自动上移,好象panel根本不存在的样子。
大虾指教,多谢! | d*r 发帖数: 238 | 2 another solution.
draw to panels, one with a panel and label, another one with label only.
put both of the panels into a container and set one as dock=center, visible =
true,
and another one as dock = none, visiable = false. then switch the dock and vis
ible
of the two panels
【在 m**i 的大作中提到】 : 设置了panel的property "visiable" = false. 但是panel占的那块空间 : 还是存在的。假设panel 下面是label. 怎么能panel invisiable的同时, : 下面的那个label自动上移,好象panel根本不存在的样子。 : 大虾指教,多谢!
| n*********g 发帖数: 75 | 3 如果是web的话, label会自动上移
【在 m**i 的大作中提到】 : 设置了panel的property "visiable" = false. 但是panel占的那块空间 : 还是存在的。假设panel 下面是label. 怎么能panel invisiable的同时, : 下面的那个label自动上移,好象panel根本不存在的样子。 : 大虾指教,多谢!
| m**i 发帖数: 650 | 4 抱歉,还有一点前提条件偶没有说清楚。所有这些Panel,label是在
一个大Table的一个cell中。
如图:
__________________________________________________________
| cell1 |
|_________________________________________________________|
| | |
| | (Cell3) |
| | Panel |
| Cell2 | |
| |
【在 d*r 的大作中提到】 : another solution. : draw to panels, one with a panel and label, another one with label only. : put both of the panels into a container and set one as dock=center, visible = : true, : and another one as dock = none, visiable = false. then switch the dock and vis : ible : of the two panels
| m**i 发帖数: 650 | 5 多谢,是Web form的。但如果这些panel,label是在一个大Table中。
实际上属于tabel的一个Cell,怎么办呢?
thanks!
【在 n*********g 的大作中提到】 : 如果是web的话, label会自动上移
| n*********g 发帖数: 75 | 6 put panel out of the or , it works fine with me.
【在 m**i 的大作中提到】 : 多谢,是Web form的。但如果这些panel,label是在一个大Table中。 : 实际上属于tabel的一个Cell,怎么办呢? : thanks!
| m**i 发帖数: 650 | 7 or 不就是table的设定吗?
Panel放在外面,就违反了Panel是Table cell的前提
条件了吧?
或者我理解的问题,请再解释。
多谢!
还有一个问题,Panel如果是Web类型,是不是只可以Flow Layout?
不能让其中的Button, Label排置的更漂亮一些,例如上下排列?
多谢!
【在 n*********g 的大作中提到】 : put panel out of the or , it works fine with me.
| n*********g 发帖数: 75 | 8 just tested, put Panel inside works too.
【在 m**i 的大作中提到】 : or 不就是table的设定吗? : Panel放在外面,就违反了Panel是Table cell的前提 : 条件了吧? : 或者我理解的问题,请再解释。 : 多谢! : 还有一个问题,Panel如果是Web类型,是不是只可以Flow Layout? : 不能让其中的Button, Label排置的更漂亮一些,例如上下排列? : 多谢!
| s***d 发帖数: 14 | 9 can be put outside of tr, td, and you can also hide tr, td directly with
out using or .
you may need check your machine.config or web.config for since Mac
may interpret it as which will give your some headaches.
running them as server control will not just 'hide' them, but instead not even
send back to client's browser.
【在 m**i 的大作中提到】 : or 不就是table的设定吗? : Panel放在外面,就违反了Panel是Table cell的前提 : 条件了吧? : 或者我理解的问题,请再解释。 : 多谢! : 还有一个问题,Panel如果是Web类型,是不是只可以Flow Layout? : 不能让其中的Button, Label排置的更漂亮一些,例如上下排列? : 多谢!
|
|
|
|
|
|
| | | | |
|