The list of questions and answers related to the AnyDAC GUI.
A: Set ADQuery.ResourceOptions.CmdExecMode to amCancelDialog, drop TADGUIxAsyncExecuteDialog to a form, then prepare test to run long running query and run it.
While the query is executing, AnyDAC will show a small dialog with the "Wait" label and the "Cancel" button. If user will press the button, then the query execution will be canceled.
A: Use the code like that:
with ADGUIxFormsLoginDialog1.VisibleItems do begin Clear; Add('User_Name=<local phrase>'); Add('Password=<local phrase>'); end;
Also, you will need to open uADStanResStrs unit, find there a section "// Dialog captions" and translate there the items.
A: Just drop the TADGUIxErrorDialog component on your form or data module. Then for the EADDBEngineException unhanled exceptions the AnyDAC error dialog will be shown. To achieve that AnyDAC hooks the TApplication.OnException event.
A: You need to do following:
da-soft site.
A: a) To disable wait cursor forever for an application. The uADGUIxConsoleWait unit contains an empty wait cursor implementation. So, including the uADGUIxConsoleWait into uses clause, no more wait cursor will be showed by AnyDAC. If a mouse cursor is still changing, then check, that only uADGUIxConsoleWait unit is included into your application and uADGUIxFormsWait is not included. Note, that you will not have an ability to turn wait cursor on again.
b) To disable wait cursor, but to have ability later to enable it again. Use the code like that to turn off wait cursor:
ADWaitCursor1.ScreenCursor := gcrNone;
or
ADManager.ResourceOptions.SilentMode := True;
c) To disable wait cursor and AnyDAC dialogs, but to have ability later to enable it again. Set the ADManager.SilentMode property to True, then this will disable all wait cursors and AnyDAC dialogs, including:
Setting ResourceOptions.SilentMode to True, disables only wait cursors.
Q: I have a have grid connected to ADDataSet. When I filter records like this:
Grid.DataSource.Dataset.Filter := 'id_virtual_channel in (1, 2, 3)'
then everything is OK, but scroll bar remains unchanged like there would were all rows. It looks quite bad when for example full grid has 500 rows and filtered only 3 but scroll bar cursor stays very small and you can move it only a very litle (like from first to third row in 500).Do you have some solution?
A: Use the code like that:
ADQuery1.FetchOptions.RecordCountMode := cmVisible;
A: AnyDAC bookmarks are invalidated after a Refresh call. You can save PK values of the selected records before Refresh call, then reselect these record again using Locate.
|
What do you think about this topic? Send feedback!
|