delphi-2009

Custom component creation - how to add small icon representing component in Tool Palette?

蓝咒 提交于 2021-02-07 13:34:45
问题 Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on the form. However I can not see the small 16x16 icon which should be displayed when browsing Tool Palette. I've read that I should name my two other BMP files which are contained in DCR file like this: MyComponentName16 [for 16x16 BMP file]

Custom component creation - how to add small icon representing component in Tool Palette?

北城余情 提交于 2021-02-07 13:34:20
问题 Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on the form. However I can not see the small 16x16 icon which should be displayed when browsing Tool Palette. I've read that I should name my two other BMP files which are contained in DCR file like this: MyComponentName16 [for 16x16 BMP file]

Custom component creation - how to add small icon representing component in Tool Palette?

浪尽此生 提交于 2021-02-07 13:34:11
问题 Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on the form. However I can not see the small 16x16 icon which should be displayed when browsing Tool Palette. I've read that I should name my two other BMP files which are contained in DCR file like this: MyComponentName16 [for 16x16 BMP file]

Setting Label and StaticText Color property problem - Delphi 2009

倖福魔咒の 提交于 2021-01-28 22:51:28
问题 When I set the Label 's color e.g. on value clRed , the red on it only blink for a while. The color property still has clRed value, but in fact it has default clBtnFace color. Screenshot discribes the problem better. 回答1: Set Transparent to False. :-) Edit: assuming it's a TLabel, as shown in the screenshot. 回答2: Do you mean a TLabel or a TPanel ? Your screenshot shows a label, but it should work for both components. Make sure that the ParentColor property is set to false . 来源: https:/

Setting Label and StaticText Color property problem - Delphi 2009

青春壹個敷衍的年華 提交于 2021-01-28 20:50:29
问题 When I set the Label 's color e.g. on value clRed , the red on it only blink for a while. The color property still has clRed value, but in fact it has default clBtnFace color. Screenshot discribes the problem better. 回答1: Set Transparent to False. :-) Edit: assuming it's a TLabel, as shown in the screenshot. 回答2: Do you mean a TLabel or a TPanel ? Your screenshot shows a label, but it should work for both components. Make sure that the ParentColor property is set to false . 来源: https:/

How to disable a TreeView control without selecting all nodes?

久未见 提交于 2021-01-27 05:01:13
问题 I don't know if this is a bug or something, but if I try to disable a TTreeView control, all the nodes become selected (grayed out)... Can anything be done to just disable the input for this control without changing the selection ? Of course, the node are not really selected, they are just visually selected, but this is annoying. 回答1: That's how the disabled control looks like when no theme is applied. You can modify it with little intervention to item drawing: procedure TForm1

Inno Setup: change the setup language while setup is running

落爺英雄遲暮 提交于 2020-12-06 07:03:23
问题 In my Setup I don't want use the standard Language Dialog form. Instead, I want to add a combobox to the Welcome page of my Inno Setup to do the same job made by the Language Dialog, so that it's able to : show all the languages included in the [Languages] section in the drop down list. So the user can select a language from this custom combobox. apply the chosen language to the whole setup. I know that this is not possible using the "normal way", because there are no functions available in

How do I upload a file using http post? Delphi 2009

人走茶凉 提交于 2020-07-05 07:26:56
问题 My goal is to upload a text file via HTTP post I am using Delphi 2009. Say for example to the following URL https://www.example.com/ex/exampleAPI.asmx/Process I understand it can be done by using the TIdHttp component. And the following call IdHttp1.Post(); But I cant figure out how to set up everything i.e. specifying the url and including the file to be posted. Thanks. 回答1: TIdHTTP has two overloaded versions of Post() that take a filename as input: var Response: String; Response := IdHTTP1

How do I upload a file using http post? Delphi 2009

偶尔善良 提交于 2020-07-05 07:25:10
问题 My goal is to upload a text file via HTTP post I am using Delphi 2009. Say for example to the following URL https://www.example.com/ex/exampleAPI.asmx/Process I understand it can be done by using the TIdHttp component. And the following call IdHttp1.Post(); But I cant figure out how to set up everything i.e. specifying the url and including the file to be posted. Thanks. 回答1: TIdHTTP has two overloaded versions of Post() that take a filename as input: var Response: String; Response := IdHTTP1