C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 14th, 2003, 11:19 AM
dbz182pso dbz182pso is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Noblesville Indiana
Posts: 2 dbz182pso User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Setting Focus

Alright I am new to this board, but I have a question that I haven't been able to find an answer for, for about a month. I have a program (SDI) using MFC and there are 5 panes. Three rows, with the middle row being a pointer to 3 other panes. Now the problem is, when the user is in either of the top or bottom rows, I can't get the focus to be set to the middle frame. This is causing problems because I need this for my menu to work properly as well, and the user can't close either of the pages that open when they click the banners (Top and Bottom rows). I hope that is specific enough.

Reply With Quote
  #2  
Old January 14th, 2003, 11:51 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
Quote:
when the user is in either of the top or bottom rows, I can't get the focus to be set to the middle frame.

what do you want to say, the user "is" in the row?
is the input cursor blinking there? ... this is the definition of the "focus", like you were asking to make a circle with corners...
watch some other windows programs, once you activate the menu, the input cursor is gone. it has to. or your menu would not work.
but a menu will automatically take the focus once you click on it, if you didnīt take counter measures, so i canīt see a problem...

you can set the focus to another panel , but you will loose the input cursor on the panel where the user "is".
for this, have a look at "CWnd::SetFocus()"
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old January 14th, 2003, 01:18 PM
dbz182pso dbz182pso is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Noblesville Indiana
Posts: 2 dbz182pso User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
umm I am not sure if I am understanding what your asking. Let me clarify. The top and bottom rows are banners. HTML views. so there is no cursor in them. When the user clicks on the banner, (focus is set) i called a web page to load in the back ground. but unless the user clicks in the middle or somewhere not in that pane the user can't close the web page. And my menus are similar to this, so I decided that if there was a way to fix that problem I could solve most of the problems I have. I hope that makes since. I have tried a couple different ways but none have worked because the pane is inside another frame.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Setting Focus

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap