1 Son düzenleyen, Hans L (07.03.2011 00:32:16)

Konu: Removing a particular button from a commandgroup

I have treid for 30 minutes to find a way to remove a particular button from a commandgroup, but to no avail.

By changing the buttoncount in the dommandgroup, I can change the number of buttons, but they are removed in the order they were added. Is there any way to remove buttons 2-4 of 5 buttons?

Regards,

Hans L

2

Re: Removing a particular button from a commandgroup

AFAIK no. You can however set their visibility to .F. and arrange to be after 5th. But why don't you simply use one with ButtonCount = 3. If the problem is the code contained then there should be a design flaw. Buttons' code should be as simple as possible, mostly a single line calling a method.

3

Re: Removing a particular button from a commandgroup

Thank you, Cetin. YEs, I did set the visibility to .F. for the buttons I did not want, just for simplicity and to save time now, I will redo the thing later.

Regards,

Hans L