Print Page | Close Window

Freeze popup menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=24291
Printed Date: 19 May 2024 at 2:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Freeze popup menu
Posted By: doktor.pj
Subject: Freeze popup menu
Date Posted: 28 May 2022 at 12:21pm
I've created a menu that works for a few problems

- if I move from item to item in the menu, it is a matter of time when the menu (application) freezes. Sometimes after switching to another popup menu, the previous menu will remain displayed until I return to it. See. attachment https://forum.codejock.com/uploads/7161/menu.zip" rel="nofollow - uploads/7161/menu.zip

- Clicking on individual panels does not work in the status bar Here is an example code:

DEFINE CLASS classStatBar AS session OLEPUBLIC
    IMPLEMENTS IStatusBarEvents IN "CODEJOCK.COMMANDBARS.20.3.0"

    PROCEDURE IStatusBarEvents_MouseDown(Button AS INTEGER, Shift AS INTEGER, x AS Number, y AS Number) AS VOID
        * add user code here
        MESSAGEBOX(STR(Button)+STR(Shift),64,"IStatusBarEvents_MouseDown")
    ENDPROC

    PROCEDURE IStatusBarEvents_MouseUp(Button AS INTEGER, Shift AS INTEGER, x AS Number, y AS Number) AS VOID
        * add user code here
        MESSAGEBOX(STR(Button)+STR(Shift)+STR(_screen.active_pane),64,"IStatusBarEvents_MouseUp")
    ENDPROC

    PROCEDURE IStatusBarEvents_PaneDblClick(Pane AS VARIANT) AS VOID
        * add user code here
        MESSAGEBOX(pane.id,64,"PaneDblClick (statusbar.prg)")
    ENDPROC

    PROCEDURE IStatusBarEvents_PaneClick(Pane AS VARIANT) AS VOID
        * add user code here
        MESSAGEBOX(_screen.active_pane, 64, "IStatusBarEvents_PaneClick")
    ENDPROC

    PROCEDURE IStatusBarEvents_SwitchPaneClick(Pane AS VARIANT, Switch AS Number) AS VOID
        * add user code here
    ENDPROC

    PROCEDURE IStatusBarEvents_SliderPaneClick(Pane AS VARIANT, Command AS VARIANT, Pos AS Number) AS VOID
        * add user code here
    ENDPROC
ENDDEFINE


Development environment: Visual foxpro 9.0



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net