[EMAIL PROTECTED] wrote: > I just saw, that the drive list in a DriveComboBox does not update > automatically! > > In these USB days that would be nice to have.
I wouldn't really expect it to happen automatically. If changes to the drive list are broadcast at all, they're broadcast to top-level windows, and then it's the top-level windows' job to adjust their controls accordingly. > But how do one get the combo thing to get an updated drive list? > > Calling Refresh, Repaint, Update or Invalidate does not do the job. No surprise there. Those functions are all related to painting. What you're looking for is a change to the underlying data backing the list, not just how things are drawn on the screen. > However > with DriveComboBox1 do > TextCase:=TextCase; > > does!!!?? It's probably either the act of writing to the property or the act of reading from the property, not both. More likely the former, in which case you could probably write anything you want to that property, including nonsense, and it would update the drive list. A look at the source code would reveal what's really going on. It would also show whether the class has any functions for updating the drive list in a less round-about manner. > A colleague just found it somewhere on the web. An unducumented > feature ? Doubtful. How old is that control? Pretty old, right? It was probably written back when the list of drives wouldn't change very often. -- Rob _______________________________________________ Delphi mailing list -> Delphi@elists.org http://www.elists.org/mailman/listinfo/delphi