|
|
|
CBitmapButton
|
|||
|---|---|---|---|
|
#18+
Hi All! I have a problem with mouse "events" when using a bitmap-button. A CBitmapButton can load 4 bitmaps for different states (like this: pBitmapButton->LoadBitmaps(id bitmap for normal state,id for selected state, id for focused state, and id bitmap for disabled state) ). Theoretically a bitmap-button draw the bitmap he needs in dependents of his state, but when I move mouse over this button, he don't responds on this event and don't changes his state in "over". Tell me please, what have I missed? Thanks! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.11.2006, 11:48 |
|
||
|
CBitmapButton
|
|||
|---|---|---|---|
|
#18+
mojno pisati i na ruskom, ya mogu poniati ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.11.2006, 12:07 |
|
||
|
CBitmapButton
|
|||
|---|---|---|---|
|
#18+
Я бы предложил для такого дела не использовать CBitmapButton, а наваять свой класс от CButton, где переопределить реакцию кнопки на отрисовку (owner draw) -------------------------------------------------------------- [подпись с другого сайта] ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.11.2006, 12:11 |
|
||
|
CBitmapButton
|
|||
|---|---|---|---|
|
#18+
pochemu CBitmapButton ne podhodit? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.11.2006, 12:20 |
|
||
|
CBitmapButton
|
|||
|---|---|---|---|
|
#18+
ghenadiepochemu CBitmapButton ne podhodit? просто потому, насколько я помню, у него нет обработки нахождения курсора над кнопкой, для этого надо писать свой класс производный от CBitmapButton, а также он ограничен, опять же ИМХО, 256 цветами. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.11.2006, 12:25 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=34166699&tid=2029935]: |
0ms |
get settings: |
7ms |
get forum list: |
18ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
164ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
53ms |
get tp. blocked users: |
1ms |
| others: | 220ms |
| total: | 479ms |

| 0 / 0 |
