Control Box

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Control Box

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:01 pm

by Michael Hill >> Thu, 19 Apr 2001 23:14:00 GMT

Morning All,

Does anyone know if it is possible to either :

A) Turn the menu options off in the ControlBox
B) Get Rid of the menu altogether.

The reason for asking is that we are coming from 4.2.2 (no comments) up to V5 and a large percentage of our screens have no controlbox but have the min/max buttons and I need to recreate this. There has been a change in the way jade hands this between the versions.

Anyone have any ideas?

Cheers

Michael Hill
Cardax (International) Ltd

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Control Box

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:01 pm

by Craig Shearer >> Fri, 20 Apr 2001 1:43:51 GMT

Hi Michael

There's a Boolean controlBox property on Form. This would allow what you want I think.

Anyway, what's the problem with the control box? Will it kill the users to have one where there wasn't one previously? :-)

Craig,

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Control Box

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:01 pm

by David Mitchell >> Fri, 20 Apr 2001 1:52:42 GMT

I was going to suggest the same thing Craig but on closer inspection fo the original question we see that Michael wanted to keep the maximise and minimise buttons, which setting controlbox to false doesn't do

David

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Control Box

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:01 pm

by Craig Shearer >> Fri, 20 Apr 2001 2:29:21 GMT

Ah yes... you're right! That is interesting. Well, the other approach would be to look for a Windows API call that controls this - there must be one, but afraid I can't really help in that department. (I'm sure back a long time ago, I did something similar in VB3 - though I'd never admit to that! I'm pretty sure you can get a handle on the menu and then send messages to it to remove stuff from it, or even add stuff - though in this case I'm not sure how you'd get the messages back into JADE.)

Craig

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Control Box

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:01 pm

by Michael Hill >> Fri, 20 Apr 2001 3:26:02 GMT

Thank you for that guys.

I have actually found a bit of VB6 code that I was able to convert to Jade that does exactly what I what to do. It also removes the menu items from the controlbox that aren't required.

Michael


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests