author=owenwengerd link=topic=1865.msg9170#msg9170 date=1345482614 wrote:
You describe two different problems, and it seems neither problem actually has anything directly to do with the order of OnSize and OnMousEntered.
Problem #1: Minimum palette size set in .odcl is not honored.
This is likely caused by bugs in the implementation of palettes in Bricscad, but I will check this again to see if anything can be done to work around the problem. For now, I'm afraid you are stuck with the problem.
I've already entered a support request to Bricsys, they said they are investigating to solve the problem.
author=owenwengerd link=topic=1865.msg9170#msg9170 date=1345482614 wrote:
Problem #2: Displaying an (alert) dialog during OnMouseEntered makes it difficult to resize a palette.
If your OnMouseEntered event causes the input focus to change away from the palette as soon as the mouse enters, you should expect this consequence. This is why I asked you to display events in a listbox: to ensure that your diagnostic code does not change its subject. Even so, if you had posted your sample code with (alert) instead of (princ), your mistake would have been immediately obvious and we could have avoided this long discussion.
I had just entered the alert because this would have helped prevent the verification of the first problem.
My real problem is in fact the correct sizing of controls.
In my application there is also the event "OnMouseEntered", but this is not a problem as long as there is an "alert" on the inside.
During my tests carried out to check what was the problem I added an alert and I noticed that too minor error.
It was not my intention to dwell too this discussion.
So if you agree, now I want to focus in finding a solution to the first problem.
author=owenwengerd link=topic=1865.msg9170#msg9170 date=1345482614 wrote:
Finally, instead of resizing controls in OnSize, it would be more efficient to set them to resize automatically with the form. For example, you can set the {2} of your button to 1 so that its width changes automatically.
This is great because it greatly simplifies my code.
Too bad that in Bricscad has the same problem of my solution :'(
Probably I will have to wait for the solution of Bricys.
Anyway thanks for the help!