Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / October 2006

Tip: Looking for answers? Try searching our database.

How do I get a bitmap from the theme?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 30 Oct 2006 00:48 GMT
Hi;

I created a control and I think I should get the bitmaps it uses from the
theme. How do I set that up?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Walter Wang [MSFT] - 30 Oct 2006 08:28 GMT
Hi David,

A theme can consist of a combination of a css file and one or many skin
files to control how ASP.NET server controls are rendered. A skin file
looks a bit like ASP.NET WebForm in that they contain server control
definitions and are used to alter the visual appearance of ASP.NET
elements.

For a control, whether a theme is used or which theme is used is totally
transparent, the control has some additional properties set using the skin
file. For example, if your control have a BackgroundImageUrl property and
it's been set in the applied skin, you will get this by reading the
property.

Since your question is rather brief, I'm not sure if I fully understood
your question. Please feel free to reply here if anything is unclear.

Sincerely,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 30 Oct 2006 18:50 GMT
Hi;

I noticed that most themes have an images directory that has bitmaps for the
tree control. If I create a control that needs 4 bitmaps, how can I have it
get the default image from APP_Themes\dave\images and use those?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi David,
>
[quoted text clipped - 38 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 31 Oct 2006 06:53 GMT
Hi David,

Based on my understanding, those images are used by the CSS or Skin of the
theme. If your control needs 4 bitmaps for different states, I believe you
will need 4 properties to assign these 4 bitmaps to your control. For your
control, you will just access the properties to get the bitmaps.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.