Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 17 NOV 2003 12:26:08PM Paul Rowe wrote:

I'm trying create a window with a combo box at the very bottom (similar to the Windows Open file dialog for instance).

This gets a bit tricky because Form Designer won't let me size the dropdown to be beyond the bottom of the form when I need it to be about four lines of text past the bottom window frame.

I can size the control in Form Designer first and then drag it into position and this works ok except for one problem - the window no longer resizes. The dropdown works fine, but if you maximise the window the control is positioned relative to the top of the form (ignoring my bottom anchor) and click and drag on the window frame seems to be disabled.

It works if the combo box dropdown is only a little over the boundaries of the window frame.

Has anyone else encountered this? Are there any clever work arounds?

We're using OI 4.1.2.

Thanks,

Paul


At 17 NOV 2003 12:26PM Oystein Reigem wrote:

Paul,

I might be wrong about that old posting. And that style stuff might not be relevant at all.

But anyway - I tried what you did. It seems what happens when you maximize depends on just how far below the bottom frame the dropped down box extends.

If it's just a line or so there is no problem. You max the form, and the combo places itself at the bottom all right. When you click the combo button, the list even drops upwards, since it otherwise would go beyond the bottom of the screen.

But if the dropped down size is further below the bottom frame you get the problem you describe. You max the form, and the combo stays in its original Y position. The anchoring setting seems to be ignored.

Perhaps this observation makes it easier for Revelation to find the cause and fix the problem.

In the meantime you might be able to program around the problem. Try to move the combo yourself in the window's SIZE event. (Maybe you should untick the anchor setting if you do that.)

- Oystein -


At 17 NOV 2003 12:26PM Paul Rowe wrote:

Thanks Oystein. I was able to get it working by taking off the bottom anchor and handling the resizing myself through the size event.

As you say, it only happens if the dropdown is more than two or three lines. It seems to be an OI bug, as the control itself works fine in that position.

It'd be good if Revelation could check this out. It may be something simple, like currently ignoring controls which are a negative number of pixels above the bottom border (in my case the control extends 30 pixels beyond the bottom border).

Paul


At 17 NOV 2003 12:26PM Oystein Reigem wrote:

Paul,

I seem to remember somebody with the same problem posting a year or two (or three?) ago, but searching now I can't find anything.

In some interfaces you see lists dropping upwards when there is not enough room downwards. Is that only in web pages? Or can one have that in Windows apps too? I don't know. But you might want to check if there is some style setting for combos that can make them drop upwards.

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/de8b138bb39b5adb85256de1005fc6c5.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1