>I have take a look at the possibility of the MFC to handle the button.
>
>1) there a classe CButton which can create a button (radio, standart,
>checkbox, etc...)
>2) this class can accept a picture associated with the created button
>3) this class can let you the possibilty to draw yourself your button
>(diffucult apparently, but usefull for us) (BS_OWNERDRAW )
>4) there is another derived class : CBimapButton wich can handle a button
>whit 3 pictures :
>- one for the standart state
>- one for the mouseover state
>- one for the clicked state
>
>in fact like a rollover in HTML/javascript or Flash ...
>
>Please take a look at the sample for MSDN under.
Hi,
is there any way to just tell the MFC to draw a button in several states?
Something like
DrawButton( Rect &box, Str255 title, bool pressed, bool disabled,
long value );
would be cool. And what happens if you have two buttons that overlap each
other and you click the one that is partially covered? Will it appear to
"jump forward" then, like a Macintosh control? Or will it just highlight
the parts that are visible, like a button in HyperCard? We obviously need
the latter behaviour. Also, since we need to send messages when a button is
clicked (mouseDown, mouseStillDown, mouseUp), it'd be best if we could do
the tracking of a button in FreeCard-specific code, since else whenever we
add new messages we have to add the code to dispatch the messages to the
current object's script (to "send" a message to it) to *both* the Windows
and the Mac code. It'd be best if we could just make the abstraction layer
call a function both on Windows and on Mac and then we would have that
function do the actual work. And we have to be able to change a button's
style to some custom style whenever its "style" property changes, which is
also a lot easier if we can just call an abstraction-layer function and we
don't have to add different code depending on which platform we compile
for. Is this possible under Windows?
Cheers,
-- M. Uli Kusterer
------------------------------------------------------------
http://www.weblayout.com/witness
'The Witnesses of TeachText are everywhere...'
--- HELP SAVE HYPERCARD: ---
Details at: http://www.hyperactivesw.com/SaveHC.html
Sign: http://www.giguere.uqam.ca/petition/hcpetition.html