realbasic-betas.mbox
[Top] [All Lists]

CreateStandardWindowMenu GLITCH, help?

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: CreateStandardWindowMenu GLITCH, help?
From: Josh Hague <jhague at koingosw dot com>
Date: Thu, 27 Mar 2003 14:31:31 -0800
For some reason, in RB 5, latest build, it'll place this newly created Window menu in the second position (to the immediate right of the "My Program" menu), instead of where it should be: right before the Help menu. Any clues?

  Dim MenuRef As MemoryBlock
  Dim err, Version As Integer

  If Not system.Gestalt("cbon", Version) Then
    Return
  ElseIf version < &h0110 Then
    Return
  End If

Declare Function CreateStandardWindowMenu Lib "CarbonLib" (inOptions as Integer, outMenu as ptr) as Integer Declare Sub InsertMenu Lib "CarbonLib" (theMenu as ptr, beforeID as Integer)
  Declare Sub DisposeMenu Lib "CarbonLib" (theMenu as ptr)

  menuRef = NewMemoryBlock(4)
  err = CreateStandardWindowMenu(0, MenuRef)
  InsertMenu MenuRef.ptr(0), 0

  DisposeMenu MenuRef.ptr(0)


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.


<Prev in Thread] Current Thread [Next in Thread>