Hello, Dynamo fellows.
I have shown myself here to ask you whether there is the way to control the newlines and window sizes used in the TaskDialog widnow.
Thankfully, he @Konrad_K_Sobon showed a simple instruction of constructing TaskDialog with typical methods of RevitAPI.
How to Construct a TaskDialog?
Whereas I am struggling with newlines and window sizes (prbly, newlines would be solved by ‘/n’?).
I could not find “window sizes(height/width)” or this sort of things in the member(property).
Could you guys lend hands for me?
The code I modified differentiates from his when it comes to character (Japanese).
I executed my command with:
import clr
clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *
dialog = TaskDialog("日本語タイトル which means 'a Japanese Title'")
dialog.MainInstruction = "ここにメインインストラクションを記載していますが、改行とダイアログのウィンドウの高さや幅を調整できないでしょうか。 which means 'I put a main instruction here and I would like to adjust the newlines and the window's height and width of a TaskDialog.'"
dialog.MainContent = "右下の「OK」ボタンを押してください。 which means 'click the 'OK' right down below.'"
dialog.CommonButtons = TaskDialogCommonButtons.Ok;
dialog.DefaultButton = TaskDialogResult.Ok;
dialog.Show()
#Assign your output to the OUT variable.
OUT = dialog
and the result is: