Win 7 Vista Messagebox |
Post Reply |
Author | |
HenryK
Newbie Joined: 06 May 2009 Location: Switzerland Status: Offline Points: 4 |
Post Options
Thanks(0)
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
|
|
Boris
Senior Member Joined: 21 June 2007 Location: United Kingdom Status: Offline Points: 179 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |