Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28701 Discussions

Button controls that disappear behind Picture controls

acar
Beginner
757 Views
This may be a VS issue but I'd thought I raise it here to see if anyone in the community knows a way round it. I want to create a dialog that is filled with a picture and has button controls on top. I've created a picture control for my dialog and then created some buttons. However when I move the buttons over the picture control they either disappear or are visible but can't then be selected in the resource editor. I guess what I need is the functionality to tell the editor to put the picture control behind all other controls. Any views?
0 Kudos
1 Solution
anthonyrichards
New Contributor III
757 Views
0 Kudos
7 Replies
John_B__Walter
Beginner
757 Views
In the resource editor, you should be able to just "tab" through the various items in the dialog until you get to the one you're interested in, even if it's behind another item.

also, you can reorder the tab sequence of items in the dialog with Ctrl" D
0 Kudos
acar
Beginner
757 Views
Thanks John, yes I can tab through the items as you say. Unfortunately the buttons don't display when I run the application so I'm guessing that what I want to do is not possible. I've got round this by making sure the background of my picture is the same grey as the dialog and then by placing the buttons to the side of the picture the final results looks like what I intended to do, i.e. a picture with buttons on top.
0 Kudos
John_B__Walter
Beginner
757 Views
Quoting acar
Thanks John, yes I can tab through the items as you say. Unfortunately the buttons don't display when I run the application so I'm guessing that what I want to do is not possible. I've got round this by making sure the background of my picture is the same grey as the dialog and then by placing the buttons to the side of the picture the final results looks like what I intended to do, i.e. a picture with buttons on top.

Have you tried setting the picture/image to be "Transparent" (last property under "Appearance")?
0 Kudos
anthonyrichards
New Contributor III
758 Views
0 Kudos
acar
Beginner
757 Views
Okay thanks to both John and Anthony. The solution I used was based on tab order. It seems if I make the picture the first in the tab list then the desired result is seen in my application. It is a little annoying though that in the resource editor even with this order, once the buttons have been moved over the picture you can't get hold of them again with the mouse.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
757 Views
Quoting acar
It is a little annoying though that in the resource editor even with this order, once the buttons have been moved over the picture you can't get hold of them again with the mouse.

Hint #1: Ctrl+Click starts the tab order setting from the selected control onwards (not from 1)

Hint #2: A much less error-prone method is to open the .rc file in text mode, and adjust the order of controls in the dialog by cutting & pasting appropriate lines.
0 Kudos
acar
Beginner
757 Views
Seems a good idea to work on the text file. I shall look into this next time I have a similar problem. Thanks.
0 Kudos
Reply