Hi,
I have created popups using "Alpha blending". To achieve the popup effect, I am using two windows. One base window with transparency enabled and one window on top of that which has the required text. When the popup windows are deleted and a listbox screen is displayed then some portion of the screen is purple. I am setting the background color to be black. I have attached screenshots of both the scenarios.
Image1: Is the popup window with transparency enabled for the base window
Code is as follows
GUI_SetAlpha(85); // Set alpha value for drawing operations
GUI_SetBkColor(GUI_DARKGRAY); // Draw gray background...
GUI_Clear(); // ...with alpha blending
GUI_SetAlpha(0); // Set alpha value to default
//for the border of the inner rectangle
GUI_SetColor(GUI_YELLOW);
GUI_FillRect((Child_window_x_pos-6), (Child_window_y_pos - 31),
(Child_window_x_pos + Child_window_x_size), (Child_window_y_pos + Child_window_y_size - 26));
Image2: Is the listbox screen.
Why does this occur and how do I get rid of it?
I have observed this issue, when I go from one popup to the other in succession. Before creating a new popup screen, I make sure to delete the previous windows.
Thanks
I have created popups using "Alpha blending". To achieve the popup effect, I am using two windows. One base window with transparency enabled and one window on top of that which has the required text. When the popup windows are deleted and a listbox screen is displayed then some portion of the screen is purple. I am setting the background color to be black. I have attached screenshots of both the scenarios.
Image1: Is the popup window with transparency enabled for the base window
Code is as follows
GUI_SetAlpha(85); // Set alpha value for drawing operations
GUI_SetBkColor(GUI_DARKGRAY); // Draw gray background...
GUI_Clear(); // ...with alpha blending
GUI_SetAlpha(0); // Set alpha value to default
//for the border of the inner rectangle
GUI_SetColor(GUI_YELLOW);
GUI_FillRect((Child_window_x_pos-6), (Child_window_y_pos - 31),
(Child_window_x_pos + Child_window_x_size), (Child_window_y_pos + Child_window_y_size - 26));
Image2: Is the listbox screen.
Why does this occur and how do I get rid of it?
I have observed this issue, when I go from one popup to the other in succession. Before creating a new popup screen, I make sure to delete the previous windows.
Thanks
The post was edited 2 times, last by Ana ().