Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 11:46 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: HTMLTextAreaModel
PostPosted: Thu Jul 26, 2012 9:54 pm 
Offline

Joined: Thu Jul 26, 2012 9:48 pm
Posts: 5
What's the exact purpose of HTMLTextAreaModel button html? Couldn't find any examples of usage and neither get it to work.

Currently trying to get a way of having right click popup-menu on TextArea specific text part, any ideas or suggestions?


Top
 Profile  
 
 Post subject: Re: HTMLTextAreaModel
PostPosted: Fri Jul 27, 2012 4:48 pm 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
button is a bit misleading, but it stands for a custom widget you can add. This means you can add any widget to a HTML text, nice huh :D (Just look at TWLexamples for a test)

_________________
Current Projects:
Image Mr. Hat I
Image Vegan Vs. Zombies
Projects:
RadicalFish Engine - Build on top of Slick2D, Ideas, Bugs? Open an Issue ticket!


Top
 Profile  
 
 Post subject: Re: HTMLTextAreaModel
PostPosted: Fri Jul 27, 2012 5:18 pm 
Offline

Joined: Thu Jul 26, 2012 9:48 pm
Posts: 5
Thought so that name was a bit misleading, i was missing registerWidget :) Thanks.


Top
 Profile  
 
 Post subject: Re: HTMLTextAreaModel
PostPosted: Fri Jul 27, 2012 5:39 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1190
I added the Callback2 interface which you can use to implement element specific context menus and other things.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject: Re: HTMLTextAreaModel
PostPosted: Sun Jul 29, 2012 12:58 am 
Offline

Joined: Thu Jul 26, 2012 9:48 pm
Posts: 5
MatthiasM wrote:
I added the Callback2 interface which you can use to implement element specific context menus and other things.


Thanks a lot :)

Not sure if related to that exact revision, didn't had it before ( haven't used nightlies ), but an issue:
I've resizeableframe widget on. There is text-area inside. When i move my mouse on the edge of screen it triggers the resize-mouse-cursor. Everything fine so far... But when i move the cursor from that state to fast moving it onto text-area widget cursor stays as resize one instead of going normal.


Top
 Profile  
 
 Post subject: Re: HTMLTextAreaModel
PostPosted: Sun Jul 29, 2012 10:05 am 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1190
This is indeed a bug and I can reproduce it - I'll post an update when it is fixed.

Edit: I fixed by cleaning up the mouse cursor handling in ResizableFrame.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group