2011-07-14 12:05 UTC
ImageCombo to select colors: Problems and Questions
Hello,
This is a continuation of
{2}
The program has been renamed to ComboTest and now uses an ImageCombo to select colors which is my reason for starting this new topic.
System:
Bricscad 11.4.2
Windows XP
OpenDCL 6.0.2.4
Files:
ComboTest.lsp
ComboTest.odcl
ComboTest_Images.zip
1.
After starting the program two problems are immediately apparent. The first one is that the ImageCombo shows the correct image but not the correct text.
2
The second obvious problem is that the text in the TextBox has been selected. This seems a different manifestation of the problem described here:
{2}
It would seem that the first control in the tab order is somehow triggered in Bricscad.
3.
After selecting 'Red' two new problems appear:
Both the image and the text in the ImageCombo are marked with a blue background/'overlay' (this may depend on the current theme). This obscures the color swatch. If you click behind the text its blue background disappears but the blue 'overlay' remains for the image portion. Clicking outside the dialog will clear the image. Is there a way to clear this automatically?
4.
The other new problem:
The OnSelChanged event always returns -1 for ItemIndexOrCount.
5.
Selecting one of the true colors shows that Bricscad displays true colors incorrectly in ODCL dialogs. The Red and Blue values are reversed:
RGB:247,186,011 displays as RGB:011,186,247 and vice versa.
6.
And finally a very strange one:
- Open ComboTest.odcl
- Change ListImages for ImageCombo1 to:
- Restart the program
- Select 'Red'
Result:
The top left pixel of the image is not displayed. This seems to be related to the use of png images and the image index. Not using the zero-index png image or changing that image to a bmp will solve this. The missing pixel is also visible if you open the Control Property Wizard on the Image List tab. If you delete the zero-index image you have to reopen the wizard to see the effect.
Regards, Roy.
Hello,
This is a continuation of
{2}
The program has been renamed to ComboTest and now uses an ImageCombo to select colors which is my reason for starting this new topic.
System:
Bricscad 11.4.2
Windows XP
OpenDCL 6.0.2.4
Files:
ComboTest.lsp
ComboTest.odcl
ComboTest_Images.zip
1.
After starting the program two problems are immediately apparent. The first one is that the ImageCombo shows the correct image but not the correct text.
2
The second obvious problem is that the text in the TextBox has been selected. This seems a different manifestation of the problem described here:
{2}
It would seem that the first control in the tab order is somehow triggered in Bricscad.
3.
After selecting 'Red' two new problems appear:
Both the image and the text in the ImageCombo are marked with a blue background/'overlay' (this may depend on the current theme). This obscures the color swatch. If you click behind the text its blue background disappears but the blue 'overlay' remains for the image portion. Clicking outside the dialog will clear the image. Is there a way to clear this automatically?
4.
The other new problem:
The OnSelChanged event always returns -1 for ItemIndexOrCount.
5.
Selecting one of the true colors shows that Bricscad displays true colors incorrectly in ODCL dialogs. The Red and Blue values are reversed:
RGB:247,186,011 displays as RGB:011,186,247 and vice versa.
6.
And finally a very strange one:
- Open ComboTest.odcl
- Change ListImages for ImageCombo1 to:
0|1|2|3|4|5|6|7|8|9|10|11- Restart the program
- Select 'Red'
Result:
The top left pixel of the image is not displayed. This seems to be related to the use of png images and the image index. Not using the zero-index png image or changing that image to a bmp will solve this. The missing pixel is also visible if you open the Control Property Wizard on the Image List tab. If you delete the zero-index image you have to reopen the wizard to see the effect.
Regards, Roy.
