WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.2
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

PictureButton Issue

 Keywords:  PictureButton Picture Button BMP Bitmap JPG JPEG Disabled Style

Question:

I have two questions
  1. Can I put a jpg picture on a dialog picterbutton?
  2. Since I think question 1 is impossible. I have created a bmp from my jpg, color, 24 bit. When I use debug tool the pictures come out looking inverted like negative film for a camera. What is the trick to using bmp's? Am I missing special code?
Test009=`115,129,034,046,PICTUREBUTTON,"PictureButton_1",DEFAULT,"",10,99,2,DEFAULT,DEFAULT,"Sample.bmp"`

Answer:

Sorry no. Picturebutton controls only support bitmaps. After the conversion to bitmap, does the image still look okay when viewed on its own (outside of Winbatch)?

NOTE: Your bitmap does not need to be the same size as the Picture Button control. The appropriate stretch or compress is applied to the bitmap, so that the entire image is displayed. However, if the aspect ratio of your control is significantly different from the bitmap’s aspect ratio, your image may appear distorted.

User Reply:

Yes the bitmap looks fine when you double click it in windows explorer. I have tried 16 bit and 24 bit color bmp. The 16 bit look fine in explorer but those come out as solid black in winbatch dialog editor

Answer:

If the Picturebutton has the disabled style setting, that could cause the picture to appear differently. When the disabled 'style' is selected the controls appearance will change to indicate that it cannot receive user input. I recommend removing the 'Disabled' style setting.
Test009=`115,129,034,046,PICTUREBUTTON,"PictureButton_1",DEFAULT,"",10,99,DEFAULT,DEFAULT,DEFAULT,"Sample.bmp"`

Article ID:   W17728
Filename:   PictureButton Issue.txt
File Created: 2009:07:29:11:35:32
Last Updated: 2009:07:29:11:35:32