Delphi 10.4 ShowEditor manually in a DBGrid - delphi

I have a TDBGrid in Delphi 10.4. I want to show the editor when user clicks on enter and then right arrow key.
Currently, if I set the dgAlwaysShowEditor option True, then it shows the editor as soon as we click on enter but I want to show editor only after clicking on Enter and -> keys.

Related

select2 or chosen: how to extend funcationality

select2 or chosen or bootstrap-multiselect
I am looking for a way to show the options in a multi select, just like plain simple "multiple" option does to the regular select control.
It saves a click! it saves a click (the need to open the dropdown to see the options), when you have to select multiple options. I am not able to find anywhere any documentation regarding that.
Could it be that you are asking not about "list as it is in HTML" (note: there are no one unified solution - see multiselect on mobile devices, they are not the same as on desktop) but about list that is in popup which is opened by click ant that is NOT CLOSED till you could finish all your selections? One click is requried, but not "click to open, click to select, click to open, click to select ..."?
Chosen can't do this (chosen closes popup after selection).
bootstrap-multiselect can, but its list is not very friendly: 1) it can change its location (jump up and down) under the mouse, and 2) is usually "too wide" - checkboxes are too far from text (text aligned left, checkbox aligned right).
You can try my component: https://github.com/DashboardCode/BsMultiSelect
Here dropdown menu is not closed till you had finished all your selections, and it can't look "too wide" if you have "wider" length of your input control.

delphi TRibbon rightToLeft AppliactionMenu cover the [X] Close Window Button

Creating a new Delphi Vcl Forms Application.
Drop TRibbon
Drop ActionManager
Connect Between them.
Right click the Ribbon1 to add Tabs and Groups.
Right click the Ribbon1 to add Application Menu.
In the Object Inspector choose the Ribbon1, and set BidiMode to bdRightToLeft.
Run.
The Form that is created is deffrent from design time, as the application menu covers the Close Appliaction button.
What can be done to lower the Application Button?

Allow user to select text in ShowMessage dialog

I am writing a program in Delphi XE2. At one point in my program the user will be presented with output text, which I display through a simple "showmessage('The text of interest')" dialog.
I would like for the user to be able to copy and paste this text if they like to. It's not a key part of the program at all but I know that it might be nice for them to be able to do so.
At the moment, as far as I can see, it is not possible to select all or parts of the text from this type of message box, which brings me to my question: is there some way to make the message box text selectable for the user, or will I have to move on to other ways of displaying the text if I want this functionality? Any help would be greatly appreciated.
When you call ShowMessage a system message dialog is shown. This dialog does not support highlighting of individual portions of text. However, the dialog does respond to CTRL + C by placing the entire content of the dialog on the clipboard.
If you absolutely must have selection of individual portions of text then you will need to create the dialog yourself using Delphi controls.

How i can call the system popup menu from a TSynEdit component

When I make a right click in a TMemocomponent the system display a popup menu like this
but when I use a TSynEdit component this popup menu is not shown, the question is exist any way to activate this system popup menu in a TSynEdit component or do I have to implement myself a right-click popup menu for the TSynEdit component to get right-click Cut,Copy,Paste,Delete functionality ?
The popup menu you're showing is added by Windows itself to Edit controls (TMemo is a wrapper around a multiline Edit control). Since SynEdit isn't based on the Windows Edit control, but is implemented fully itself, Windows doesn't provide that menu.
If SynEdit doesn't provide a popup menu itself, you'll have to implement your own.

How to make the Messages panel to disappear after I successfully compile a project?

In Delphi XE, how to make the Messages panel to disappear after I successfully compile a project?
That was the default behavior in Delphi 7. In Delphi XE it says 'success' and it leaves that box open.
In XE, Messages is not a message box but a dockable window and as such it won't disappear automatically.
Workaround: Close the Messages window and save the desktop (click on the button next to the Classic Undocked in the toolbar). After each recompile you can then reselect saved desktop by clicking into drop-down list with desktop name (Classic Undocked) and pressing Enter on the keyboard.
Like Delphi 7 you can check the box under the window of compiler process.
look t the picture

Resources