|
-
Jul 8th, 2008, 12:09 PM
#1
[RESOLVED] ToolBar Control graphic bug
Here's what happens when i use some menu on a button.
Has anyone came across this problem?
-
Jul 8th, 2008, 12:12 PM
#2
Re: ToolBar Control graphic bug
I've looked at your images, but I'm not sure what problem you are referring to?
-
Jul 8th, 2008, 12:23 PM
#3
Re: ToolBar Control graphic bug
Are you saying that the image goes black and white instead of colored?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 8th, 2008, 12:43 PM
#4
Re: ToolBar Control graphic bug
 Originally Posted by RobDog888
Are you saying that the image goes black and white instead of colored?

No. That's meant to happen. I'm shifting icons (filters) fill color if user uses a filter or not (like in Oracle for example).
The problem is that second image represents the ToolBar when already LOST FOCUS. It should look... "normal"/unselected, but it still looks like there's a mouse over.
-
Jul 8th, 2008, 12:54 PM
#5
Re: ToolBar Control graphic bug
Oh the dropdown button part of the button is still depressed (not the illness tye of sadness ).
What code can you post to show how you are interacting with the button?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 8th, 2008, 01:10 PM
#6
Re: ToolBar Control graphic bug
It's really simple:
Code:
Private Sub tlb_ButtonMenuClick(Index As Integer, ByVal ButtonMenu As MSComctlLib.ButtonMenu)
Select Case ButtonMenu.key
'few cases...
'few lines of code...
Case "odstrani_filter_iz_prikazanega_seznama"
'this seems to be making the problem
'one String is set to vbNullString and few methods are being called
m_strZadnjiFilter = vbNullString
OdstraniZadnjiFilterIzRegistra
Inicializiraj
PonastaviMeniInIkoneOsvezevanjaInFiltriranja
End Select
End Sub
Does the fact that i'm connecting to the machine where app is being developed, via VPN, helps? Could it be some MSTSC's issue?
-
Jul 8th, 2008, 01:15 PM
#7
Re: ToolBar Control graphic bug
That may be the case as the screen may not be repainting correctly. Can you try moving the form when it is doing that issue and see if it pops up?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 8th, 2008, 02:10 PM
#8
Re: ToolBar Control graphic bug
It stays like that until i pop up the menu again no matter what. I have tried to use DoEvents() before the action, Button.Refresh() after action,... and similar stuff but nothing seems to be working.
It's interesting. If i remove the code button redraws normally after clicking the menu item.
I'll try it on the local machine someday this week to see what happens.
-
Jul 8th, 2008, 02:13 PM
#9
Re: ToolBar Control graphic bug
Then it must be something in your code that is locking it up. With the sample demo code you posted there is not real code in it so I couldnt really say.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 8th, 2008, 02:25 PM
#10
Re: ToolBar Control graphic bug
It's not a sample 
That's what the code does. It sets one string to vbNullString and calls few Procedures. Everything is TOTALLY unrelated to the ToolBar.
Ok. Now i found out, that if i set a pause before the Select Case statement it works - but not always. The longer the pause is the biggest the chance is that button will redraw correctly.
-
Jul 8th, 2008, 02:28 PM
#11
Re: ToolBar Control graphic bug
No, I mean those called procedures are probably exiting out somehow and not letting the button complete its button up redrawing stuff.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 8th, 2008, 02:32 PM
#12
Re: ToolBar Control graphic bug
Possibly. As said. Will try it locally someday this week to see the results.
-
Jul 21st, 2008, 02:20 AM
#13
Re: ToolBar Control graphic bug
Ok. A bit late, but still. It was/is a MSTSC issue. Solved!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|