Solved

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

Posted on 2001-09-16
17
298 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
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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now