Skip to content
MSN

MDX Toolbar help

A TG007 community discussion started by DopeyBloke.

Discussion 6 posts
Page 1 of 1
Open
Topic #4804 · 6 published posts · 715 views

I have been working on my script and decided to add a toolbar. Anyway, I got most of it working except for one. I wanted to disable one button and not all on the toolbar.

 

did -o $dname +d 1 8 $chr(32) $+ $chr(9) $+ DataBase

 

I'm getting the following error message

 

/did: 'tbpanel' invalid id '0' (line 324, Toolbar.mrc)

 

All I want is to disable one button while in use.

 

Thanks in advance

 

DopeyBloke

you haven't supplied the id or the line number

 

did -o $dname 1 1 +d 1 8 $chr(32) $+ $chr(9) $+ DataBase

"the important thing was, that i had an onion on my belt, which was the style at the time"

OK, the id now work but can't get the button to be disable the way I want to.

 

I can do it on start up.

 

 

did -a $dname 1 +ad 4 $chr(32) $+ $chr(9) $+ DataBase

 

The above will make it freeze. With this I know it can be done elsewhere in the script.

 

So far I got this

 

did -o $dname 1 8 +ad $chr(32) $+ $chr(9) $+ DataBase

did -o $dname 1 8 +av 8 $chr(32) $+ $chr(9) $+ DataBase

 

These two lines will make a blank button freeze. Close but no cigar.

 

I want to be able to make the visible icon button freeze until further instruction.

 

Has anybody done this before and got it working? Hope someone can help me out.

 

Thanks in advance

 

DopeyBloke

 

 

when you add the icon you have to add a "d" to the flags so it knows to display it when the button is disabled

"the important thing was, that i had an onion on my belt, which was the style at the time"

Ah, I got it

 

On start

 

did -a $dname 1 +a 4 $chr(32) $+ $chr(9) $+ DataBase

 

Then on click to disable it

 

did -o $dname 1 8 +ad 4 $chr(32) $+ $chr(9) $+ DataBase

 

Where 4 is the 4th icon in the toolbar and not 8 which I include the divider.

 

Now, how do i enable it as it doesn't mention anything about it in the Toolbar Control help file?

 

Cheers

 

DopeyBloke

Edited Sep 18, 2005 3:34 PM by DopeyBloke

use the same code as you did to disable it, just take out the "d"

 

did -o $dname 1 8 +a 4 $chr(32) $+ $chr(9) $+ DataBase

"the important thing was, that i had an onion on my belt, which was the style at the time"