cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

你能调整单选框的大小吗?

SDF1
Super User

大家好,

 

我一直在寻找是否可以调整单选框或单选框所在的面板框的大小。 到目前为止,似乎只有当面板框包含列表框而不是单选框时才可以调整面板框的大小。 如果您在 Panel Box() 或 Radio Box() 级别执行此操作,则面板框中的内容为空。 如果将 Radio Box() 定义为变量,说“rb”,然后调用 rb << Set width(xxxx),什么也不会发生。

 

我希望更改弹出窗口中单选框的宽度,也可能更改单选框 () 的环绕设置。

 

任何帮助深表感谢。

 

谢谢!,

DS

 

这是我正在使用的一些示例代码,用于尝试更改宽度。

Names Default To Here( 1 );

nwin = New Window( "This is a window",
 Panel Box( "Options", rb = Radio Box( {"Option A", "Option B", "Option C"} )  ) 
);
Wait(2);
rb<

This post originally written in English (US) has been computer translated for you. When you reply, it will also be translated back to English (US).

2 REPLIES 2
txnelson
Super User

回复:你能调整单选框的大小吗?

这里有两种改变宽度的方法。

undefined

脚本索引中详细介绍了可以传递给对象的所有消息。寻找 Panel Box 或 Radio Box

Names Default To Here( 1 );

nwin = New Window( "This is a window",
 Panel Box( "Options",
  H List Box(
   rb = Radio Box(
    {"Option A", "Option B", "Option C"}
   ),
   Spacer Box( size( 300, 1 ) )
  )
 )
);

// or using a non printable character

nwin = New Window( "This is a window",
 Panel Box( "Options",
  rb = Radio Box(
   {"Option A        \!t", "Option B", "Option C"}
  )
 )
);

This post originally written in English (US) has been computer translated for you. When you reply, it will also be translated back to English (US).

SDF1
Super User

回复:你能调整单选框的大小吗?

你好@txnelson ,

 

感谢您提供有关如何更改宽度的示例。 出于美学原因,在我正在处理的实际窗口中,我想缩小宽度,然后让单选按钮后的文本换行到下一行。 根据我在我的脚本指南和在线帖子中阅读的内容,单选框的那个方面不是一个选项。 最终,我希望能够对文本框执行类似的操作,您可以在其中发送 <

 

谢谢!,

DS

This post originally written in English (US) has been computer translated for you. When you reply, it will also be translated back to English (US).