When I use the AfxMessageBox with MB_OK the messagebox is shown with 'ok' as button text and when i use the MB_YESNO it is shown with 'Oui' for Ok and 'Annuler' for No (I am running under French Windows).
I want to know if I could change the text button of my MessageBow without creating a custom one? or is it possible to hide the cancel button when i use the MB_YESNO?
Related
I got group of ActiveX buttons (small keyboard) and it looks like this:
Everything is ok, but when I miss click any button and I just click button on the background (button_back), this button will bring on top:
Only when I move pointer out of the button, other keys appears.
I want to disable button in the background in a way that nothing happens when it's clicked.
I tired:
- button_back.Enabled = False
- button_back.SendToBack
- .bringToFront the rest of the buttons
- button_back.TakeFocusOnClick = False
I also tried replace ActiveX with Shapes. I have no idea hot to do non clickable background for keyboard.
When I cilck on a button on main toolbar, I am displaying a popup form (PXSmartPanel) with few fields on it. Whenever I click on the main toolbar button, I want first the control should go to the popup form and based on buttons on popup form (Ok/Cancel), it should perform the action.
However, I tried that but eventually when I click on button on main toolbar, it first executes the code behind for that button and then shows popup.
Any suggestions?
Found the solution. You can use AskExt method of your DAC class to show popup first and then execute your code.
You can also use px:PXSmartPanel with AskExt. With help of PXSmartPanel you can customize your screen, and even add some buttons to your pop up. Here I wrote "short" manual how to do it.
I m automating a page where there is a popup and on that there is radio button and a submit button, when i click on radio button my test fail giving error that hidden object cannot be performed action like click but its visible (not hidden) where as when i click on submit button on same popup is click. i have checked its properties but there is nothing which i can change it just have simple id,name,value which is changing dynamicly and for that i have even used regex
please help me out
Thanks
It's possible that there is another radio button on the page with similar properties. Is this a recorded object? Is the popup window listed as the parent?
Can you post the Regex you are using, the control's properties, and the properties of the popup window?
if your are using IE whose version is > 9.0.19 then there was a patch release by Microsoft to overcome this issue
http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/17/coded-ui-mtm-issues-on-internet-explorer-with-kb2870699.aspx
Alright, I'm using VS2012 with MFC in Windows 8 and I'm having a problem.
Let's say I have a very simple dialog in my application. When I click on a different window (for example on the Taskbar), the caption bar color indicates that the dialog is still focused!
This problem happens in several cases. For example, when I use CFileDialog to select some files, after closing the dialog, caption bar color indicates that the dialog is still inactive while it's automatically focused after closing the open dialog!
Now let's say I have two dialogs in my application. Dialog A is my primary dialog and I use a button to show modal dialog B. In standard applications, if I click on dialog A, dialog B caption bar flashes. This doesn't happen in my application and I think it's because of a bug in MFC.
Any ideas how to fix this problem?
Please help me out in the below case:
When we clicked on the button in the current window (which has Cancel and OK button in the title bar). then it should display the small pop up with Two buttons. (Apply defaults and cancel button)
When we clicked on the Apply defaults in the small pop up, then the pop up should be closed and then display the previous window with disable(grayed out) the cancel button in the title bar.
Please let me know how to grayed out the cancel button
subbu,
Make your "Cancel" button in the title bar a dijit.form.Button. When the user clicks the "Apply defaults" button in the popup, you can then call a clientside script to disable it:
dijit.byId("#{id:yourCancelsButtonId}").setDisabled(true);
If you don't want to do it client side you should be able to accomplish the same thing server side like:
var buttonComp = getComponent("IdOfButtonToDisable");
buttonComp.setDisabled(true);
I'm not sure if you'll have to do a partial refresh to make it show up but that should work.