Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL
Expertise: Beginner
Mar 24, 1997

QBF menu

Question:
I am using custom toolbars in my application. When I call the QBF form, it has a default menu bar. How can I get rid of this?

Answer:
While the default QBF capability is a great feature of Power Objects, it is something of a black box. The QBF form is created and called from a push button in the default toolbar, or from any push button that has a command code of 5125.

The 5125 constant for calling a QBF form is an internal constant, assigned by the OPO development team. You can use it, but there is always a possibility that the number will change in future releases.

Unfortunately, that is the beginning and end of your control over the QBF form, which like most other forms has its toolbar set in its internal InitializeWindow() method. That method, like the rest of the QBF form, is not accessible.

The only way to modify the QBF form is to replace the entire form. You can create your own form with its own toolbar and call this form for your QBF form, or you can add code to the DoCommand() method code to intercept the 5125 command code and call your own form, as in:

SELECT CASE
        CASE 5125
                frmQBF.OpenWindow()
                DoCommand = TRUE
END SELECT

When you return TRUE from the DoCommand() function, the default processing of the cmdCode variable is suppressed so that the 5125 command code will not call the default QBF form.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date