[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Why I can't use my mouse to setfocus to the control?

Posted on 2001-09-16
17
Medium Priority
?
326 Views
Last Modified: 2013-12-26
Hi experts,
I can't use my mouse to setfocus to the control, but I still can setfocus to the control with "TAB" key. How can I solve this problem?

I'm using PB7.0
Thanks,
DrVannacult
0
Comment
Question by:DrVannacult
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
17 Comments
 

Author Comment

by:DrVannacult
ID: 6485827
The control that I said was the textbox control.
In others control I can setfocus with mouse clicking.
But always can't did it with textbox control!

How can I solve this?
plz help newbie,
Thanks much experts,
DrVannacult
0
 
LVL 4

Expert Comment

by:Bhatti
ID: 6487779
In main menu <Design> --> taborder set the number in seq. such that the first control where you want to set focus set to 10 and others more then 10. when you will open youe window or other object,  the PB set the focus to this cotrol in object.

First PB set the textcontrol taborder to zero(0) set it to 10 and others more then 10.

Try it and let me know.

Bhatti
0
 

Author Comment

by:DrVannacult
ID: 6487942
Hi Bhatti,

I've tried and I still can't setfocus to textbox by mouse.
But my dropdown-listbox can setfocus either mouse and "TAB" key. Only the textboxs still can't setfocus by mouse clicking...... I've no idea how to solve this stuff!
8(

Thanks experts,
DrVannaCult
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:Bhatti
ID: 6488115
With doubleclicked on the text control goto the properties and set the checkedbox focusrectagle to true.
May this help you.

Bhatti
0
 

Author Comment

by:DrVannacult
ID: 6489738
Hi, Bhatti

In properties window I can't found the focusrectangle checkbox, It's just have Visible,Enabled,DisplayOnly,Password,AutohScroll,HideSelection,RightToLeft and Border.

I'm using PB7.0.3 C5
Thanks much,
DrVannacult
0
 
LVL 4

Expert Comment

by:Bhatti
ID: 6489953
You want to set a focus to "textcontrol", then please go to the text-control properties, you find here the checkbox for "focusractangle". checked it and then enabled also checked and when you click on it in run time you will see a focus on it. (So again in the properties of the "textcontrol")

Let me know please.


Bhatti
0
 

Author Comment

by:DrVannacult
ID: 6489975
I still can't found the "focusrectangle" checkbox, I've inspect all checkbox in properties window... my SingleLineEdit control still can't focus by mouse!

uhm, plz help me
Thanks experts
DrVannacult
0
 

Author Comment

by:DrVannacult
ID: 6489979
Oh, I saw that "focusrectangle" property. But It's in StaticText Control not the SingleLineEdit control that I said, sorry for my uncleared word! So how I'll do next...

8p
Thanks expert,
DrVannacult
0
 
LVL 4

Expert Comment

by:Bhatti
ID: 6490273
I am not understanding what do you mean by mouse focus on the "singlelineedit". To focus a control or SingeLineEdit you can do so:

1)       Use the PB SetFocus() function in the open event of the window.(When you will open your window, PB set the focus to the singlelineedit.

2)       Use the menu <Design --> TabOrder> and set the taborder for this siglelineedit to 10 and others more then 10. (When you will open your window PB set focus to the SingleLineEdit.


Or explain me please what do you want to do.


Bhatti
0
 

Author Comment

by:DrVannacult
ID: 6491077
Hi expert,

In my window object, When I click the mouse in the SingleLineEdit control. The cursor didn't goto the control(I called this -> I can't setfocus to it). But when I use "TAB" key. The cursor can/will move to it. It's behavior likes it have been disabled but not that... at least, I can use "TAB" to work with that, but always can't use my mouse.

Hope you understand my problem
Thanks you much
DrVannacult
0
 
LVL 4

Expert Comment

by:Bhatti
ID: 6496140
I am realy not understanding, did you realy have a singlelineedit control in window or may you have datawindow column with taborder 0.

Or please check the scrip in the clicked event of the Singlelineedit control, if you have any.

Relax and check it carefully.

Clicking on the SingleLineEdit control it have to get the focus on it.
0
 

Author Comment

by:DrVannacult
ID: 6496334
ok thanks much Bhatti
I'll check it again,

DrVannacult
0
 
LVL 3

Expert Comment

by:hink
ID: 6503186
In datawindow, I met this problem once. I didn't set itemfocus by mouseclicking, when there was another column hidden in header band on the same place. It was hidden due to the header height was less than its Y position, but it was on the same position as the affected column.
0
 
LVL 4

Expert Comment

by:Bhatti
ID: 6505892
Hi DrVannacult ,

What about your (SingleLineEdit)?
0
 

Expert Comment

by:pepe
ID: 6519307
Hello DrVannacult,
 
               I have your problem any time, but i not is the setfocus () problem, the problem is the windows, i thinks is a bug,  but you open the windows (original), change the type of windows and save it and close.  Immediately open the windows and change type again (before type), save and run the program.  

I'm not an Expert.  Sorry for my inglish because is very poor.

Let me know please.

bye.
Pepe - Argentina
0
 

Author Comment

by:DrVannacult
ID: 6520063
Hi all,
I can solve this problem by change the window's type. Before I solve this problem I set the window's type to "Child" but when I changed to "Main" or "PopUp". This can solve the problem.

Thanks FYI,
DrVannacult
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8297077
PAQ'd and points refunded

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question