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 » changing Ctr pos, react on mouse evnt
changing Ctr pos, react on mouse evnt [message #3376] Mon, 22 May 2006 14:02 Go to previous message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
greetings

how to get position of some Ctrl on TopWindow, compare it with mouse pointer position a do some stuff...

Specificaly something like this:

inside TopWindow
virtual void LeftDown(Point pos, dword flags) {
    if(pos.x >= someCtrl.GetPos().x.GetA() && pos.x <= someCtrl.GetPos().x.GetA() &&
       pos.y >= someCtrl.GetPos().y.GetA() && pos.y <= someCtrl.GetPos().y.GetA()) {

                PromptOK("clicked inside");
    }
}


...it's wrong, but how?

[Updated on: Mon, 22 May 2006 14:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: how to add runtime StaticText and hook mouse events for it
Next Topic: ak math funcs on Ctrls
Goto Forum:
  


Current Time: Sat Jun 07 11:42:41 CEST 2025

Total time taken to generate the page: 0.05101 seconds