home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPBlue PPC client release 0.0.4
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MrSensitive" data-source="post: 44947" data-attributes="member: 10304"><p>Flipit, </p><p>You must think more along the lines of a game engine.. (a 2D game engine that is..)</p><p></p><p>what I do with all other elements (I don't call them controls) is draw all graphics on a GDI surface..</p><p>all click handling is done in the main form, and starts by identifying what element has been hit. in the case of a listbox this would be a listitem in the listbox. the listitem can contain actions that need to be executed, or other stuff</p><p></p><p>the treeview is an exception for now.. the listbox element would contain a arraylist of listitem elements (did not yet thought it through completely...)</p><p></p><p>and in the draw method there should be som sort of logic to determine what listitems are currently visible and draw only those..</p><p></p><p>etc etc..</p><p></p><p>send me the code, maybe I can rewrite it a bit to fit in this structure..</p><p></p><p>thanks..</p></blockquote><p></p>
[QUOTE="MrSensitive, post: 44947, member: 10304"] Flipit, You must think more along the lines of a game engine.. (a 2D game engine that is..) what I do with all other elements (I don't call them controls) is draw all graphics on a GDI surface.. all click handling is done in the main form, and starts by identifying what element has been hit. in the case of a listbox this would be a listitem in the listbox. the listitem can contain actions that need to be executed, or other stuff the treeview is an exception for now.. the listbox element would contain a arraylist of listitem elements (did not yet thought it through completely...) and in the draw method there should be som sort of logic to determine what listitems are currently visible and draw only those.. etc etc.. send me the code, maybe I can rewrite it a bit to fit in this structure.. thanks.. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPBlue PPC client release 0.0.4
Contact us
RSS
Top
Bottom