messagebox position control

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?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
3dwannab's picture

I've been toyin around with a

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's picture

Would there be any good

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's picture

.

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's picture

.

Why not use your own messagebox? You can set its position, size, color, etc.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.