Sign in Join

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

Mailing lists / lazarus / 2008-05

PopupMenu property in TSplitter

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Kostas Michalopoulos

A PopupMenu property is missing from the TSplitter control, which in some cases is useful (i use it to present a popup menu for moving the splitter to the center of the form and i plan to use it to provide a "split" option later). I just added it in my copy of LCL and i think it should be added in the SVN LCL too. Just adding the

property PopupMenu;

line in TSplitter is enough to make it work.

Kostas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080516/bebda90d/attachment-0001.html

Reply by email

Cesar Romero
to Kostas Michalopoulos
Kostas Michalopoulos wrote 9 lines
A PopupMenu property is missing from the TSplitter control, which in some cases is useful (i use it to present a popup menu for moving the splitter to the center of the form and i plan to use it to provide a "split" option later). I just added it in my copy of LCL and i think it should be added in the SVN LCL too. Just adding the property PopupMenu; line in TSplitter is enough to make it work.

New property?

I cant find this in TSplitter in my Delphi 2007.
Will you send a patch?

Reply by email

Kostas Michalopoulos
to Cesar Romero
New property? I cant find this in TSplitter in my Delphi 2007. Will you send a patch?

Maybe Delphi doesn't have it, but i find it useful :-).

I have attached the patch since its just 343 bytes. It is against the latest SVN revision right now (15161).

Kostas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tsplitter-popupmenu-property.patch
Type: application/octet-stream
Size: 338 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080516/8d200ce6/attachment.obj

Reply by email

Vincent Snijders
to Kostas Michalopoulos
Kostas Michalopoulos wrote 11 lines
> New property? > > I cant find this in TSplitter in my Delphi 2007. > Will you send a patch? Maybe Delphi doesn't have it, but i find it useful :-). I have attached the patch since its just 343 bytes. It is against the latest SVN revision right now (15161).

Thanks. I reordered the properties and committed it in r15163.

Vincent

Reply by email