I want to disply this bitmap with TBitmap:
The blue turns to grey when the bitmap it displayed in the dialog.
What do I have to change?
Thanks for help,
Dietmar
Blue in bmp turns grey
- Dietmar Jahnel
- Posts: 83
- Joined: Mon Oct 17, 2005 10:33 am
- Location: Austria
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Blue in bmp turns grey
Dietmar,
Please change the color of the pixel in 0, 0 to a different color.
FWH uses pixel 0, 0 color as the transparency desired color.
Please change the color of the pixel in 0, 0 to a different color.
FWH uses pixel 0, 0 color as the transparency desired color.
- Dietmar Jahnel
- Posts: 83
- Joined: Mon Oct 17, 2005 10:33 am
- Location: Austria
- Contact:
Re: Blue in bmp turns grey
If I change the pixel in the upper left corner (is this 0,0 not 1,1?), this pixel is transparent. Is that correct?Antonio Linares wrote:Dietmar,
Please change the color of the pixel in 0, 0 to a different color.
If your are picky you can see that...
Any news with trees and different fonts?
Thanks,
Dietmar
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Blue in bmp turns grey
Dietmar,
Are you using the TRANSPARENT clause from the BITMAP command ?
> Any news with trees and different fonts?
I may have missed your question about this.
Are you using the TRANSPARENT clause from the BITMAP command ?
> Any news with trees and different fonts?
I may have missed your question about this.
- Dietmar Jahnel
- Posts: 83
- Joined: Mon Oct 17, 2005 10:33 am
- Location: Austria
- Contact:
Re: Blue in bmp turns grey
I found the discussion about this inAntonio Linares wrote:Dietmar,
Are you using the TRANSPARENT clause from the BITMAP command ?
not from the BITMAP command, but in the DIALOG command.
I just found out that this makes the difference.
I need this bitmap painted not transparent on a transparent dialog. Can this be done?
> Any news with trees and different fonts?
I may have missed your question about this.
"Colors for TTreeView, one for each item!?"
We are using TTreeView in our application now and it would be nice to show (only) some lines in bold font.
Best regards,
Dietmar
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Blue in bmp turns grey
Dietmar,
I guess the only way to do it is to use the style WS_OWNERDRAW for the treeview control in the resource
I guess the only way to do it is to use the style WS_OWNERDRAW for the treeview control in the resource
- Dietmar Jahnel
- Posts: 83
- Joined: Mon Oct 17, 2005 10:33 am
- Location: Austria
- Contact:
Re: Blue in bmp turns grey
Even then we would need a parameter for the font when the item is added in FWH, don't we?Antonio Linares wrote:Dietmar,
I guess the only way to do it is to use the style WS_OWNERDRAW for the treeview control in the resource
oItem1 = oTree:Add( cPrompt, nImage, nValue, xxxoFontxxx ) or similar
Can this be done in the (near) future?
For the bitmap:
If the DIALOG is defined TRANSPARENT the BITMAP is always painted transparent regardless if defined TRANSPARENT or not.
Can this be changed?
Dietmar
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Blue in bmp turns grey
Dietmar,
>
Even then we would need a parameter for the font when the item is added in FWH, don't we?
oItem1 = oTree:Add( cPrompt, nImage, nValue, xxxoFontxxx ) or similar
Can this be done in the (near) future?
>
Yes, though it is much more complex than that. You can check Class TWindow, TListBox and TComboBox and see how Method DrawItem() are implemented.
>
For the bitmap:
If the DIALOG is defined TRANSPARENT the BITMAP is always painted transparent regardless if defined TRANSPARENT or not.
Can this be changed?
>
Please try this:
oBitmap:lTransparent = .F.
>
Even then we would need a parameter for the font when the item is added in FWH, don't we?
oItem1 = oTree:Add( cPrompt, nImage, nValue, xxxoFontxxx ) or similar
Can this be done in the (near) future?
>
Yes, though it is much more complex than that. You can check Class TWindow, TListBox and TComboBox and see how Method DrawItem() are implemented.
>
For the bitmap:
If the DIALOG is defined TRANSPARENT the BITMAP is always painted transparent regardless if defined TRANSPARENT or not.
Can this be changed?
>
Please try this:
oBitmap:lTransparent = .F.
- Dietmar Jahnel
- Posts: 83
- Joined: Mon Oct 17, 2005 10:33 am
- Location: Austria
- Contact:
Re: Blue in bmp turns grey
Yes, though it is much more complex than that. You can check Class TWindow, TListBox and TComboBox and see how Method DrawItem() are implemented.
- I'm sure about that. But for FWH-users it will be something like one more parameter, I guess - that's why we all like to work with FWH
Please try this:
oBitmap:lTransparent = .F.
- sorry, no changes. For a quick solution I change the first pixel of the bitmap...
Dietmar
- I'm sure about that. But for FWH-users it will be something like one more parameter, I guess - that's why we all like to work with FWH
Please try this:
oBitmap:lTransparent = .F.
- sorry, no changes. For a quick solution I change the first pixel of the bitmap...
Dietmar