Subclass of the toolbar

The place for peer-to-peer support for Visual ProMatrix versions older than VPME 9.1.

Subclass of the toolbar

Postby jporrata » Mon May 25, 2015 1:05 am

Hi,

How can I subclass the toolbar_all class? I need to use the toolbar but without the navigation buttons.

Thanks
jporrata
 
Posts: 85
Joined: Mon Aug 16, 2010 3:55 pm

Re: Subclass of the toolbar

Postby Bob » Mon May 25, 2015 6:31 am

In the init of the form, try this code:

_screen.oApp.otoolbar.cmdNEXT.Visible= .F.

You can figure out the rest ...

You'll likely need to disable the hot keys as well...

Have you thought about using a form_singlerecord? No toolbar, but no nav either.
Bob
 
Posts: 718
Joined: Mon Jun 14, 2010 6:53 am
Location: Near Albany, NY

Re: Subclass of the toolbar

Postby jporrata » Mon May 25, 2015 8:02 am

Hi Bob,

I tried that but for some reason when calling a child form from that form the new toolbar also hides the navigation buttons. I was able to subclass the toolbar_all class and then set the visible property to .f. in the new class and use it in the cToolbar property on that form.

Thanks for your reply!!!
jporrata
 
Posts: 85
Joined: Mon Aug 16, 2010 3:55 pm


Return to VPM - older versions

Who is online

Users browsing this forum: No registered users and 1 guest

cron