Some questions about 6.0.0.9

Started by Fred Tomke, October 24, 2009, 05:21:38 AM

Previous topic - Next topic

Fred Tomke

Hello,

due to my custom scrollbar I have some further questions. For testing, I attached an example.
(Acad2008 on XP x86)


  • When I load the project and I open the form, the content of the comboboxes small increment and large increment seem to be selected although I haven't selected them. Is that by Windows design? The selection is over when I click into the control and put the cursor behind the last character. But when I resize the form the selection is appears again.
  • The labels for large increment and style are shivering/flickering when the form will be resized by the user. I set all the background colors from -24 to -16 but it doesn't help. How can I avoid that?
  • I activated the OnCancelClose event of the form to avoid closing the form after pressing enter in the textbox for the percentage value. After some tests I figured out that the argument intIsESCWasPressed of OnCancelClose isn't an integer anymore. But although I've changed my code the form cannot be closed by pressing ESC or clicking the closing button at the upper right.
    A. Are you going to change the argument data type in OpenDCL 6 for OnCancelClose?
    B. If you are going to change the data value for the argument of OnCancelClose event, it will break existing code. Shall we note this in the help step by step with the ongoing changes for OpenDCL 6 or will the help files get updated only in the end when all changes in the code were made?
    C. Is it a bug that the form cannot be closed if OnCancelClose is active, neither nil nor T is given back by the event function for OnCancelClose?
  • I activated OnKeyPressed in the PictureBox. Unfortunately, the arrow keys are interpreted as TAB-key so they cannot be captured by OnKeyPressed in the PictureBox. Is there any solution to avoid that? End, Pos1, PgUp and PgDown "are working correctly".

Thank you for watching.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

The active combo boxes and flickering labels problem should be fixed in Alpha 10. Starting with Alpha 10, I'm completely removing all the hacks I've put in to handle transparent and overlapping control, and I'm going to start over with that work, as it was becoming unmaintainable. Therefore, Alpha 10 will almost certainly have new display related problems, but at least these two should be fixed.

For OnCancelClose, I've fixed the argument type by changing it back to an integer.  To make the nomenclature more consistent, I've changed the argument name in the documentation from "Canceling" (which implies a boolean) to "Reason". The way your OnCancelClose handler is written, it can never return NIL; if you change it to return NIL, the form will close.

I've added code in Alpha 10 to ensure that the arrow keys are handled by the pciture box control when event handlers are enabled.
Owen Wengerd (Outside The Box) / ManuSoft

Fred Tomke

Hi Owen,

at first: great job on this Alpha. Having your warning about Alpha 10 in mind I can say that this sample form is getting much faster than in Alpha 9 so I'm looking forward to test all my forms on different workstations with different OS.

Details:

- OnMouseWheel works very well in Alpha 10
- Resizing the form is much faster in Alpha 10, not control flickers anymore
- Arrow-Keys are triggered in the PictureBox
- OnCancelClose does not prevent the form from closing anymore, when pressing the closing button (even without changing my code :) , I always use the line (/= intESCWasPressed 1) as the only line in OnCancelClose).

So a great Alpha, thank you!

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

jb

Hacks  :D

Makes me think of the Star Trek movie where they went back to get the hump back whales:

Owen, what we're saying is we trust your 'hacks' more than other peoples actual coding . . ..

;)
James Buzbee
Managing Memeber
Black Horse Development, LLC

Carsten

Hi,

Maybe a stupid question, but: How do I start a new post?
I do not see any button to do this, does it have to do with my profile?

Help is appreciated
Thanks
Carsten

owenwengerd

Carsten, go to the forum you want to post in, then look for 'New Topic' in the tabs at the top right and bottom right of the forum.
Owen Wengerd (Outside The Box) / ManuSoft

Carsten

Thanks, Owen
Must have been a "blind spot" for me.