various errors, on attempt to use TNotebook (not TPage) as parent
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Obviously placing a component (TLabel, TEdit) directly on the TNotebook, instead of using a TPage is not an allowed action.
However I found that the error handling for this case is not working very well.
(experienced on Vista (0.9.24, 0.9.25 23rd Nov) and Freebsd (0.9.25))
2 different examples. Both starting with a new Project (Application) and a TNotebook (with no pages) placed on an otherwise empty form (place the Notebook somewhere in the middle of the Form)
Select TEdit from the ComponentTab, and click on the notebook (as to create a TEdit as child of the Notebook).
An error is displayed about not able to "move" the TEdit. (This error msg is certainly not helpful, should be changed)
All seems normal, until you place a 2nd TEdit (this time on the form)
The Tree-View in the object Inspector, will now show BOTH TEdits. You can select the TEdit1 in the Treeview (but you can not select it on the Form). It also does not draw correctly. It appears to be somehow incomplete.
- start again:
This time place the 1st TEdit directly on the Form.
Then use the TreeView in the object Inspector and try to drag and drop the Tedit onto the Notebook.
An Exception is Displayed (should be captured, and a proper Error should be displayed)
Acknowledging the exception with OK allows you to continue working (and so far, I have not found any side effects)
Acknowledging the exception with Cancel, should terminate Lazarus => works on Freebsd, hangs on Vista