 |
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1652
|
Re: Can anybody help me?
WEll, online translation doesn't work too well...
Offhand I think the question is something like "how to update a dir control's path field without using a mouse/with a button"
Not sure exactly, but even if accurate, couldn't translate a reply that would make sence.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
|
23-02-2003 at 06:23 PM |
|
|
Aleks Level: Scholar

 Registered: 10-11-2003 Posts: 32
|
Re: Can anybody help me?
Sip, JLara estás en lo cierto, pero además ramicelis quiere que el control se actualize cada vez que se aprete una tecla.
Ahora si lo que quiere es que se actualize si se apreta una tecla dentro del control, es facil ya que solo tiene que agregar el codigo que pusiste dentro del evento KeyPress. Sino si quiere que sea este donde esté el foco del control, tiene que usar el api de estado del teclado (creo que GetAsyncKeyState) para que cuando se detecte una tecla presionada, refresque el control dir.
[English]
Yes, JLara is in the right way, but also Ramicelis wants to refresh Dir1 control every time that a key is pressed.
Right now, if he wants to refresh the control when focused and key is pressed, is quite easy, only adding your code into KeyPress event is all to do.
Also if he want to refresh the control with focus in any control, is only possible with an api call to keyb proc (GetAsyncKeyState, i believe :-/ ) to hook the key press and refresh dir.
(so, i have some grammar errors, but if above text is not legible to you, please reply me)
____________________________
Aleks
|
|
19-11-2003 at 06:27 AM |
|
|
|
|
 |
 |