|T O P I C R E V I E W
||Posted - 07/03/2022 : 01:59:23 AM
Inside CBCGPFormView i have several buttons.
Without EnableVisualManagerStyle() icon on disabled button
(only 1 icon set to button - via message BM_SETIMAGE)
With EnableVisualManagerStyle() icon on disabled button
It is ugly.
Is there easy way how to show icon on disabled button same way as without visual style ?
|4 L A T E S T R E P L I E S (Newest First)
||Posted - 07/04/2022 : 04:02:21 AM
Thank you very much for help.
Great library and excelent support.
||Posted - 07/04/2022 : 02:18:05 AM
The icon should be 32bpp:
m_wndStartAnimation.SetImage(h_ico, TRUE, NULL, NULL, TRUE);
||Posted - 07/03/2022 : 06:17:06 AM
Thank for fast reply.
I have explored BCGPControls example - Static text and picture page.
It work as expected for PNG bitmap in example.
But it does not work for icon bitmap.
If i change:
StaticControlsView.cpp line 114
from PNG bitmap:
m_wndStartAnimation.SetImage(IDB_PLAY32); // use PNG bitmap
HICON h_ico = (HICON)LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_INFO), IMAGE_ICON, 16, 16, LR_SHARED);
it work same way as in my first post (ugly full gray icon if button disabled)
||Posted - 07/03/2022 : 04:32:01 AM
Thank you for contacting us!
First, we're kindly asking to read our forum rules:
3. If the problem cannot be reproduced in our examples/samples, please open a new support ticket (https://support.bcgsoft.com/) and attach your sample where we can see the problem.
As you can see in our BCGPcontrols example, disabled push button (with visual style) created in the form view is displayed properly:
So, please open a new ticket and attach the repro sample.