C#,Delphi,Oracle,MSSQL 개발자블로그
콤보박스 사용 시 콤보박스 자체의 크기는 작지만, 내부 항목의 길이는 넓은 경우가 있다. 이 때, 방법은 콤보박스 자체의 크기를 늘리면 되지만, 콤보박스가 올라가는 폼에서 공간이 협소해 콤보박스 자체의 크기를 늘리기 어려울 때가 있다. 이 때, 콤보박스의 크기는 그대로 두고, 내부 아이템의 크기만 늘리는 방법이다. 적용 전과 후의 차이는 다음 캡쳐와 같다. 소스는 다음과 같다. procedure TForm1.ComboBox_AutoWidth(const theComboBox: TAdvComboBox); const HORIZONTAL_PADDING = 15; var itemsFullWidth: integer; idx: integer; itemWidth: integer; begin itemsFullWidth ..
Exit : 현재 Procedure를 빠져나와 원래의 루틴으로 복귀하여 일을 처리한다. Abort : 현재 시점에서 모든 루틴을 종료한다. Ex. procedure TForm1.Button2Click(Sender: TObject); begin Calc; ShowMessage('abc'); end; procedure TForm1.Calc; var str1,str2 : Integer; begin str1 := StrToInt(Edit1.Text); str2 := StrToInt(Edit2.Text); Edit3.Text := IntToStr(str1+str2); Abort; 또는 Exit; ~ ~ ~ end; 위의 예에서 Exit를 호출하면, ShowMessage('abc')가 실행되지만, Abort를 호출..
dll파일을 경로에 재대로 일치시키고 컴파일에러는 없는상태에서 실행하면 해당 dll파일을 찾지 못하는 경우가 있다. 이때는 c:\Windows\SysWOW64에 dll이없는 경우 발생한다. 해당 dll을 여기에 복사하면 깔끔하게 해결된다. 출처 : https://m.blog.naver.com/PostView.nhn?blogId=downkhg&logNo=90136718581&proxyReferer=http%3A%2F%2Fwww.google.com%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3D%26esrc%3Ds%26source%3Dweb%26cd%3D2%26cad%3Drja%26uact%3D8%26ved%3D2ahUKEwj8yIu1oOfeAhUY148KHd_VAlsQFjABegQICBAB%26u..