Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Moving child ctrl, runtime, by mouse and keyboard
Re: Moving child ctrl, runtime, by mouse and keyboard [message #25249 is a reply to message #24747] Mon, 15 February 2010 15:15 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
Sc0rch wrote on Fri, 29 January 2010 04:43

Hi all,

I've got non-trivial problem, no testcase, sorry =(

Need to move the ctrls in layout, at runtime, using mouse and keyboard. I need it for dynamic GUI editing. Please, give me a little advice how to realize this more optimally and more in upp-style.

And also, how to get the type of ctrl? something like GetDesc() ?

Best regards,
Anton



This is sort of tricky, as widget tends to "eat" your mouse inputs, right? Smile

In the past, I solved this issue by putting transparent with empty Paint on top of all widgets I wanted to move - that way, you will still see widgets through and you will get the desired mouse inputs redirected to your designer.

Type of ctrl - what about using dynamic_cast?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Proposal: add IsReadOnly() handling inside ButtonOption
Next Topic: Is there an example/links how to use X11 DHCtrl?
Goto Forum:
  


Current Time: Fri May 10 21:03:43 CEST 2024

Total time taken to generate the page: 0.02782 seconds