-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No hard coded paths, please #18
Comments
The vrc file is created by the compiler. If you see the source code of |
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? |
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. |
Hi there, As pyscripter pointed you out, there is no hard paths from the library. Only the compiler that made such paths. Note: There is no need to remove styles. The demo enumerates the available styles and it doesn't force For your second question, I believe that pyscripter explained it very well :) |
Can you show a very basic demo of adding a non-VCL control class and showing its properties in the inspector? |
I tried and procedure TMain.FormCreate(Sender: TObject); myObject := TMyClass.Create(); zObjectInspector1.Component := TComponent(myObject); but my object was not shown in the object inspector :-( |
That's because |
You are correct !!! I changed it to TMyClass = Class(TObject)
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 ! |
Please close the issue. |
Not everyone installed Delphi to the default path. Which leads to ...
In InspDemo.vrc
AmethystKamri VCLSTYLE "e:\coding\XE8\Redist\styles\vcl\Studio\15.0\Styles\AmethystKamri.vsf"
CyanDusk VCLSTYLE "e:\coding\XE8\Redist\styles\vcl\Studio\15.0\Styles\CyanDusk.vsf"
Luna VCLSTYLE "e:\coding\XE8\Redist\styles\vcl\Studio\15.0\Styles\Luna.vsf"
[BRCC32 Error] InspDemo.vrc(66): file not found: C:\Users\Public\Documents\Embarcadero\Studio\15.0\Styles\AmethystKamri.vsf
[BRCC32 Error] InspDemo.vrc(67): file not found: C:\Users\Public\Documents\Embarcadero\Studio\15.0\Styles\CyanDusk.vsf
[BRCC32 Error] InspDemo.vrc(68): file not found: C:\Users\Public\Documents\Embarcadero\Studio\15.0\Styles\Luna.vsf
The text was updated successfully, but these errors were encountered: