Is it possible to capture OnClick event when the CheckBox is disabled and then, to display a tooltip that shows why it is so (based on some business requirements)?
I looked up many sources over the internet, but I was able to find the answer to the second part of the question, not tested though. It seems to be a well-known problem, but I cannot find any answer or a hint.
I have to say that I am not a master of MFC, so a small code snippet would be appreciated.
Related
I'm looking for a way of nesting comboboxes in my GUI application (or to be more precise, I'm looking for a way to have an item displaying similar visual and functionnal properties as nested comboboxes).
Looking first at all the functions provided by the combobox class, it seems comboboxes nesting it's not supported by Qt.
I therefore thought that another solution would be to create a "menu" item outside the menu bar. If I understand correctly this phrase from the offical Qt documentation, it seems to be feasiable :
A menu widget can be either a pull-down menu in a menu bar or a standalone context menu
Not sure though was is meant by the "context" word.
However, there is no such (menu) widget in Qt designer and I haven't found any good examples about how to do it on the internet (and can't get a menu not associated with a menu bar to be displayed on the windows), explaining why I'm currently doubting whether it's feasible or not with a menu item.
I would greaty appreciate if you could provide some code sample along your response.
EDIT :
To clarify my first post, I'm trying to do something similar to this app :
It's the application that comes along the 3D connexion mouse whose usage is to parametrize each button.
As you can see, there are several sub-menu items. By clicking on the arrow next to a textbox, you open a sub-menu containing itself folders that contains themselves paramaters.
I have two forms in my project in c++ Builder 2010. I have created RadioGroup in the second and listed all my buttons there, but I have few problems:
When I load my form and check some button, the earlier selection stays checked until I hover mouse over it.
How to make the buttons from second form affect the first form?
How to make certain TEdit box go grey and unselectable when checking certain radiobuttons?
I found this by googling embarcadero radio, first hit: embarcadero docs
Essentially, radio buttons are not mutually exclusive unless you use a radio group.
Two questions in one is not a great idea, but to answer the second just set TButton->Enabled to false.
I'm developing a GDK app where I need to provide an user experience to display status text similar to video recording status that Glass provides ( displaying "Recording" status then displaying progress indicator and finally showing 'Complete' text ). Appreciate your input.
Right now, you'll need to write your own UI logic to do this (perhaps by using a Dialog with a custom layout that has the appropriate centered label and icon, with a progress bar at the bottom, and changing the label and dismissing the dialog when the action is complete).
You may want to follow issue 271 in our issue tracker, which covers the progress indicator part of this flow.
Tony is right. There is no way to do this naively but you can build it yourself. You can create a layout that is build exactly like the menu is built in the GDK, and then just update the setcontentview() with a new layout each time you want to move to the next card. Also you can build a layout with the holo horizontal progressbar to get the general idea but it won't be like the one Google uses.
Also wanted to add that I have built a repo that you can drop into your project for this. Here is the link: https://github.com/w9jds/GDK-ProgressBar
this is more of a functionality question than programming question but I can't find any other idiot operators like me out there that are having the same problem as me, or haven't figured it out themselves.
I've got a good basic understanding of CLI C++ so I want to get into the Qt Framework. I'm using their tutorials to get started...
http://qt-project.org/doc/qt-5.1/qtdoc/gettingstartedqt.html#adding-menu-items
The tutorial says that all I need is to "right-click an action and select Go to slot > triggered()."
The image below shows in red circles two of the primary places I've tried right clicking. I've also tried going through the menu and looking for things but to no avail. (Question continued below picture.)
Does anyone know what I am doing wrong here or am I reading this wrong? Thanks in advance.
FYI the open button and save button under central widget is for the Open and Save buttons I added, NOT for the menu toolbar open and save functions.
Near the bottom of Qt Creator find the tabs "Action Editor" and "Signals & Slots Editor". Click the "Action Editor" tab to show a list of all the actions in your UI. You should be able to right-click these items and select "Go to slot...".
This is similar BUT NOT THE SAME as C# questions, but as everyone knows, MFC is not .NET. MFC objects do NOT have the same runtime properties as .NET objects.
By using the Owner Draw mechanism (even though it's a simple text list), the callback has flags/attributes that shows which entry needs to be "highlighted", which we post a notification as to which item is currently "highlighted".
The complexity was MUCH less than trying to implement basic ComboBox functionality in a ComboBoxEx control (e.g. basic ComboBox styles do NOT apply to ComboBoxEx - don't ask).
I don't know if it would be of much help but....every time the highlighted item changes you receive a CB_GETCOMBOBOXINFO message.
I don't thik the information you receive with this message is going to help but if you really need to know the highlighted item maybe you could calculate it based on the mouse position and the height of every item. A bit tricky but possible.
I hope it helps.