Jump to content

PeterBelow

Members
  • Content Count

    565
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by PeterBelow

  1. Two different editions of the same Delphi/RAD Studio major version cannot coexist on the same PC, different editions of different major versions can, however. If you need the former you have to install one of the editions in a VM or different PC.
  2. Modify the SELECT statement for the query to include an ORDER BY clause for the code column. Then you can walk over the query result and just compare the current record's code to the one from the previous record (which you remember in a local variable in the loop). You can also formulate a SELECT statement that just returns the duplicates of course...
  3. PeterBelow

    Delphi 11.2 fatal error F2613

    The next thing to check would be whether the folder $(BDSLIB)\$(Platform) resolves to for your target platform ( should be C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\android64 for an install using the default folders) is actually there, contains release and debug subfolders, and see if these contain the file(s) the error message moans about, e.g. system.classes.dcu and system.classes.o. I think that should be the file names. I have not installed Android platforms, so cannot check directly. If the files are there go and check the pathes in the specific project options, also check what path the BDSLIB environment variable resolves to.
  4. PeterBelow

    Delphi 11.2 fatal error F2613

    check the Library path in the Tools -> Options dialog, Language -> Delphi -> Library page. It should start with $(BDSLIB)\$(Platform)\release. The "debug dcus" path on the same page should be $(BDSLIB)\$(Platform)\debug. Check this for every of the platforms you have installed (combobox at the top of the page).
  5. PeterBelow

    Implement logic in TListView

    Does only work if only one item can be selected from the group, but IO think in OPs case selecting both OptionOne and OptionTwo would be valid.
  6. PeterBelow

    display hint

    The hint system is designed to show a hint for a certain time when the mouse enters a control's real estate. In your case the mouse stays over the paintbox, so the hint is not shown again even if its value changed. Try to call Application.CancelHint after changing the value. And if you draw the gauge anyway, why not draw the value as well instead of using a hint window?
  7. You have a timing issue here, the event fires before the page has become visible and the controls on it can be focused. The usual fix for such problems is to post (PostMessage) a custom message to the form and do the focus change in the handler for this message. There is also a OnTabVisibleChanged event for TRibbon, perhaps that fits better with your goal.
  8. PeterBelow

    FaVolumeId??

    I would rewrite this code using the routines from System.IOUtils. Use TDirectory.GetFiles to get a list of files in a directory you can then walk over. TPath.GetTempPath gets you the user's temp folder, TFile.Delete deletes a file. Use a try except block around this statement to catch a failure to delete a file.
  9. PeterBelow

    Corean write in explorer popup menu

    Scan you PC for malware, looks like something installed context menu extensions for Windows explorer...
  10. PeterBelow

    Set colour for TStaticText with themes.

    Deselect seFont in the StyleElements property.
  11. PeterBelow

    SingleStep with F7/F8 hang IDE

    Mh, never had a problem with those, but my projects are small to medium since i'm retired and use no 3rd party controls.
  12. PeterBelow

    SingleStep with F7/F8 hang IDE

    Are you working on a 32 or 64 bit target?
  13. PeterBelow

    Saving ProjectGroups to a new folder

    With your steps you are not creating a new project group, you just rename the project. If you saved the project group before closing the IDE (the IDE should prompt you to do this) the group should contain the renamed project the next time you open it. To have more than one version in the same project group you have to explicitely add the old version to the group.
  14. PeterBelow

    2 errors that do not exist?

    in Tbasicdm.DatamoduleCreate, is there really an underscore in the line after begin? That would be the source of the first error. The second may be a false positive, error insight is easily confused by conditional compilation...
  15. PeterBelow

    DBRadiobutton

    Set the form's ActiveControl property to some other control that can take the focus, e.g. a button.
  16. PeterBelow

    11.2 Patch 1 is out

    The installer will probably only be updated when (if) a 11.3 release comes out. Just run the installer and then check the IDE about dialog. Mine shows build 28.0.46481.1287 after the patch was installed.
  17. PeterBelow

    Add Icon in DBGrid cell

    Handle the OnDrawColumnCell event of the grid, in it call DefaultDrawColumnCell if the cell you are asked to draw is not one in the boolean column, draw the icon on the grid canvas if it is in your special column. The OnCellClick event fires on a mouse click on the cell. The attached dataset's current record is already set to the record shown in the row clicked on, so just change the field value if the click lands on your boolean cell.
  18. Relocate the actual work to a secondary thread. At the start of the thread's Execute method use TThread.Queue to pass a method to the main thread that creates the progress dialog. The dialog is not shown immediately, though, it just starts a timer with the delay you want. If the timer fires before the thread has completed its work, show the dialog. The dialog can the either use a timer to check for the thread's progress at intervals to update its display, or the thread can inform the dialog through Synchronized method calls of its progress. When done it can then tell the dialog to close itself, also through a Synchronized method call.
  19. PeterBelow

    Rad Studoi 11.2 Installation

    Download the web installer from https://my.embarcadero.com. It will uninstall your existing 11.1 and then install 11.2, using the existing licence key. Remove GetIt installed IDE add-ins (like Parnassus Bookmarks) before you start the update and reinstall them from GetIt afterwards.
  20. PeterBelow

    Best place for Spring4D questions

    This forum has a 3rd-party section that may do: https://en.delphipraxis.net/forum/13-delphi-third-party/
  21. PeterBelow

    Replace TCheckBox with TDBCheckBox

    You have to change the type both in the form pas and dfm files.
  22. https://my.embarcadero.com/#downloadsPage works normally for me. (Win10, Firefox as browser). I did not try to download anything, though.
  23. PeterBelow

    Close App on PC Shutdown??

    On normal shutdown running apps get a WM_QUERYENDSESSION message, followed eventually by WM_ENDSESSION. The VCL handles WM_QUERYENDSESSION by firing the main form's OnCloseQuery event but OnClose or OnDestroy may not fire on system shutdown. So OnCloseQuery is the best place for detecting app closing.
  24. PeterBelow

    Problem with Gauge component.

    TGauge is a really ancient sample component (from D1 days I think). Have you looked at TProgressbar as alternative?
  25. PeterBelow

    HoursBetween

    With the 24 hour clock 00:00 is interpreted as midnight starting the current day and 24:00 as midnight ending the day.
×