Search the Community
Showing results for tags 'custom'.
Found 2 results
-
I am trying to implement a custom module designer for a TDataModule descendant with a different user interface than the classic datamodule designer with the grab handles. Reading the extremely limited documentation I came to the conclusion that I had to create a descendant of the class TCustomModule in DesignEditors.pas, have it implement ICustomDesignForm80, implement a form or control that implements the interface IHostForm and have the implementation of ICustomDesignForm80.CreateDesignerForm() create and return an instance of my IHostForm implementation and finally call RegisterCustomModule() on my TDataModule descendant class with the class of my TCustomModule descendant in a Register procedure. When my IHostForm implementation is a TForm descendant it appears as a popup form when I open a module containing my TDataModule descendant pretty much as form designers appeared in older versions of Delphi (e.g. Delphi 7). When it is a TFrame descendant it does not appear at all but I get a message in the module Design page saying "This form or frame is designed in another window. Do you want to use the designer in this window instead?" and a "Move designer" button that does nothing when pressed. By placing debug output calls in all methods of my IHostForm implementing frame I can see that the IDE calls the methods I would expect but it never changes the frame's parent and that's why it never appears. Does anyone know what I need to do to get my IHostForm frame to be parented inside the design page of the editor?
-
Is there a downloadable custom view for Galaxy S10+ phone?
JohnLM posted a topic in Delphi IDE and APIs
SPECS: Delphi 11.2, Galaxy S10+ phone (Android 12) (screen size is 6.4 inches) Issue: I want to change the view in the IDE to match my phone but the closest one is the 'Android 5" phone', and when I add componets on the form in that view, after compiling, the controls don't fit the screen and/or are sometimes off the view of the screen. In Delphi XE7, in the View's drop-down list, there is a custom setting option. I think I only used it once for a tablet years ago, but could not figure it all out and gave up. However, in 11.2, there is no listing for custom. So, I was wondering if there are downloadable views, or does the developer has to figure it out manually by eye/try. I've been searching around but cannot find any answers. TIA.