Comments (9)
The vrc file is created by the compiler. If you see the source code of
zcontrols/Demo/InspDemo.dproj it does not contain hard coded paths. However it does specify the use of AmethystKamri and the other styles which apparently are not available in your Delphi installation or at least they are not present in the location expected by the compiler. Just go to the Project options, Appearance, remove these styles and you should be OK.
from zcontrols.
Yes, I can see that the file is auto-generated. When I editted it to my path, the file was overwritten when I built. What I did was to copy those three files to the default location & everything was fine. is it worth making a small note in How To Install.txt?
A separate question.:I have long been looking for something like the Object Inspector which I can use at run-time to examine & change (some of) the properties of my own objects, which are not all VCL controls. Can I do that with this component?
from zcontrols.
The inspector can be used to inspect and change any object. The property Component is of type TObject and can be set to any Delphi object.
from zcontrols.
Hi there,
As pyscripter pointed you out, there is no hard paths from the library. Only the compiler that made such paths.
Please, select Project => Options => Appearance
and then press OK. This will fix all paths.
Note: There is no need to remove styles. The demo enumerates the available styles and it doesn't force
for a particular style.
For your second question, I believe that pyscripter explained it very well :)
from zcontrols.
Can you show a very basic demo of adding a non-VCL control class and showing its properties in the inspector?
from zcontrols.
I tried
TMyClass = Class(TObject)
public
val :Integer;
motto : String;
End;
myObject : TMyClass;
and
procedure TMain.FormCreate(Sender: TObject);
begin
GetObjsList;
EnumStyles;
myObject := TMyClass.Create();
myObject.val := 13;
myObject.motto := 'Hello, world';
zObjectInspector1.Component := TComponent(myObject);
end;
but my object was not shown in the object inspector :-(
from zcontrols.
That's because var
is not a published property. Inspector works with properties and not variables/constants.
from zcontrols.
You are correct !!! I changed it to
TMyClass = Class(TObject)
private
myValue : Integer;
myMotto : String;
Published
property val :Integer read myValue write myValue;
property motto : String read myMotto write myMotto;
End;
and now those properties of my object show in the Object Inspector !
Wow! I have been looking for something like this for over ten years; thank you so much !
from zcontrols.
Please close the issue.
from zcontrols.
Related Issues (20)
- Setter over 32 items not work
- Use the TzObjectInspector component as the Configuration Editor. HOT 1
- Using of the inspector control would block TAB key for the entire windows 7 system. HOT 2
- Access violation after editing a property and moving the focus by key (up, down). HOT 1
- Delphi 2007 HOT 1
- Enhancement: Allow localization of True/False
- How to inspect TFieldDefs, TIndexDefs... properties ?
- Allow localization of True/False HOT 2
- Object Inspector - Lazarus HOT 1
- Exception when removing TzObjectInspector from form at design time HOT 1
- Check boxes in values are not painted DPI scaled if you use styles
- The AnsiString type field can not be read and write.
- Drawing a border when styles are enabled
- Wrong ItemHeight when ParentFont is True in Delphi 11
- Error when installing. HOT 1
- Font and Color dialogs do not get initialized with the current value
- Feature request: property editor for keyboard shortcuts HOT 3
- Links to example screenshots are broken HOT 1
- Assigning custom property value editors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zcontrols.