Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making a grid look like a listbox.
Message
 
À
21/10/1999 12:46:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00279453
Message ID:
00279482
Vues:
11
>I'm currently trying to make a grid look and work lika a listbox. Almost everything works fine, but I have three questions.
>
>1. When I click on a textbox in the grid it becomes white. How do I do to prevent the textbox to be selected, I want it to have the same color as the rest of the row.

Set the all column textbox.BackColor to the color you want to see. You can do the same to the textbox.SelectedBackColor

>2. I want the mouse pointer to look like an arrow all the time. I've tired the mousepointer properties but the mouse pointer still looks like "I want to insert characters".

Make a search, here were several threads about this.

>
>3. Is there anyway to make the grid lose focus in code without setting the focus to another control. I want no control to have focus...
>
>/Mårten

If there is an object on the form which can receive the focus it will get the focus. But you may set focus to say, the dummy textbox which is not visible (I do not mean .Visible = .f. - it may be just outside the visible part of the form. If it is a pageframe you may set focus to the page itself.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform