Re: VDC: bug with multiple windows
wh <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I finally nailed the bug (I think...): In ScreenHandler::activeWindow
the current window is enabled, but not the corresponding menu.
Here a diff against SVN version 2084:
--- screenhandler.cpp.orig 2013-11-29 17:20:20.418928500 +0100
+++ screenhandler.cpp 2013-12-02 09:08:05.684202700 +0100
@@ -3101,6 +3101,7 @@
if(form->windowName == windowName){
p_fglform = form;
form->setEnabled(true);
+ form->setMenuEnabled(true);
form->raise();
}
@Daniel: would you mind including this patch in the official SVN source?
Walter
> Hello,
>
> today I discovered a problem with VDC when I use MENU and more than one
> form/window at a time. If I open a window, start MENU and open a new
> window in a MENU COMMAND, the menu in the "main" form is completely
> disabled, even if i "switch" to the "master" window with CURRENT WINDOW
> IS...
>
> When you start the follwing example and choose "test" option, the
> detail
> window is created, but the menu in the main window stays disabled.
>
> here the example code:
> test.4gl
>>>>
> main
> open window main with form "f1"
> display "main" to m1
> menu "main"
> command "test"
> open window detail1 with form "f2"
> display "d1" to d1
> current window is main
> command "end" exit menu
> end menu
> end main
> <<<
>
> f1.per
>>>>
> database formonly
> screen
> {
> Master Window [m1 ]
> }
> attributes
> m1 = formonly.m1 type char;
> <<<
>
> f2.per
>>>>
> database formonly
> screen
> {
> Detail Window 1 [l000 ]
> }
> attributes
> l000 = formonly.d1;
> <<<
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into
> your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk