IonicWind Software

IWBasic => GUI Central => Topic started by: ckoehn on March 08, 2010, 10:37:10 AM

Title: XP themed scrollbars
Post by: ckoehn on March 08, 2010, 10:37:10 AM
How do you show and XP themed scrollbar when you make a scrollbar control?

CONST TypeVScroll=2

CONTROL win,@SCROLLBAR,"",80,120,20,120,@TABSTOP|@CTSCROLLVERT,TypeVScrol

This only show a normal scrollbar.

Thanks,
Clint
Title: Re: XP themed scrollbars
Post by: sapero on March 08, 2010, 11:30:32 AM
Copy a hidden file c:\windows\WindowsShell.Manifest to the directory with your program, and then rename the manifest file to yourprogram.exe.manifest.
The hidden flag can be removed.
Optionally you could embed the manifest file as a resource in your program. Set resource type to 24, resource id to 1.
Title: Re: XP themed scrollbars
Post by: ZeroDog on March 08, 2010, 01:34:51 PM
QuoteOptionally you could embed the manifest file as a resource in your program. Set resource type to 24, resource id to 1.

Thanks for that tidbit.  I was just wondering if there were a way to include the manifest in the binary.  :)
Title: Re: XP themed scrollbars
Post by: ckoehn on March 08, 2010, 01:40:20 PM
Thanks sapero.  That worked.

Later,
Clint