U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » SqlArray Accept() Enables controls
SqlArray Accept() Enables controls [message #4494] Sat, 12 August 2006 05:41 Go to next message
rbmatt is currently offline  rbmatt
Messages: 90
Registered: July 2006
Location: Tennesse, USA
Member
Is this intended behavior?
myarray.AddCtrl(mycontrol);
mycontrol.Disable();
myarray.Accept();

mycontrol is now enabled.

Basically my save function is just Accept(). But I don't want that to enable any controls. What should I do?
Re: SqlArray Accept() Enables controls [message #4495 is a reply to message #4494] Sat, 12 August 2006 09:08 Go to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Well, Accept itself should not enable. Anyway, setting data to Ctrl (e.g. by entering the row it is) does enable.

The reason is that if there is no cursor in ArrayCtrl, slave ctrls have to be disabled. Therefore, when you enter the row, enable must happen..

Mirek
Previous Topic: SqlArray row validation bug
Next Topic: MySql.cpp (MySqlSession::Connect)
Goto Forum:
  


Current Time: Sun Apr 26 07:57:40 GMT+2 2026

Total time taken to generate the page: 0.00413 seconds