Print Page | Close Window

Win 7 Vista Messagebox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=16346
Printed Date: 27 September 2024 at 2:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Win 7 Vista Messagebox
Posted By: HenryK
Subject: Win 7 Vista Messagebox
Date Posted: 03 March 2010 at 1:41pm
Hi,
In Windows 7 the skinned messagebox looks strange (Codejock V 13.3, VB 6). Is there a workaround?
 
 
Thanks in advance
Henry



Replies:
Posted By: Boris
Date Posted: 05 March 2010 at 6:55am
Hi
 
I had the same issue. I ended up replacing all my Msgbox routines with a new routine call cjMsgbox.
 
To do this I call it thusly ....
If you need to evaluate the result use  Dim reply As xtremesuitecontrols.TaskDialogCommonButtons
 
cjMsgBox "Error Canceling line from order. Lines must have a status equivalent to  unallocated", "", xtpTaskButtonOk, xtpTaskIconError 
 
' put this in a module
 
Function cjMsgbox (Optional ByVal sTitleText As String, Optional ByVal sMainText As String = "", Optional cmdbtns As TaskDialogCommonButtons, Optional pMainIcon As TaskDialogIcon) As TaskDialogCommonButtons
Dim TaskDlg As xtremesuitecontrols.TaskDialog
 
' ToDo. This needs changing as function was not written with proper thought.

If IsMissing(cmdbtns) Then cmdbtns = xtpTaskButtonOk
If sMainText = "" Then
If sTitleText > "" Then sMainText = sTitleText
sTitleText = "StockBox"
End If
If sTitleText = "" Then sTitleText = "StockBox"

   
   Set TaskDlg = MDIForm1.TaskDialog1 ' controls sits on main form
   
   
    TaskDlg.Reset
   
    'Always look like manifest was used, even if no manifest file is present
    TaskDlg.MessageBoxStyle = True
   
    If Not IsMissing(pMainIcon) Then TaskDlg.MainIcon = pMainIcon
    'From General Tab
    TaskDlg.WindowTitle = sTitleText
    TaskDlg.MainInstructionText = sMainText
    TaskDlg.CommonButtons = cmdbtns

 cjMsgbox = TaskDlg.ShowDialog
   
End Function


-------------
Boris

Product: Xtreme SuitePro (ActiveX) version 16.4.0 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6

VS 2005-2008-2010-2013



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net