[Gtk-sharp-list] GtkButton in_button sruct member
Ken Foster
kenfoster@tampabay.rr.com
Tue, 09 Sep 2003 11:13:52 -0400
I've been testing implementing custom widgets with Gtk# and have hit a
problem.
The current widget I was creating is essentially a drop down calculator
control to handle a currency field ala Quicken style. When I hide the
Calculator widget after the user is done, I need to change the in_button
member if the mouse is no longer over the drop button. I have modeled
the class after the source for gtkcombo.c. The call I am trying to
reproduce is below...
if (GTK_BUTTON (combo->button)->in_button)
{
GTK_BUTTON (combo->button)->in_button = FALSE;
gtk_button_released (GTK_BUTTON (combo->button)); // can do this
with widget.Release();
}
...so the question is, are their any plans on exposing struct members
that are not accessed through an existing api? If not I may need to role
my own button class to get around this if I can't find another way.
This is my first time posting to the list. If this topic is not valid
for this list please let me know.
Thanks