-
Content Count
575 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Vandrovnik
-
creating circles and ovals programmatically Sin Cosin
Vandrovnik replied to andyf2022's topic in General Help
You can find some inspiration here: https://www.mathsisfun.com/geometry/unit-circle.html Sin and Cos in Delphi take argument in radians (not in degrees). -
New security requirements for code signing, disruptive ?
Vandrovnik replied to A.M. Hoornweg's topic in General Help
Well, this is not my case, I build locally. -
New security requirements for code signing, disruptive ?
Vandrovnik replied to A.M. Hoornweg's topic in General Help
Where do you have to enter the password - on your computer, or directly on the device? On the computer, we could use AutoHotKey, which would enter the password instead of us 🙂 -
In my opinion, Autorun.inf is just the ability of Windows to automatically start something from CD, DVD, USB etc. In BIOS, you can enable booting from CD, DVD or USB drive etc., but it has nothing to do with Autorun.inf.
-
Hello, after update to Delphi 11.2, it has happened to me a few times (IDE did not respond, so I killed it from Task Manager). Last time it happened when I tried to edit lines between $IFDEF ... $ENDIF.
-
Exactly... When compiled to Windows-64, it works fine.
-
Done.
-
Just added to existing (command-line) project using menu Project, Add to project.
-
You have probably changed the unit; in my environment, access violation occurs, too.
-
How can I move a window to the left edge of a monitor?
Vandrovnik replied to dummzeuch's topic in VCL
For the "y" direction, there is SM_CYSIZEFRAME. -
How can I move a window to the left edge of a monitor?
Vandrovnik replied to dummzeuch's topic in VCL
Setting form's Left works fine for me. I have autogenerated manifest, enabled runtime themes and "Per monitor v2" DPI Awarrness. Instead of setting Left to -7, I set it to minus (GetSystemMetrics(SM_CXSIZEFRAME) + GetSystemMetrics(SM_CXPADDEDBORDER)), which is -8 on my PC. -
Hello, Please is it possible to use Android 12 emulator with Delphi 11.1? When I create and try to run it, I get this message in idea.log: "PANIC: Avd's CPU Architecture 'arm64' is not supported by the QEMU2 emulator on x86_64 host." Or is there a better way of testing the application with Android 12, but without physical Android 12 device? Kind regards, Karel
-
Your Android device does not support the selected target platform architecture
Vandrovnik replied to alogrep's topic in FMX
Does the device have 64bit Android? Some devices have 32bit Android and cannot run 64bit apps... -
Prevent TEdit FMX being overwritten by the virtual keyboard with the floating mode?
Vandrovnik replied to Fabian1648's topic in FMX
But then you should support national keyboards, too? (ie. Czech keyboard has different layout than US keyboard, contains letters like "č" etc.) And what about users, which do prefer their Android virtual keyboard? -
Your Delphi/BCB version is not supported by this JVCL version!
Vandrovnik replied to Cirrus22's topic in Delphi Third-Party
Just a guess: you may have files from older JCL/JVCL somewhere on your disk and it tries to use them, instead of this new version you want to use? -
I would use plain tEdit.
-
[Android] How to change regional settings
Vandrovnik replied to Fabian1648's topic in Cross-platform
You can still use: var MyFormat: TFormatSettings; MyFormat:=TFormatSettings.Create; // obtains default settings if pos('yyyy', MyFormat.ShortDateFormat)<=0 then MyFormat.ShortDateFormat:=StringReplace(MyFormat.ShortDateFormat, 'yy', 'yyyy', []); ... DateToStr(now, MyFormat); -
Would it help, if you use ms.Position := 0; before .LoadFromStream(ms)?
-
Android app does not start after migration to Delphi 11
Vandrovnik replied to Vandrovnik's topic in FMX
I have upgraded to Delphi 11.1. I have deleted folders Android\Debug, Android\Release, Android64\Debug, Android64\Release. Now it works 🙂 -
Why jpg image is not created?
Vandrovnik replied to neumimnemecky's topic in Algorithms, Data Structures and Class Design
Use full (absolute) path for JpgFileName and dest_path, such as F:\img etc. -
Reduce storage space for floating point range
Vandrovnik replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
These numbers are randomly distributed? When not, it might be more space efficient to store differences (after converting them to integers). If differences are small, you could use variable-length storing (7 bit data, 1 bit as indicator, that another byte is used). And finally a compression. -
[DCC Warning] W1013 Constant 0 converted to NIL
Vandrovnik replied to dummzeuch's topic in RTL and Delphi Object Pascal
It is a feature, not a bug 🙂 (I have never seen it before.) https://docwiki.embarcadero.com/RADStudio/Sydney/en/W1013_Constant_0_converted_to_NIL_(Delphi) -
FreeAndNil() - The Great Delphi Developer Debate
Vandrovnik replied to AlexBelo's topic in Tips / Blogs / Tutorials / Videos
I also use FreeAndNil - if I ever forget that an object was already freed with .Free, app might be working fine or give an AV "sometimes". When I use FreeAndNil and by mistake try to use freed object later, I am sure it always gives AV. I would not use FreeAndNil in time-critical parts, but there are almost none in my apps. -
ANN: Better Translation Manager released
Vandrovnik replied to Anders Melander's topic in Delphi Third-Party
Thank you, I did not realize that it is possible to use a filter 🙂 That will be enough. -
ANN: Better Translation Manager released
Vandrovnik replied to Anders Melander's topic in Delphi Third-Party
It works, that is really great! I have also add a Ctrl + right-mouse-click to find labels etc.: procedure TdmMain.ApplicationEvents1Message(var Msg: tagMSG; var Handled: Boolean); var PointClient: tPoint; Control: tControl; Form: tWinControl; begin {$IFDEF PrekladyBTM} if (msg.message=WM_RBUTTONDOWN) and ((msg.wParam and MK_CONTROL) <> 0) then begin Handled:=true; Form:=Screen.ActiveCustomForm; if Form<>nil then begin PointClient:=Form.ScreenToClient(Mouse.CursorPos); Control:=Form.ControlAtPos(PointClient, true, true, true); if Control<>nil then TranslationManagerIntegration.TrackControl(Control); end; end; {$ENDIF} end; Just a small notice: when I need to find a control and there are more properties in BTM, BTM often selects a property with "Don't translate". Please could you change it, so that BTM tries to select a property which should be translated?