I assume with the majority of 3d people having a 2 monitor setup, I was wondering if it's possible to hook into the message box created and move it's position?
Forum topic · General Scripting
messagebox position control
By 3dwannab · 2017-05-23
Description
Comments (4)
3dwannab · 2017-06-16
I've been toyin around with a .net messagebox but I've came into the same problem where there's no way to position the messagebox.
struct ST_customMessageBox
(
fn fn_dotNetMsgBox caption:"Default Caption" msg:"Default Message" iconType:#None buttonType:#YesNoCancel =
(
mb = DotNetClass "MessageBox"
icon = (execute("(DotNetClass \"MessageBoxIcon\")." + iconType))
button = (execute("(DotNetClass \"MessageBoxButtons\")." + buttonType))
result = mb.show msg caption button icon
)
)
customMessageBox = ST_customMessageBox()
answer = customMessageBox.fn_dotNetMsgBox caption:"Caption you would like ?" msg:"Message goes here .\n\n2nd line goes here ." iconType:#Question buttonType:#YesNoCancel
if answer == "Yes" then format "Yes pressed\n"
if answer == "No" then format "No pressed\n"
if answer == "Cancel" then format "Cancel pressed\n"
3dwannab · 2017-05-23
Would there be any good examples of such? It would be nice to have it as a function so I could control the contents, title etc.
.
miauu · 2017-05-23
It will be a regular rollout where you can put labels to show text, images, etc. Put the creation of the rollout in a function and pass the parameters that you want.
.
miauu · 2017-05-23
Why not use your own messagebox? You can set its position, size, color, etc.