emWin image instead of standart button graphics

3 replies [Last post]
an.skornyakov
Offline
Joined: 2012-07-26

Does anybody knows, is it possible via emwin API to create button with custom bitmap instead of standart emwin button graphics? This button shouldn't be animated, just static image in pressed, unpressed and all the states.

Thanks.

0
Your rating: None

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mcresseri
Offline
Joined: 2011-12-10

You can use the emWin API BUTTON_SetBitmap() or BUTTON_SetBitmapEx() for your purpose, as explained in the emWin user manual on page 401.

an.skornyakov
Offline
Joined: 2012-07-26

Yeah, thanks, it works!

santosh
Offline
Joined: 2012-09-03

hi to evry one,

i am also working on Button program, may i know how to call that Emwin functions., i m new to emwin..

how i will build my own BUTTON key.

feedback