View Full Version : Themed trackbar does not show selection
Guest
19th July 2008, 21:17
I have discovered that a simple trackbar does not show the selection made with TBM_SETSEL when the desktop is set for Windows XP theme. It does show when the desktop is set for Windows Classic. It also shows in the former case in the debug build.
Does anyone know a workaround to have the selection show for Windows XP theme in non-debug build for Visual Studio 2005.
What a PITA! :)
Sharktooth
27th July 2008, 04:04
maybe you forgot
This message is ignored if the trackbar does not have the TBS_ENABLESELRANGE style?
welcome to the win32 forms controls hell...
Guest
27th July 2008, 05:17
No. Then it wouldn't work for non-themed also.
Sharktooth
27th July 2008, 15:05
dont use it. use non MS trackbar controls.
the internet is full of them.
Guest
27th July 2008, 15:19
Can you point me to one that works in plain vanilla win32, not MFC? Thank you.
stax76
27th July 2008, 17:55
I've searched a couple of minutes but couldn't find any help.
edit:
I've added a manifest file to VirtualDub to force theming, it didn't change the track bar, looks like it's a custom control, you should contact Avery Lee.
Guest
27th July 2008, 18:08
Thank you for looking. I have just written my own this morning after also coming up short in looking for one. :)
I didn't make a whole trackbar, but just a small selection bar that will sit above the existing trackbar (which will have its broken native selection capability turned off).
Sharktooth
28th July 2008, 03:15
seems you're not alone:
http://www.mombu.com/microsoft/windows-programmer-controls/t-selection-range-of-trackbar-control-doesnt-appear-with-windows-xp-styles-600474.html
http://groups.google.com/group/comp.os.ms-windows.programmer.controls/browse_thread/thread/51c9de1bbc7d8fab
you may want to try this: http://webscripts.softpedia.com/script/Forms-and-Controls-C-C/WIN32API-Trackbar-15524.html or this: http://www.attilan.com/2006/11/crystaltrackbar-gradient-trans.php
also have a look here: http://www.jose.it-berater.org/smfforum/index.php?topic=1219.0
time to switch to GTK+, Qt, wxWidgets, Motif...?
Sharktooth
30th July 2008, 03:48
did you find a solution?
im interested in it since i should add a trackbar in megui for x264 compression/speed settings...
LoRd_MuldeR
30th July 2008, 03:50
did you find a solution?
im interested in it since i should add a trackbar in megui for x264 compression/speed ...
Look at DGAVCIndex v1.0.0 Alpha31 and you'll see the solution...
Sharktooth
30th July 2008, 04:03
tnx, ill have a look at it.
edit: it seems im blind, i just cant find the sources.
Guest
30th July 2008, 06:10
No sources released yet.
I'm thinking of switching to wxWidgets. :)
stax76
30th July 2008, 09:04
QT beats wx by far, check out SMPlayer for a demonstration. In both cases you have to be concerned about filesize. It's the price of not using a central framework.
Sharktooth
30th July 2008, 14:41
yep Qt is my favourite too but wx IMHO is still more flexible (and complex to code).
also Qt reuses the local OS forms and controls so the trackbar problem may still exist in windows.
however both are available for linux and windows. so we mwy hope for a dgindex/dgavcindex port for linux....
stax76
30th July 2008, 15:10
wx wraps mostly native widgets, QT don't wrap native widgets.
Sharktooth
31st July 2008, 01:24
uh? i just got confused, wrote Qt instead of wx in the second part of the post.
look at KDE 4, Opera, etc... they're all beautifull... they're all based on Qt.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.