View previous topic :: View next topic |
Author |
Message |
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Mon Apr 14, 2008 9:48 am Post subject: Menus |
|
|
Whenever I try to open a menu, either a normal one or a context menu, I get the message "Unable to create popup window"
I couldn't find the string anywhere, but DFL has several "Unable to create x" messages, but not popup window...
Any idea where the error may be? Menus are a great thing to have |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Tue Apr 15, 2008 3:09 am Post subject: |
|
|
What kind of menus are you trying to create? With HTMLayout popups or Win32 popup menus? If it is the latter you should ask in the DFL forum, as I am not proficient in DFL... |
|
Back to top |
|
|
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Tue Apr 15, 2008 4:12 am Post subject: |
|
|
HTMLayout. I'm trying to get the menu example to work. |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Tue Apr 15, 2008 5:30 am Post subject: |
|
|
I see that these examples use some kind of behavior. I don't know if it is built in or external (the ones you were porting). If it is a built in behavior then some markup/css must be wrong on your side. If it is external it needs to be ported (correctly ). In the D wrapper you basically have two functions for popups. HElement.showAsPopup, which shows 'this' as popup using given element as anchor, and HElement.showPopup which shows given element as popup using 'this' as anchor. There are version of these functions that accept coordinates. (There is also hidePopup). I am using these in my application so I am pretty sure they work OK. |
|
Back to top |
|
|
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Tue Apr 15, 2008 6:02 am Post subject: |
|
|
The behaviors used by the menu example are:
menu-bar, popup-menu, menu, radio and check.
All these should be internal behaviors (there is a popup external behavior too. )
After I get the error, I can still see the content of the menu (the element I'm hovering over). |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Tue Apr 15, 2008 9:45 am Post subject: |
|
|
Can you use ddbg and see where the message is coming from? |
|
Back to top |
|
|
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Wed Apr 16, 2008 4:55 am Post subject: |
|
|
dfl catches all exceptions... Do you know how this can be turned off? I'm using the tango backtrace hack, so that should give a nice trace. |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Wed Apr 16, 2008 11:04 am Post subject: |
|
|
I wish I knew |
|
Back to top |
|
|
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Thu Apr 17, 2008 3:03 am Post subject: |
|
|
What am I saying? This is not an exception. It's a regular messagebox that is opened from only god knows where.. I've asked in the dfl forums: http://www.dsource.org/forums/viewtopic.php?t=3806
Hope dfl has something to do with it |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Thu Apr 17, 2008 10:31 am Post subject: |
|
|
Maybe you could try searching inside htmlayout.dll. It could be some forgotten debug message |
|
Back to top |
|
|
|