FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Menus

 
Post new topic   Reply to topic     Forum Index -> flowerd
View previous topic :: View next topic  
Author Message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Mon Apr 14, 2008 9:48 am    Post subject: Menus Reply with quote

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 Smile
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Tue Apr 15, 2008 3:09 am    Post subject: Reply with quote

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
View user's profile Send private message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Tue Apr 15, 2008 4:12 am    Post subject: Reply with quote

HTMLayout. I'm trying to get the menu example to work.
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Tue Apr 15, 2008 5:30 am    Post subject: Reply with quote

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 Smile ). 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
View user's profile Send private message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Tue Apr 15, 2008 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Tue Apr 15, 2008 9:45 am    Post subject: Reply with quote

Can you use ddbg and see where the message is coming from?
Back to top
View user's profile Send private message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Wed Apr 16, 2008 4:55 am    Post subject: Reply with quote

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
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Wed Apr 16, 2008 11:04 am    Post subject: Reply with quote

I wish I knew Smile
Back to top
View user's profile Send private message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Thu Apr 17, 2008 3:03 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Thu Apr 17, 2008 10:31 am    Post subject: Reply with quote

Maybe you could try searching inside htmlayout.dll. It could be some forgotten debug message Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> flowerd All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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