Recent

Author Topic: TPanel or me ?  (Read 4908 times)

jeanchristophe

  • Jr. Member
  • **
  • Posts: 88
TPanel or me ?
« on: June 01, 2004, 08:18:03 pm »
Hi,
I am doing a little project.
I put a TPanel on a form, properties.enabled = false, in the object inspector.
I put a TCombobox component on the same form.
events.onchange : if TPanel.enabled = false then TPanel.enabled = true, but it doesn't work
Can somebody tell me why ?
Thank you
Jean Christophe

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
TPanel or me ?
« Reply #1 on: June 02, 2004, 11:04:24 am »
I don't know if enabling/disabling of controls is implemented for all controls
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
TPanel or me ?
« Reply #2 on: June 02, 2004, 12:04:00 pm »
What do expect of enabling and disabling a panel? If I put a button in the Panel, there is no click event if I click on it while the panel is disabled (IMHO expected behaviour). Unfortunately the button doesn't show its disabled state.

jeanchristophe

  • Jr. Member
  • **
  • Posts: 88
TPanel or me ?
« Reply #3 on: June 02, 2004, 10:06:29 pm »
the button is outside the panel.
It is because I have 2 panels but just one of them have to be enabled.
The button is just a test.
Thank you
Jean Christophe

 

TinyPortal © 2005-2018