Search the Community
Showing results for tags 'TUniForm'.
-
Hi, TUniForm does not pass correct information to RTTI. Say, you have this declaration: type TMainForm = class(TUniForm) private { Private declarations } public procedure sayHi; end; The RTTI code should should reveal all the methods in the class. var fCtx: TRttiContext:= TRttiContext.Create; var form: TMainForm:=MainForm; var rtype: TRttiType:= fCTx.GetType(form.ClassInfo); var gg: TArray<string>; for var method: TRttiMethod in rtype.GetMethods do begin SetLength(gg, Length(gg) + 1); gg[Length(gg) - 1]:=method.Name; end; fCtx.Free; gg array should list all the methods in the class but it misses the sayHi method. Unfortunately, forcing the compiler to inspect all methods using the following directive does not work {$RTTI METHODS([vcPublic, vcProtected, vcPrivate])} On the other hand, if you declare the following class TTestClass = class private procedure method1; public procedure method2; end; and run the same code gg lists method2 (but, strangely, not method1???). I suspect the function that returns TMainForm messes up RTTI. Can anyone think of any work around?
-
При закрытии формы (TUnimForm) браузер chrome в консоли выдает вот такие сообщения ([Violation] 'readystatechange' handler took 2759ms) и форма закрывается относительно долго - 2-3 сек. Есть форма, которая закрывается быстрее 400-500 ms, но всё равно задержка чувствуется. При этом странно то, что создание и показ формы почти моментальное, без видимых задержек и без сообщений в консоли браузера. Браузер десктопный в мобильном режиме. А вот мобильный браузер тот же хром на смартфоне закрывает окна моментально, без задержек.
-
Hi, I've noticed on my test apps the TUniForm/TUniLoginForm .Caption property value is not being displayed at runtime. Instead the forms are displaying the form name. Is this a bug or am I missing something? Thanks.
-
Hi all, Is it possible to make partially transparent form .. or maybe panel ... for example 50 % transparency? Any ideas? br,mk.
- 1 reply
-
- transparency
- Tuniform
-
(and 1 more)
Tagged with: