Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Win 7 Vista Messagebox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Win 7 Vista Messagebox

 Post Reply Post Reply
Author
Message
HenryK View Drop Down
Newbie
Newbie


Joined: 06 May 2009
Location: Switzerland
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote HenryK Quote  Post ReplyReply Direct Link To This Post Topic: Win 7 Vista Messagebox
    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
Back to Top
Boris View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 June 2007
Location: United Kingdom
Status: Offline
Points: 179
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boris Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.