[Gtk-sharp-list] ToggleToolButton, CheckMenuItem, active,
don at env.com.ua
Wed Nov 16 15:52:05 EST 2005
sorry for some stupid newbie questions, I'm stucked with
synchronization of the 2
widgets' state, I have and application with Glade file (menu item and
are created there). In the glade I also add toggled signal for the CheckMenuItem
menu; and ToggleToolButton button; on a toolbar. they both are
connected to something like OnWindowToggled() function, how can I do
private void OnWindowToggled(...)
window.Visible = !window.Visible;
menu.Active = window.Visible;
buton.Active = window.Visible;
Is there some universal property/method which could set Checked / Toggled
property of these 2 widgets *without* rising a toggled event?? ...
lost a bit ...
I've been plaing with the State property in the ToggleToolButton but there are
also some problems with it and in CheckMenuItem there is no such thing ...
(or at least I did not succeed to get it running in a good way).
I liked Gtk# a lot but after using SFW it sometimes not very intuitive
:) (that's why
refference manual exists of course :), but they are still not complete
also. By the
way I liked a lot tutorials / help on Mono's Mediawiki - good job! (I
would like to
have tutorial on Toggled / Checked controls there, even could write myself when
will understand them clearly).
it would be nice to have:
checkItem.Checked - calls signal/event
checkItem.SetChecked(bool) - changes state without signal
toggleItem.Toggled - toggles and calls signal/event
toggleItem.SetToggled(bool) - changes toggled state without signal
Another thing is regarding widgets you use in MonoDevelop, there is a comment
that they are licensed using Novell license but MD uses GPL. Are there plans to
make something like higher-level Widgets library (TreeView, PropertyGrid,
Commands, Docking, etc.) and release them using less restrictive license?
It would be nice to have them as a separate project. (I guess it should be in MD
Thanks in advance
More information about the Gtk-sharp-list