🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.tools
2 messages
2 total messages Started by Mike Dodd Mon, 28 Dec 1992 07:52
Menu in TDialog 'window' creating background strip under it.
#666
Author: Mike Dodd
Date: Mon, 28 Dec 1992 07:52
22 lines
1380 bytes
I am programming in OWL using a TDialog for my MainWindow.  I have a menu
in it, when that menu is 'attached' it leaves a Strip about 2 pixels high
under the menu_strip itself.  This Strip contains whatever was on the screen
at that spot, and when the window is moved so goes the 'graphics' inlaid in 
the strip.

Is this a programming bug in Windows, Borland, or me?

My solution so far is to eliminate the menu and rely totally on buttons
for interaction.

I have tried 'stretching' the dialog box upward, but when the program is
executed and the menu-strip is attached the gap is still there.
	
			    -Mike

+-----------------------------------------------------------------------+
|   Michael E. Dodd		Internet:  dodd!dodd@seq.uncwil.edu     |
|   219 Pershing Court		Voice:     919/799-9453                 |
|   Wilmington, N.C. 28412	(Answering Machine on between 4-10PM)   |
+-----------------------------------------------------------------------+
Re: Menu in TDialog 'window' creating background strip under
#668
Author: Chris Marriott
Date: Mon, 28 Dec 1992 21:10
30 lines
1960 bytes
In article <UuIcs*6t2@dodd.UUCP> dodd!dodd@seq.uncwil.edu writes:

>
>I am programming in OWL using a TDialog for my MainWindow.  I have a menu
>in it, when that menu is 'attached' it leaves a Strip about 2 pixels high
>under the menu_strip itself.  This Strip contains whatever was on the screen
>at that spot, and when the window is moved so goes the 'graphics' inlaid in 
>the strip.
>
>Is this a programming bug in Windows, Borland, or me?
>
>+-----------------------------------------------------------------------+
>|   Michael E. Dodd             Internet:  dodd!dodd@seq.uncwil.edu     |
>|   219 Pershing Court          Voice:     919/799-9453                 |
>|   Wilmington, N.C. 28412      (Answering Machine on between 4-10PM)   |
>+-----------------------------------------------------------------------+
>

It's a bug in Windows.  Although dialog boxes can, in theory, have a
menu, Windows messes up the measurements, as you've discovered!

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads