View previous topic :: View next topic |
Author |
Message |
hasan
Joined: 02 May 2005 Posts: 58
|
Posted: Thu Jun 11, 2009 5:21 pm Post subject: Where is GTK_WIDGET_SET_FLAGS?? |
|
|
Hi, I'm new to both GTK in general and gtkD,
I'm trying to create a custom widget based on DrawableArea, and I want it to grabFocus, but apparently it's not working because I have to set the GTK_CAN_FOCUS flag, I managed to find out where that flag is:
Code: |
import gtkc.gtktypes;
WidgetFlags.CAN_FOCUS
|
But that's not enough, I have to set it!!
How?
I tried to just call this.setFlags, but well, it didn't work.
I spent hours browsing through docs and trying various things, to no avail.
So please help. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sat Jun 13, 2009 5:16 am Post subject: |
|
|
The macros aren't wrapped currently.
For CAN_FOCUS you could use the property though:
setProperty("can-focus", 1 ); |
|
Back to top |
|
|
hasan
Joined: 02 May 2005 Posts: 58
|
Posted: Sat Jun 13, 2009 6:48 pm Post subject: |
|
|
Mike Wey wrote: | The macros aren't wrapped currently.
For CAN_FOCUS you could use the property though:
setProperty("can-focus", 1 ); |
Thanks! that did it |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|