Gambas - How can I create radio (mutually exclusive) menu? - linux

I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical application and I'm trying to create radio (mutually exclusive) menu items, with a radio icon instead of a check mark when selected. I can't find any property in the Menu documentation that does that. Can you help?

If I understand you correctly, I think you mean an object that acts like a checkbox or radio button, but you want that in a menu.
If this is correct, then you want to edit yoru menu (ctrl + E)
Click on the menu itemCheck the 'toggle' checkbox underneath the icon box
I have gambas2 2.25 and this works.

Related

On Windows CE how do I prevent my menu from covering up my form

I am having a problem where on some of my forms my menu bar is covering up my controls
But there are also some instances where my controls automatically line up below my menu
What do I need to do in my forms so that my controls always line up below my menu?
I discovered that the ability of a control to adjust its location to below the menu requires the control to be dock to the form. If you are using non-docked controls you need to place them in side a panel and then dock that panel to the form.

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

ExtJS 4: Prevent Ext.grid.Panel header menu from closing after clicking "Columns" sub menu

The Sencha ExtJS framework Ext.grid.Panel component is great for representing result set data. However, it gets rather annoying for end-users when they try to enable and disable the columns in the grid. When you click the right side of a column header, a down arrow appears indicating there's a menu. When you click that arrow, a menu drops down. In any other HTML application based menu (or desktop app menu), you can either hover over a [sub] menu option or click the [sub] menu option and the next sub menu pops out. In the case of the Ext.grid.Panel, when you click a menu option on the main header menu hoping to expand the nested sub-menu, the entire root (column header) menu disappears. This would be represented as an enhancement by Sencha since there is a workaround--that being don't click on the menu option "Columns". It still works if you don't click, but it's just not intuitive. Who is bright enough to fix this in the extjs 4 framework code?
According to source files in the documentation this behavior is fixed in 4.1.2 (which is not available yet for public).
But!
Ext.define('MenuFix', {
override: 'Ext.menu.Item',
onClick: function () {
return this.menu ? null : this.callParent(arguments);
}
});

selectonemenu options far from the menu box itself

I am using PrimeFaces 3.2 and running app on Tomcat 7.0. I have pretty big form and a couple of <p:selectOneMenu> boxes at the bottom of the form. When I click on that box, then the options appear at the top of the form, so I have to scroll back to the top to select option. Is there a way to keep options close to the menu box?

how can i add mouse down event on picture control in vc++

i want indentify all mouse click event like WM_LBUTTONDOWN and WM_LBUTTONUP, on picture control in vc++,
but i am not able to do this
please tell me how can i identifies all events separately.
thanks in advance.
You should enable property "Notify" of PictureControl to get the event.
You can add an event handler to the picture control using Visual Studio IDE and modify the code for handler function. That should be easy.
I'm guessing you're using MFC. In that case you have to add an activex control to your dialog.
i. Adding the control: To add such a control to your dialog box right click your dialog box and click the option called "Insert ActiveX Control". A modal dialog box appears. You have to select "Microsoft Forms 2.0 Image". Click OK. Control is added.
ii. Select an image: Right click your newly added control and select "Properties". Select your desired image clicking the picture attribute. Also there are other properties to customize the picture i.e, stretching, clipping image etc. You'll see your image is loaded into the control.
iii. Adding the handler function: Right click the control and select "Add Event handler". From the new modal dialog box select "MouseDown" or "MouseUp" as message type and click "add and edit". Add your code to achieve desired behavior.
N.B: MFC is not available with Visual C Express. You need a professional version of VS to compile MFC code.

Resources