Postby bokkie » Fri Oct 22, 2010 10:05 am
I copied a theme and noted that each dialog is 388h x 503w. I massaged a bitmap with Snagit to the same dimensions as the dialog. I then added an image control to each dialog and loaded the bitmap into it. I set the top and left properties to 0 and then set the image to "send to back". I then set the auto size property to true. That obviously caused the image to maximise to fill the dialog and all the properties were then visible on top. For some reason, if I did the auto size first and then set "send to back" after, when I moved some other controls on the dialog some took a piece of the bitmap with them! I have a bald spot above my right ear trying to work out a solution to that. I never found a reason but once I set "send to back" first and then auto size I had no further problems. Perhaps it was just my machine...
The ad.bmp which is used as the preview when selecting a theme was easy. I just took a screencap of the welcome dialog and resized it to the same size as another ad.bmp (193 x 150) and the preview is bang on the money.
I also started thinking on something. Say I then made a local edit to a dialog in the project and then reload the theme, the changes I make would then be lost because they'd be overwritten? I never tried it but it sort of ties in with the message you get when you switch themes. So, make your change to the theme dialog only or risk losing local edits. Otherwise, I understand more about themes than I did a day ago.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP