Re: RES: JvInspector without variable
Marcel Bestebroer <[email protected]> Fri, 05 Aug 2005 18:30:51 +0200
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
> Now, i whant to do this:
> +--------------------------------+
> | MyName | GUSTAVO |
> +--------------------------------+
>
> Only show the value "Gustavo"... the user will not edit it.
So basically you want to show a constant in the inspector? That's
not gonna work. The inspector expects either a variable or a property
(or an ini file entry). But, you can make individual items read-only:
var
myNameHolder: string;
procedure TForm1.MyMethod;
begin
myNameHolder := 'GUSTAVO';
TJvInspectorVarData.New(confPlugins, 'My Name', TypeInfo(string),
myNameHolder).ReadOnly := True;
end;
--
Marcel Bestebroer (Team JEDI) http://delphi-jedi.org
Project JEDI Help coordinator
JEDI.NET team coordinator
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h38ffol/M=362329.6886308.7839368.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1123266651/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphi-JEDI/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/