Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13975
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 28 21:48:24 CEST 2024

Total time taken to generate the page: 0.02482 seconds