plastkort 0 Posted August 1, 2019 im trying to use a very old component i made for delphi 7 back in the days, i havent touched it for many years. but it installed ok without a problem, however when i go to the component list and want to add it.. it seems to be "faded" and cannot be added... why is it so ? it works if i create a new application and try to add it... Share this post Link to post
PeterBelow 238 Posted August 1, 2019 Is the project perhaps Win64 or FMX? Share this post Link to post
Uwe Raabe 2057 Posted August 1, 2019 10 minutes ago, PeterBelow said: Is the project perhaps Win64 or FMX? Or perhaps no framework at all? Try placing a standard VCL control first and the IDE might ask you. Share this post Link to post
plastkort 0 Posted August 1, 2019 i can create it at runtime.... but not in designtime... you can check the source if there is anything strange... it's an old project i digged out of some old cd's https://github.com/plastkort/VCDProgress/blob/master/vcdprogress.pas Share this post Link to post
Lars Fosdal 1792 Posted August 2, 2019 A notion of a change to the control design interface between D7 and modern Delphi rustles in the back of my head, but I have not done component work in ages.... Share this post Link to post
Christen Blom-Dahl 7 Posted August 2, 2019 You must include a class attribute to specify which platforms the component is going to be available: type ... [ComponentPlatformsAttribute(pidWin32 or pidWin64 or pidOSX32 or pidiOSSimulator or pidiOSDevice32 or pidiOSDevice64 or pidAndroid)] TVCDProgress = class(TCustomControl) ... end; 1 1 Share this post Link to post
Remy Lebeau 1394 Posted August 2, 2019 4 hours ago, Christen Blom-Dahl said: You must include a class attribute to specify which platforms the component is going to be available: type ... [ComponentPlatformsAttribute(pidWin32 or pidWin64 or pidOSX32 or pidiOSSimulator or pidiOSDevice32 or pidiOSDevice64 or pidAndroid)] TVCDProgress = class(TCustomControl) ... end; Note, there are a lot more ComponentPlatforms values available than just those shown above: pidAllPlatforms (new in 10.3.2!) pidWin32 pidWin64 pidOSX32 pidiOSSimulator32/pidiOSSimulator pidAndroid32Arm/pidAndroid pidLinux32 pidiOSDevice32/pidiOSDevice pidLinux64 pidWinNX32 pidWinIoT32 pidiOSDevice64 pidWinARM32/pidWinARM pidOSXNX64/pidOSX64 pidLinux32Arm pidLinux64Arm pidAndroid64Arm/pidAndroid64 pidiOSSimulator64 2 Share this post Link to post
aehimself 396 Posted September 7, 2019 A quick and dirty way of adding this component in design time is to switch the platform back to Win32, drop the component and then switch back (even completely remove the Win32 platform). I usually have to do this with my 64bit applications using database access components. Share this post Link to post