Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/13/20 in all areas

  1. Anders Melander

    Difference between Pred and -1

    I notice you didn't answer the question, but no; It makes the code harder to read as you have to think about what Pred does. With "Count-1" there's no doubt. Don't use a feature just because it's new or you've just discovered it.
  2. vfbb

    Difference between Pred and -1

    Pred and Succ best use is when used with enum. LBrushKind := Pred(LBrushKind); replace LBrushKind := TBrushKind(Ord(LBrushKind)-1);
  3. Nathan Wild

    ICS FTP with TLS

    Hmm... It looks like it is using the libss1-1_1.dll supplied with ICS... I was l expecting it to require libeay32. All good now, thanks to everyone who helped out.
  4. Anders Melander

    Looking for a grid that adds columns as it's widened

    The standard windows List-View control, wrapped by the Delphi TListView component does this. The Tile View style is probably what fits your requirements best but unfortunately that isn't directly supported by TListView. Google Delphi LV_VIEW_TILE to find solutions around that.
  5. Dave Nottage

    Delphi fmx comes standard in iOS font

    Please indicate what you mean by "before", e.g. was it a different version of Delphi? Deploying to a device with a different version of iOS, if so, which version(s)? Were your applications deploying the custom fonts? .
  6. Fr0sT.Brutal

    Difference between Pred and -1

    I only use Pred rarely with enums. With integers it's worse than N-1. I guess having for-in construction there's not much need in last index
  7. Cristian Peța

    Difference between Pred and -1

    I would like to have List.High or List.HighIndex or List.LastIndex or whatever. Why to write every time -1 when you want the last index?
  8. David Heffernan

    Difference between Pred and -1

    No. It's pointless verbiage. Use List.Count - 1
  9. ImageEn v9.0.0 has now been released. It is a major updates that focuses on UI features, like toolbar, popup menus, plus over 50 new actions. Top Fifteen Enhancements 1. Fully customizable toolbar components for TImageEnView and TIERichEdit 2. Automatic hover toolbars for ImageEnView for viewing, editing, selections and layers 3. Customizable, context sensitive popup menus for TImageEnView, TImageEnMView, TImageEnFolderMView, TImageEnLayerMView and TIERichEdit 4. New TIELayerProps component to view and edit properties of selected layer 5. 28 new actions for TImageEnView, TImageEnMView and TImageEnFolderMView, plus you no longer need to attach an ImageEn control 6. Twenty-seven actions for TIERichEdit for rapid development 7. TImageEnView can be attached to a TImageEnMView to show a preview of the selected image (with navigation) 8. TImageEnMView can be filtered by filename or custom code 9. Rotation grip to make it easier and more obvious to rotate layers 10. TIELineLayers can now be curved 11. Numerous other layer improvements: horizontal and vertical flipping, graduated masks, more accurate rotation and sizing, and transparent background for rich text layers 12. Full Greek translation (partial computer generation) 13. Easily create curved selections in code 14. CaptureFromScreen allows capturing of specific monitors 15. Improved memory handling and other optimizations Upgrading to 9.0.0 This update is free if you purchased a license or extension after 12 April 2019. You can access the download from: http://www.imageen.com/support/downloadrequest.html Other users can extend their registration for 12 months at: http://www.imageen.com/order/index.html#Extensions Trials are available from: http://www.imageen.com/download/
  10. vfbb

    Delphi fmx comes standard in iOS font

    No, the problem is not with delphi, yo can see the full list of default font of the iOS https://developer.apple.com/fonts/system-fonts/ The current default font is Helvetica Neue. If you put a font family name that not exists, the iOS will load the Helvetica Neue font. To avoid install custom font, the best you can do is find a similar default font to use in the iOS
  11. Fr0sT.Brutal

    Why does this code work when it shouldn't?

    AV is when you access memory not belonging to your process. In this case you just access memory that is being freed but still belongs to the process. If you want array index control, enable range check
  12. Uwe Raabe

    Why does this code work when it shouldn't?

    Resizing an array to a smaller length doesn't invalidate the other elements. You should have range checking on to catch this error.
×