Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-05

IDE Options implementation question

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Repucci

I would like to mimic the Lazarus IDE Options window for my program. Can anyone point me to an example with a similar implementation? What object is used on the left side and how is it populated? Is there a way I could open the editor or the IDE Options inside the Lazarus editor?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110521/27ae04e0/attachment.html>

Reply by email

Mattias Gaertner
to John Repucci
I would like to mimic the Lazarus IDE Options window for my program. Can anyone point me to an example with a similar implementation? What object is used on the left side and how is it populated?

A TTreeView.
See main.pp TMainIDE.DoOpenIDEOptions

Is there a way I could open the editor or the IDE Options inside the Lazarus editor?

Open project ide/lazarus.lpi
Open file ide/ideoptionsdlg.pas

Mattias

Reply by email

Martin
to John Repucci: I would like to mimic the Lazarus IDE Options window for my program. Can anyone point me…
John Repucci wrote 5 lines
I would like to mimic the Lazarus IDE Options window for my program. Can anyone point me to an example with a similar implementation? What object is used on the left side and how is it populated? Is there a way I could open the editor or the IDE Options inside the Lazarus editor?

To find out which part of the IDE is implemented in which unit, you have 2 options

1 )open the dialog, and press shift-ctrl-F1
=> the window that comes up is used for editing help (you don' need to care about that for now)
=> the window does has a button that says "open ..." (lower left). This button will open the unit

The IDE options are made from many units though.

2) install the package named "IDE inspector"
It creates an entry "Inspect IDE" in the "view" menu, sub menu "IDE internals".
It also allows you to set a global key (last tool button in the toolbar, attention toolbar may wrap, so may be in 2nd line)

It displays the object that has the focus, in an object inspector. and also displays the unit and more

Reply by email