Recent

Author Topic: Changing the color to a TPopUpMenu  (Read 3757 times)

BlueIcaro

  • Hero Member
  • *****
  • Posts: 834
    • Blog personal
Changing the color to a TPopUpMenu
« on: January 09, 2013, 07:37:16 pm »
Hi, is there any way to change the background color of the TPopUpMenu?.
I didn't find any property o method.

Thanks

/BlueIcaro

Bart

  • Hero Member
  • *****
  • Posts: 5713
    • Bart en Mariska's Webstek
Re: Changing the color to a TPopUpMenu
« Reply #1 on: January 09, 2013, 11:56:32 pm »
I would imagine that this is controlled by the underlying OS/widgetset.

Bart

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Changing the color to a TPopUpMenu
« Reply #2 on: January 10, 2013, 12:06:20 am »
I agree with Bart.
If you really need it, your chance is to make something similar to auto-complete window in Lazarus source editor (the window which appears on pressing CTRL+Space). It is a borderless (bsNone) form where you can do anything. Disadvantage is that it does not act like normal popmenu and your main form will loose the focus for a while.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

BlueIcaro

  • Hero Member
  • *****
  • Posts: 834
    • Blog personal
Re: Changing the color to a TPopUpMenu
« Reply #3 on: January 10, 2013, 02:34:33 pm »
I would imagine that this is controlled by the underlying OS/widgetset.

Bart

I think so

I agree with Bart.
If you really need it, your chance is to make something similar to auto-complete window in Lazarus source editor (the window which appears on pressing CTRL+Space). It is a borderless (bsNone) form where you can do anything. Disadvantage is that it does not act like normal popmenu and your main form will loose the focus for a while.

Yes Blaazen, I thought in that option, when I didn't any easy way to change the color of Popup Menu.  So I have to work in that way

Thanks Bart and Blaazeen for your answers

/blueicaro

 

TinyPortal © 2005-2018