Board index » cppbuilder » Is it possible in particular conditions don't lose the focus for a window?
gif
![]() CBuilder Developer |
gif
![]() CBuilder Developer |
Is it possible in particular conditions don't lose the focus for a window?2003-12-10 12:12:27 AM cppbuilder9 Is it possible in particular conditions don't lose the focus for a window? i have 2 windows, i want to click on a button inside the second or just move the second window without lose the focus of the first one? |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2003-12-10 04:49:08 AM
Re:Is it possible in particular conditions don't lose the focus for a window?
"gif" < XXXX@XXXXX.COM >wrote in message
Quotei have 2 windows, i want to click on a button inside the second focus must shift to the button (and the form it resides on) before it can receive the mouse and keyboard events. That means shifting the focus away from another window/control first, if one is already focused at the time. Gambit |
gif
![]() CBuilder Developer |
2003-12-10 10:09:44 PM
Re:Is it possible in particular conditions don't lose the focus for a window?
No, what i means to tell is lose a focus, that is if i click on a 2°window
normally i lose the focus at the first one and it pass at the second. Ok, i don't want that it happen. before the second one get the focus i want override it and so lose the focus, is it possible? But can i anyway click for example on its button? "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >ha scritto nel messaggio news:3fd63432$ XXXX@XXXXX.COM ... Quote
{smallsort} |
chris
![]() CBuilder Developer |
2003-12-10 10:41:56 PM
Re:Is it possible in particular conditions don't lose the focus for a window?
"gif" < XXXX@XXXXX.COM >a écrit dans le message de news:
XXXX@XXXXX.COM ... QuoteNo, what i means to tell is lose a focus, that is if i click on a 2°window windows that have the focus simultaneously; so your first window must loose the focus when you click the button on the second form. Maybe what you can do is to give the focus to the first window when the button click is finished (not tested): TForm2::Button1Click(TObject* Sender) { //your treatment Form1->SetFocus(); } Quote"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >ha scritto nel |
gif
![]() CBuilder Developer |
2003-12-10 11:40:01 PM
Re:Is it possible in particular conditions don't lose the focus for a window?QuoteMaybe what you can do is to give the focus to the first window when the override the message used to set the focus at the second window if i click over it or i call it but pass immediatly the focus atthe first! I think it is really possible... |
gif
![]() CBuilder Developer |
2003-12-12 02:27:38 AM
Re:Is it possible in particular conditions don't lose the focus for a window?
some suggestion?
|
Boba
![]() CBuilder Developer |
2003-12-12 04:16:45 AM
Re:Is it possible in particular conditions don't lose the focus for a window?
"gif" < XXXX@XXXXX.COM >wrote in message
Quotesome suggestion? focus: you just monitor where the focus goes to right before your window looses it; then you let the focused window process its input only messages and take the focus back by force. For a user, it looks like the focus has never been lost by your window (for very slow videocards, I had to paint NC area of my window manually during this swap). There was a serious problem with the tasks written with an assumption that user io is slow enough so they've got plenty of time to process it: in that case I had to boost up my priority, and sometimes even to jump to ring0 and CLI against the drivers written with the same belief. Boba |
gif
![]() CBuilder Developer |
2003-12-12 09:55:40 PM
Re:Is it possible in particular conditions don't lose the focus for a window?
What is the best internet resource about messages queues and handling
(borland builder users). |
Boba
![]() CBuilder Developer |
2003-12-13 01:29:30 AM
Re:Is it possible in particular conditions don't lose the focus for a window?
"gif" < XXXX@XXXXX.COM >wrote in message
QuoteWhat is the best internet resource about messages queues and handling |