Is there an API to change the PowerPoint slide show window background color from black? - vba

When a PowerPoint presentation is run in a slide show window that is not the same aspect ratio as the presentation design, black bars appear at the top and bottom or left and right (depending on the window size). For example, when presenting a 16:9 deck on to a 4:3 display, black bars appear above and below the content.
I am trying to change the default color from black.
The VBA object model for SlideShowWindows does not appear to have a property to do this.
I have checked the Win API for SetSysColors (user32.dll) and this doesn't appear to affect the slide show window background color either.
Is there a way to override this color?

There's no way to change the black bars that appear in this situation.

Related

How to align the bottom of a UIView with the bottom of the screen always

I want a background image to always be aligned with the bottom of the screen regardless of screen size, iOS Version, or Personal Hotspot messages etc. But none of the interface builder alignment options seem to work in every case.
I have 2 different sized images to fit 3.5' and 4' retina which change via code but their alignment is always thrown off by 'Personal Hotspot' and other messages changing the size of the parent view.
My images are the size of the screen and should fill the whole screen always. There is a black area where tab bar and status bar will overlay.
There are buttons aligned with the background and everything gets thrown out by messages that resize the parent view.
I want the bottom of the UIImageView to be aligned with the bottom of the screen always.
have you tried the contentMode property?
theImageView.contentMode = UIViewContentModeBottom;
There is also a menu item for this in interface builder if you prefer to set it there.
then if you are using auto layout, simply add a bottom space constraint from your image view to the bottom layout guide.
If you're not using auto layout, a fixed bottom margin on the autoresizing mask should do the trick.

Double buffer getting colors a little off

I am using an inherited TableLayoutPanel with DoubleBuffered set to true. The problem is that my background color of the TableLayoutPanel is AliceBlue, but any group boxes are a noticeably darker blue--enough to stand out. If I take a screen shot and paste (e.g. mspaint), the screen shot shows them being the same. The group box doesn't stand out in the screen shot. If I turn off DoubleBuffered, I don't see these group boxes standing out as being a darker blue.
It's impossible for me to post a screen shot, because any screen shot will show the group box background the same as the background.
How can I use double buffering and not have group boxes show up a different brightness than the parent's background?

XAML Theme Brushes - Switching Dynamically, cursor doesn't change

First Off, I found this extremely useful page on theme brushes:
http://metro.excastle.com/xaml-system-brushes
So Roughly, on startup for WinRT/XAML I am setting my theme brush for a textbox in a stylesheet:
Foreground = TextBoxDisabledForegroundThemeBrush
Background = TextBoxDisabledBackgroundThemeBrush
Which at run time makes the textbox appear as: white border, transparent background and grey text. Which I was hoping it would make it transparent, white border and white text.
On my Tapped event, I change the textbox to:
Foreground = TextBoxButtonPressedForegroundThemeBrush
Background = TextBoxButtonPressedForegroundThemeBrush
Which is supposed to be black background, white text and white border. Which seems right, but the cursor is back and you cannot see it.
First question is, am I doing this right to change my text color? I want to change the textbox so once it is selected it stays a changed color. I think this is correct. But I am not sure if I should be setting Foreground or maybe a Font Style instead?
Unfortunately you can't change caret color so if you want your TextBox editable - you should keep the background white or otherwise light. Otherwise, controlling the look of your control in its various states is best done using VisualStateManager and that is easiest to manipulate using Blend.

Picture Box and Form Transparency

Maybe I am missing something, but is it the case that when you set a pictureboxes background to transparent, all it really does is set it to the same color as the forms background?
What I am trying to do is draw an animation for the benefit of this, a bouncing ball - which I paint on the form, then overlay that with a picture frame. End result should be a bouncing ball in a picture frame, I should mention that the picture frame does not have a straight edge, so it is not possible to arrange 4 picture boxes in a frame. The ball needs to vanish behind the frame to change color and then magically bounce back out.
I have tried:
1.Setting the picture box background to pink and then key out the same pink, this basically cuts away everything, including that which is behind the picture box
2.Setting the picture box to transparent, this just displays the picture box background as the same color as the forms background.
3.I have tried painting the image in a rectangle, this had the same effect as drawing it in a picture box.
I am not sure what I am doing wrong, I am wondering if there is any other ways I could try or if someone has made a custom control or library that supports transparency?
Try using a Panel with the background image set. This is because; as you said: the transparent option only takes the backcolour of the parent.
After doing some more in depth research I solved this by drawing both the images to the form using PaintEventArgs and me.paint
Making each image transparent using:
Dim TestImage as Bitmap
TestImage.MakeTransparent(<Transparency Color>)
Thank you to both of you for your replies though.
Hmm... If You want to use Picturebox and get a transparent image,
Try to set picturebox's background as your 'Ball' (probably you need an image editor).
and set picturebox transparent. It worked for me (VS Express 2010) once.

Is it possible to programatically set Petrel's Window3D's background color?

Is it possible to programatically set Petrel's Window3D's background color?
I saw that you can use the ISettingsInfo to get/set the color, but I am wanting to know how to make the window's background update.
Beginning in 2012.1 you can get (or set) the background color for a Window3D by querying for the appropriate IColorInfoFactory and getting the ColorInfo instance for the window in question. However, this only applies when the window is toggled to its non-black state.
The Petrel 3D Window's "Change background color" function toggles between black and the color specified in the window's Settings tab. Unfortunately, the ColorInfo API only exposes that color from the Settings tab, so as of 2012, there is no way to know whether the window is currently toggled to a black background or to the specified color.