본문 바로가기

반응형
SMALL

전체 글

Stringgrid의 숫자 포멧 설정 stringgrid의 셀에서 숫자의 실수형의 포멧을 지정하는 방법 procedure TForm1.StringGrid1GetEditText(Sender: TObject; ACol, ARow: Integer; var Value: string); begin // Set format for real numbers in column 2 if (ACol = 2) and TryStrToFloat(Value, Value) then Value := FormatFloat('#,##0.00', StrToFloat(Value)); end; 더보기
Stringgrid의 셀의 폰트와 정렬 Stringgrid의 셀에서 폰트와 가운데 정렬 등을 할 때 아래와 같은 코드를 사용한다. procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState); var S: string; Grid: TStringGrid; Font: TFont; TextWidth: Integer; begin Grid := Sender as TStringGrid; // Get cell contents S := Grid.Cells[ACol, ARow]; // Create font Font := TFont.Create; Font.Size := 12; Font.Name := 'Arial'; if AR.. 더보기
HPF & LPF 가속도센서는 HPF를 사용하고 기울기 센서는 LFP를 사용한다. 1. HPF procedure HighPassFilter(var input, output: TArray; const freq, fs: Double); var i: Integer; RC, dt, alpha, y1: Double; begin // Calculate filter constants RC := 1 / (2 * PI * freq); dt := 1 / fs; alpha := RC / (RC + dt); // Apply filter to input signal y1 := input[0]; for i := 1 to High(input) do begin output[i] := alpha * (output[i-1] + input[i] - inp.. 더보기
Delphi 11.2 FireMonkey Low Code App Wizard - Error When using the FireMonkey Low Code App Wizard in Delphi version 11.2, the first attempt to compile results in an error. 델파이 11.2 버전에서 FireMonkey Low Code App Wizard를 사용할 때 처음 컴파일을 시도하면 에러가 발생한다. 1. E2250 There is no overloaded version of 'RequestPermissions' that can be called with these arguments -> TRequestPermissionsResultProc argument changed PermissionsService.RequestPermissions([JStringToS.. 더보기
Android Apps - Real-time streaming of IP camera images(안드로이드 앱 - IP 카메라 영상 실시간 스트리밍) 델파이로 윈도우, 안드로이드, ISO, 리룩스 등 멀티 플랫폼 개발을 지원한다. 하지만 나처럼 비 전공자에게는 넘어야 할 산이 많다. 이번에는 IP카메라를 안드로이드 폰에서 영상을 실시간으로 볼 수있는 앱을 개발하려고 한다. 요즘 대세인 ChatGPT 에게 물어보자 결론부터 말하면 안된다. (물론 나보다 능력이 좋은 사람은 어떻게든 수정해서 할 수 있을지 모르겠다.) 되는 방법만 보고 싶으면 아래 빨간 글씨부터 보면 된다. 더보기 나 : 델파이 안드로이드 IP카메라 연결 ChatGPT : 안드로이드 애플리케이션에서 IP 카메라에 연결하려면 일반적으로 다음 단계를 수행해야 합니다. IP 카메라의 IP 주소 및 포트 번호 확인 IP 카메라의 IP 주소 및 포트 번호를 알아야 안드로이드 애플리케이션에서 IP .. 더보기
Delphi Tips #1 윈도우 사용자 이름 nSize := MAX_COMPUTERNAME_LENGTH + 1; SetLength(szBuffer,NSize); GetUserName(Pchar(szBuffer),nSize); 컴퓨터 이름 GetComputerName(Pchar(szBuffer),nSize); ------------------------------------------------------------ 프로그램 추가삭제에서 뜨는 목록 보기 const UNINST_PATH = 'Software\Microsoft\Windows\CurrentVersion\Uninstall'; var Reg : TRegistry; SubKey: TSTringList; I : Integer; sDisplayName : String; begi.. 더보기
#1. Serial communication for VCL in windows(윈도우에서 VCL 시리얼 통신 프로그램) The first time I came across Delphi was because the company needed to control the equipment using Delphi. 나는 맨 처음 델파이를 접하게 된 계기가 회사에서 델파이를 이용해서 장비를 제어하는 것이 필요해서였다. I'm not a program major, so I had to do a lot of trial and error, and I often used the wrong development method, but "I do it until I can." "We will improve it to the end.I have developed the program with that mindset. 나는 프로그램 전공자가 아니.. 더보기
The advantages of Delphi compared to Python Delphi and Python are both popular programming languages, but they have different strengths and weaknesses. Here are some advantages of Delphi compared to Python: Performance: Delphi is a compiled language, which means that the code is compiled into machine code before execution. This results in faster and more efficient code compared to Python, which is an interpreted language. Native support f.. 더보기

반응형
LIST