|
Prev: HARBOUR RC2 DAYS
Next: Data type error
From: Geoff Chambers on 4 Jul 2008 12:39 I have a SplitWindow with two panes. One of the Panes holds a shell window with no border. I have added my menu to the Splitwindow. I tried adding self:menu:SetAutoUpdate(3), but this isn't working. I gues it is trying to add the menu item to the shell, which doesn't exist. How can I manage this myself? I could but this code in my code where a add new windows to my araray of child windows.
From: Amilcar A. Camargo on 4 Jul 2008 13:47 Hi Geoff, On Fri, 4 Jul 2008 09:39:08 -0700 (PDT), Geoff Chambers <gchambers02(a)msn.com> wrote: >I have a SplitWindow with two panes. One of the Panes holds a shell >window with no border. I have added my menu to the Splitwindow. I >tried adding self:menu:SetAutoUpdate(3), but this isn't working. I >gues it is trying to add the menu item to the shell, which doesn't >exist. > >How can I manage this myself? I could but this code in my code where a >add new windows to my araray of child windows. This menu is handled automatically by windows and it seems that it expects it to be owned by the shell. You can try the following to see if this works: Subclass your Menu Assign in the splitwindow and add: SendMessage( ; SELF:oShellWindow:Handle(4), ; WM_MDISETMENU, ; 0, ; LONG( _CAST, GetSubmenu( SELF:Menu:Handle(), ; SELF:Menu:GetAutoUpdate() ) ) ) SendMessage( ; SELF:oShellWindow:Handle(4), ; WM_MDIREFRESHMENU, ; 0, ; 0L ) Maybe it works and maybe it doesn't. Give it a try. If it starts working and later on stops you will have to intecept WM_MDI... messages in your shell window. HTH, Amilcar A. Camargo F. Guatemala, C. A.
From: richard.townsendrose on 5 Jul 2008 07:14 Geoff see this white paper .... http://www.tdoc.org.uk/5WP/TDOC_WhitePaper_07.pdf richard
From: Geoff Chambers on 5 Jul 2008 15:15 On Jul 5, 7:14 am, "richard.townsendrose" <richard.townsendr...(a)googlemail.com> wrote: > Geoff > > see this white paper .... > > http://www.tdoc.org.uk/5WP/TDOC_WhitePaper_07.pdf > > richard I'm looking to teach myself programming techniques, not purchase a solution Geoff
From: Geoff Chambers on 8 Jul 2008 12:12 On Jul 5, 3:15 pm, Geoff Chambers <gchamber...(a)msn.com> wrote: > On Jul 5, 7:14 am, "richard.townsendrose" > > <richard.townsendr...(a)googlemail.com> wrote: > > Geoff > > > see this white paper .... > > >http://www.tdoc.org.uk/5WP/TDOC_WhitePaper_07.pdf > > > richard > > I'm looking to teach myself programming techniques, not purchase a > solution > > Geoff I resolved it. I am using FabOutlookBar, and since I only want one instance of a window open at a time. When I press the button to open a window it scans aChildWindows and if it exists, make it the active window otherwise it opens the window. This way I don't need the autoupdate to the menu.
|
Pages: 1 Prev: HARBOUR RC2 DAYS Next: Data type error |