Sign in Join

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

Mailing lists / lazarus / 2008-10

Saving coordinates TComponentListForm

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Marius

How do i save and restore the coordinates + height/width for a IDE plugin. I already tried IDEDialogLayoutList.ApplyLayout and SaveLayout(Self) in the close. But this function only save and restore the width and height.

Is there anything what also saves the left + top coordinates?

Reply by email

Graeme Geldenhuys
to Marius
Marius wrote 6 lines
How do i save and restore the coordinates + height/width for a IDE plugin. I already tried IDEDialogLayoutList.ApplyLayout and SaveLayout(Self) in the close. But this function only save and restore the width and height. Is there anything what also saves the left + top coordinates?

I have been trying to find this out myself, but haven't had any replies to this. :-(

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marius
to Graeme Geldenhuys
Graeme Geldenhuys wrote 13 lines
On Sat, Oct 11, 2008 at 4:06 PM, Marius wrote: > How do i save and restore the coordinates + height/width for a IDE > plugin. I already tried IDEDialogLayoutList.ApplyLayout and > SaveLayout(Self) in the close. But this function only save and restore > the width and height. > > Is there anything what also saves the left + top coordinates? > I have been trying to find this out myself, but haven't had any replies to this. :-(

I thought this was a resonably active list..

I thought there would probably be already such an option in a place i haven't looked yet ;) I was wundering if a default boolean in the load and savelayout would hurt anybody, but i would even be better to introduce 2 new methods save/loadcoordinates for restoring left and top and using the original load/savelayout methods for restoring the width and height. Not many forms need the coordinates, what do you think?

Reply by email

Graeme Geldenhuys
to Marius
Marius wrote
> I have been trying to find this out myself, but haven't had any > replies to this. :-( > I thought this was a resonably active list..

It is, but when I posted my question, the thread strayed off-topic and the actual question of lost in conversation.

I thought there would probably be already such an option in a place i haven't looked yet ;) I was wundering if a default boolean in the load

I'm pretty sure there must be something already in place. I previously used the IDE's functionality to register a form in the "Editor Options | Windows | Window List" dialog. That restores size and position. But that was done with something which is always built into the IDE. I don't know how to access that functionality from a "external" ide add-on package.

Mattias? Any help here..?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email