Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
2 answers
57 views

storing and retrieving a string in tcomponent.tag using freepascal

I want to store this string expression: oField.displayname+'='+varTostr(fieldbyname(ofield.fieldame).value) where ofield is TField of dataset in TComponent.Tag. How can I do this? I am using ...
MedHome's user avatar
0 votes
0 answers
125 views

Confused with error -- E2193 Too few parameters in call to '_fastcall TComponent::GetComponent(int)

I am trying to programmatically remove a selected component from its parent container using the code below (I may be using found incorrectly, but that is not the problem, suggestions are welcome): ...
user avatar
1 vote
1 answer
223 views

How to invoke a procedure created inside the New Component during the implementation

I have created and implemented a New Component and inside this created component, there is a procedure InitCombo that needs to be invoked in the implementation. How will I do that? Here's the ...
RickyBelmont's user avatar
1 vote
1 answer
1k views

I am getting an error "Undeclared Identifier" on my newly created component with TComboBox ancestor

I have created a New Component with TComboBox ancestor using Wizard. Everything went smooth from compiling, building, and installing. Now I tried to use it and I am getting these errors: Structure ...
RickyBelmont's user avatar
1 vote
1 answer
195 views

How to Create and Destroy TGrid at Runtime in Firemonkey — Android and iOS App Dev

I have a TGrid created at runtime. The procedure requires that I should destroy TGrid before I can re-create at "add item and refresh" button click. I noticed that if I don't destroy TGrid ...
RickyBelmont's user avatar
0 votes
0 answers
162 views

delphi (RIO 10.3 ) get access to the component icons at runtime ( from the package binary resources ? )

Is it possible to get access to the component icons that are used in the IDE, but at runtime? I understand the icons are compiled as a binary resource into the package during component development, ...
DDeberla's user avatar
0 votes
1 answer
926 views

Handle copy component from one form to another in Delphi

Writing my own Delphi VCL component inherited from TComponent with a bunch of properties, that must be unique to component's owner form. When I copy component from one form to another (with simple ...
coroutinary's user avatar
0 votes
1 answer
733 views

Delphi: inherited Create gives Access violation

I made an application that opens several other Forms for handling tasks. All forms work fine, except one. I am using the same code for all forms. It's like: FormTypeA := TFormTypeA.Create(...
cvz's user avatar
  • 139
1 vote
1 answer
688 views

Firemonkey: cascade a styled Lookup change for a FMXObject where other objects inherit the stylename

I am not sure if is possible - but it seems like it should be to me. Essentially, I want to trigger all the components to refresh their styles when I change a StyleLookup. I have a FMXComponent ...
soddoff Baldrick's user avatar
1 vote
2 answers
3k views

Delphi: Save TComponent to Clientdataset blob field

I have a TComponent class derivative like below, trying to save to a clientdataset blob field: (Copied from internet, due credits) type TSaveComponent = class(TComponent) private FFileName: ...
JeffP's user avatar
  • 565
0 votes
1 answer
298 views

Delphi XE5 ComponentCount segmentation fault (Search parented tcomponent )

This code collect all TFMXControls in a specified root component. Exam the parent and the component name leading. This code working fine in Win32 32.bit windows target, but not in Nexus (android ...
user3034063's user avatar
5 votes
1 answer
451 views

Is passing a NULL Owner argument for dynamically created TComponent derived class instances OK?

I work with C++ RAD Studio and Builder 6 quite a bit and often create forms dynamically or create non-visual components dynamically when writing non-visual code. When designing forms, the Owner ...
mathematician1975's user avatar
3 votes
1 answer
3k views

Can I serialize a Delphi TPersistent as a field of TComponent using the default WriteComponent action?

I'm getting very confused about how to write out properties from a TComponent that has a TPersistent field. For example I have: TChildObj = class( TPersistent ) PRIVATE FVisible: boolean; ...
Brian Frost's user avatar
  • 13.5k
6 votes
2 answers
3k views

Can I use .Create(Nil) instead of .Create(Application)

I have a unit which has a variable of TComponent, I create this component on Initialization of the unit like following : var XComp: TComponent; . . . . initialization begin XCom := TComponent....
user1512094's user avatar
3 votes
3 answers
1k views

How to access design position on non-visual Delphi components?

When designing a form in the IDE, non-visual components (eg TMainMenus, TDatamodules) can be freely placed and positioned. The position is persisted, so that on reloading the form these components ...
Roddy's user avatar
  • 68.5k