Send to back ActiveX button - excel

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.

Related

How to detect mouse release

I have a button that activates an animation. I want to stop the animation when I release the click. I have just this:
Private Sub AnimationButton_Click()
Call AnimationStart
End Sub
I tried searching, but I didn't find anything related to buttons.
If you look in the list of events on your form for your button you will find Mouse_Down and Mouse_Up for the command button.
At the top of the code editor window select your command button on the left hand drop down list and the events available are in the right hand drop down list.
A program will receive a Mouse_Down event when the button is pressed. Then a timer starts and if it's released before the drag timer expires you will get a Mouse Up event followed by a click event.

Button on Popup form with few more user defined fields

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.

Hide mainform only and keep it in taskbar

I have a main form being the parent of x number of ToolWindows. I would like to hide the main form but keep it in the taskbar.
When I set the main form's Visible = false, it hides and keeps the ToolWindows visible, so far all good. But the icon in the taskbar disappears too.
I want to hide the main form, keep the ToolWindows visible AND keep the Taskbar icon so I can bring the main form back again.
By default, Application.MainFormOnTaskbr is set to true, which means the MainForm owns the Taskbar button. When a window is on the Taskbar, it is not possible to show/hide the window without affecting its Taskbar button accordingly. You have three choices:
Set Application.MainFormOnTaskbar to false, so the Application window owns the Taskbar button instead of the MainForm. Not advisible on Vista+, as ShowMainFormOnTaskbar was introduced to address UI issues in Vista onwards.
Create another window that has its own Taskbar button. You can use a similar technique that TApplication uses for its window.
Don't hide the MainForm, thus its Taskbar button will not hide. Move the MainForm offscreen, or resize it, so the user cannot see it but Windows still can.

How to click on radio button which is on Popup using Coded UI

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

How to grayed out the button in Xpage

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.

Resources