WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-10-2010, 02:15 PM
TarkaDahl TarkaDahl is offline
Member
 
Join Date: Mar 2010
Posts: 59
message and ask title = "Vizard"

Hi all,

We are currently using the message and ask functions. However they always display the title "Vizard" and have the vizard logo. Is there any way to change it to display another title and have the icon i set in viz.setOption('viz.window.icon','icon.ico').

If not i will have to display these messages another way, it would just be easier if i didnt have to.

Thanks
Reply With Quote
  #2  
Old 06-10-2010, 02:32 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
This is not possible in the current version of Vizard. Here is some sample code showing how to use the Windows MessageBox function to customize the title:
Code:
import viz
viz.go()

import win32gui
import win32con

# Equivalent to viz.message
win32gui.MessageBox(viz.window.getHandle(),'My Message','My Title',win32con.MB_OK)

# Equivalent to viz.ask
print win32gui.MessageBox(viz.window.getHandle(),'My Question','My Title',win32con.MB_YESNO) == win32con.IDYES
Reply With Quote
  #3  
Old 06-11-2010, 02:19 AM
TarkaDahl TarkaDahl is offline
Member
 
Join Date: Mar 2010
Posts: 59
Hi farshizzo,

Thats exactly what i was looking for.

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC