Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ToolBar:disableItem() problem

8 views
Skip to first unread message

Fred Killet

unread,
Jun 5, 2003, 1:46:00 PM6/5/03
to
Hello VO specialist,

its me again, Fred. (Ok, Geoff? <bg>)

I have a question about toolbars with self defined toolbar buttons. In my
application both the self defined toolbar buttons and the toolbar buttons
predefined in VO are first correctly indicated in the shells toolbar. If I
try to gray a self defined button with oToolBar:disableItem(), then not the
design of the button is grey represented but the whole button is in dark
grey represented. The contents of the buttons are quasi deleted. If I call
oToolBar:enableItem(), the button is normally represented again. The buttons
predefined in VO does not show this behavior. They are grayed as expected.
This behavior arises under VO 2.5 (latest version).

Does someone have a notion, what could be there?

Cheers Fred


Peter Grant

unread,
Jun 6, 2003, 6:33:37 PM6/6/03
to
Hello Fred,

add the constant BMP_3DTRANSPARENT in the init of your Toolbar.

METHOD Init() CLASS BMPTOOLBAR
super:init(ResourceID{"BMPTOOLBAR", _GetInst()}, BMP_3DTRANSPARENT)

Greetings from the Eifel
Peter


"Fred Killet" <kil...@killetsoft.de> schrieb im Newsbeitrag
news:bbnvrl$jah$1...@online.de...

Fred Killet

unread,
Jun 7, 2003, 2:57:05 AM6/7/03
to
Hi Peter,

You wrote:
> add the constant BMP_3DTRANSPARENT in the init of your Toolbar.

I made some experiments and I found that I must not add the 3DTRANSPARENT to
the ToolBars Init() but to the BitMaps Init().

Then it works well. Thank you!!

Fred


"Peter Grant" <Peter...@gtsoft.de> schrieb im Newsbeitrag
news:bbr4te$p0q$06$1...@news.t-online.com...

0 new messages