logo
down
shadow

FireMonkey Getting FMXObjects at runtime using RTTI


FireMonkey Getting FMXObjects at runtime using RTTI

By : Lê Hải
Date : November 21 2020, 11:01 PM
like below fixes the issue As the documentation says:
code :
lRttiType := pRttiContext.FindType ('FMX.Forms.TForm'); // this finds the TRttiType
lRttiType := pRttiContext.FindType ('fmx.forms.TForm'); // this will return nil


Share : facebook icon twitter icon
Find all Class Helpers in Delphi at runtime using RTTI?

Find all Class Helpers in Delphi at runtime using RTTI?


By : AlMightyBob
Date : March 29 2020, 07:55 AM
To fix this issue Since class helpers only apply to a class based on what helper is "closest" in scope, a class simply cannot know that a helper exists. For example, you can create a class helper in your unit to "help" a class from another unit for which you have no source. The class in the other unit has no clue about any helpers. If it did have this knowledge, then it would have to be recompiled to take this into account... which leads to the next issue;
Consider this: You could have a class declared in one common unit that is used by many other units throughout your application. In each of those units you declare a new helper for this common class with different methods and "helper" functions. Since each unit knows nothing about the other units that also declare their own helper, there is, by design, no way to somehow coalesce all the helpers. Now consider that this common unit now lives across a pre-compiled package boundary.
How to add nodes to FireMonkey's TreeView at runtime

How to add nodes to FireMonkey's TreeView at runtime


By : user3560365
Date : March 29 2020, 07:55 AM
help you fix your problem I think we are all learning at this point...
But from what I have seen the TTreeView use the principle that any control can parent another control.
code :
var
  Item1 : TTreeViewItem;
  Item2 : TTreeViewItem;
begin
  Item1 := TTreeViewItem.Create(Self);
  Item1.Text := 'My First Node';
  Item1.Parent := TreeView1;

  Item2 := TTreeViewItem.Create(Self);
  Item2.Text := 'My Child Node';
  Item2.Parent := Item1;
end;
  Button := TButton.Create(self);
  Button.Text := 'A Button';
  Button.Position.X := 100;
  Button.Parent := Item2;
Loading FireMonkey style resources with RTTI

Loading FireMonkey style resources with RTTI


By : Mitjohn
Date : March 29 2020, 07:55 AM
This might help you Using TRttiField.GetAttributes leads to errors in design-time. It's a bug in Delphi XE2. See QC Report.
C#: Create variable with typename in runtime (rtti?)

C#: Create variable with typename in runtime (rtti?)


By : atusingh
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further i need to create some variable with some predifened type wich stored in other variable value. In pseudo code it looks like: , Something like the following?
code :
Type t = Type.GetType("System.Int32");

Console.WriteLine("Sizeof: " + System.Runtime.InteropServices.Marshal.SizeOf(y));   
Console.WriteLine("Type: " + t);

var x = Activator.CreateInstance(t);

Console.WriteLine("Value: " + x);
Sizeof: 4
Type: System.Int32
Value: 0
firemonkey destroy frame at runtime

firemonkey destroy frame at runtime


By : Wisdom Liu
Date : March 29 2020, 07:55 AM
With these it helps "Free" should work in Windows / OS X. You'll have to use "DisposeOf" in iOS / Android because of ARC.
shadow
Privacy Policy - Terms - Contact Us © soohba.com