delphi-2010

Order of TCategoryPanel into TCategoryPanelGroup

我的梦境 提交于 2020-01-14 15:54:54
问题 I got a whole Delphi application with 32 differents forms for data input. I got 1 main TCategoryPanelGroup with 115 diffrents TCategoryPanel on it. There are 6 main TCategoryPanel (main1, to main6) that we found on each forms and we add to this some specific (specific1, 2, 3, and so on) TCategoryPanel to each of them. All forms are already prebuilt in the application, theren't built at runtime. There's the way I do manage those forms (32 forms with an average of 10 panels of information on

Order of TCategoryPanel into TCategoryPanelGroup

吃可爱长大的小学妹 提交于 2020-01-14 15:54:35
问题 I got a whole Delphi application with 32 differents forms for data input. I got 1 main TCategoryPanelGroup with 115 diffrents TCategoryPanel on it. There are 6 main TCategoryPanel (main1, to main6) that we found on each forms and we add to this some specific (specific1, 2, 3, and so on) TCategoryPanel to each of them. All forms are already prebuilt in the application, theren't built at runtime. There's the way I do manage those forms (32 forms with an average of 10 panels of information on

Order of TCategoryPanel into TCategoryPanelGroup

对着背影说爱祢 提交于 2020-01-14 15:54:31
问题 I got a whole Delphi application with 32 differents forms for data input. I got 1 main TCategoryPanelGroup with 115 diffrents TCategoryPanel on it. There are 6 main TCategoryPanel (main1, to main6) that we found on each forms and we add to this some specific (specific1, 2, 3, and so on) TCategoryPanel to each of them. All forms are already prebuilt in the application, theren't built at runtime. There's the way I do manage those forms (32 forms with an average of 10 panels of information on

Order of TCategoryPanel into TCategoryPanelGroup

大城市里の小女人 提交于 2020-01-14 15:54:27
问题 I got a whole Delphi application with 32 differents forms for data input. I got 1 main TCategoryPanelGroup with 115 diffrents TCategoryPanel on it. There are 6 main TCategoryPanel (main1, to main6) that we found on each forms and we add to this some specific (specific1, 2, 3, and so on) TCategoryPanel to each of them. All forms are already prebuilt in the application, theren't built at runtime. There's the way I do manage those forms (32 forms with an average of 10 panels of information on

Order of TCategoryPanel into TCategoryPanelGroup

余生颓废 提交于 2020-01-14 15:53:56
问题 I got a whole Delphi application with 32 differents forms for data input. I got 1 main TCategoryPanelGroup with 115 diffrents TCategoryPanel on it. There are 6 main TCategoryPanel (main1, to main6) that we found on each forms and we add to this some specific (specific1, 2, 3, and so on) TCategoryPanel to each of them. All forms are already prebuilt in the application, theren't built at runtime. There's the way I do manage those forms (32 forms with an average of 10 panels of information on

Preventing “combining signed and unsigned types widened both operands” compiler warning

佐手、 提交于 2020-01-14 12:21:50
问题 This code, which is used to setup a component, produces a compiler warning: [DCC Warning] Unit1.pas(742): W1024 Combining signed and unsigned types - widened both operands var iPrecision: cardinal; iRadius: cardinal; iActive: boolean; iInProximity: boolean; iPrecision := Max(50, 100 - (3 + 2 * ord(iActive and iInProximity)) * iRadius); Can this be typecast somehow to prevent a compiler warning? 回答1: In your case, ord() returns an integer , so needs to be explicitely type-casted to cardinal ,

Preventing “combining signed and unsigned types widened both operands” compiler warning

一世执手 提交于 2020-01-14 12:20:08
问题 This code, which is used to setup a component, produces a compiler warning: [DCC Warning] Unit1.pas(742): W1024 Combining signed and unsigned types - widened both operands var iPrecision: cardinal; iRadius: cardinal; iActive: boolean; iInProximity: boolean; iPrecision := Max(50, 100 - (3 + 2 * ord(iActive and iInProximity)) * iRadius); Can this be typecast somehow to prevent a compiler warning? 回答1: In your case, ord() returns an integer , so needs to be explicitely type-casted to cardinal ,

How do I send and handle message between TService parent thread and child thread?

我的梦境 提交于 2020-01-13 06:47:10
问题 I am using Delphi 2010 to create a Windows service that will monitor several registry keys, and perform an action when a change occurs. I am using RegMonitorThread from delphi.about.com, and my issue is that my main service thread never receives the message that is sent from the TRegMonitorThread. type TMyService = class(TService) procedure ServiceExecute(Sender: TService); procedure ServiceShutdown(Sender: TService); procedure ServiceStart(Sender: TService; var Started: Boolean); private

Lockbox digital signature component problem

徘徊边缘 提交于 2020-01-13 03:20:10
问题 I'm evaluating TurboPower LockBox library for digital signing. I've created a 1024 bit RSA key and tried to sign a 260 bytes of text with it. After changing one or two characters in the text the signature is still valid for it. Is that ok? Or maybe it's a problem with this library. Changing even one character has a crucial effect. Do I need to create a larger key? UPDATE To test the library I used the demo application that comes with it. I have generated a 1024 RSA key pair and then tried the

TWAIN scanning components for Delphi

浪子不回头ぞ 提交于 2020-01-10 17:46:25
问题 I need to add TWAIN scanning to an Delphi application and am having trouble locating an off-the-shelf component to do so. I downloaded TDelphiTwain but, when used in D2010 on Windows Vista, it does not appear to recognize any Twain sources on my system. I also tried the trial version of Twain Toolkit for Delphi from MCM which has the advantage of being currently updated (DelphiTwain's last update was 2004), but the Twain Toolkit will not even compile on my system (I think some of the DCUs are