I have a class named "BasicPanel which extends Jpanel" and main class "JsampleFrame which extends JFrame".Inside JsampleFrame class, i ve called the constructor
"BasicPanel()" and added to the "Container".After that, i have created two buttons,where one button is disabled and other one enabled by default.
My problem is that, once the user clicks the "checkbox" inside the panel of "BasicPanel",the button should get enabled.
Please help to solve out this problem.
I tried to create my own, simpler version of "UniButton"...derived a class from CButton, then overrode the afx_msg int OnCreate function...did the SetWindowRgn in there, but somehow, the button don't work...I try to look at the source code from the author, but I'm kinda confused...Can any of you help this loser ( aka me...:) )?
I've tried to use your button-login in an ActiveX control. The control is a button-based control, and I've set up the Window-region region in the OnCreate message handler, but when the OnDraw handler is called, the region is lost. Any ideas ?
I've found this control works really great. I've just had 1 problem with it. I'm using several buttons, each spawns a different program when the user hits the button. I found that the hover color of the button would remain after I spawned a program. It didn't matter how much I moved the mouse, or if I hit another button.
I do have a solution, I don't think its the most elegant, but it seems to work. I add the function OnMouseMove() to my dialog, and in it I call OnMouseMove() for each of my buttons.
If someone has a more elegant solution, I would be most interested in hearing it.
I recently downloaded your project utilising the CUnibutton class. The code is really excellent. Thank you.
However I am having a "small" problem which has been haunting me since two days now. I know you would be able to help. The problem is that I want to change the window caption during runtime. I am trying to use SetWindowText for each button. It is not working, in the sense that although the text on the button changes in the memory, on the screen I still see the old text.
Pleeeeeeeease help. Any suggestion, even a guess from your side will be more than welcome.