Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Gráficos (https://www.clubdelphi.com/foros/forumdisplay.php?f=8)
-   -   Como saber si existen asteriscos en pantalla (https://www.clubdelphi.com/foros/showthread.php?t=35153)

Rassiel 02-09-2006 02:59:33

Como saber si existen asteriscos en pantalla
 
Necesito saber como conocer si existe alguna aplicacion con asteriscos en pantalla y modificar las propiedades de la caja de texto para mostrar el contenido de los mismos.

Salu2.

seoane 02-09-2006 04:07:43

No se cual es tu intención, pero aquí te dejo esta función. Convertirá todos los edits con asteriscos en edits normales.

Código Delphi [-]
function EnumChildProc(Handle: Thandle; lParam: LPARAM): BOOL; stdcall;
begin
  Result:= TRUE;
  if  (GetWindowLong(Handle,GWL_STYLE) and ES_PASSWORD) > 0 then
  begin
    PostMessage(Handle,EM_SETPASSWORDCHAR,0,0);
    RedrawWindow(Handle,nil,0,RDW_INVALIDATE);
  end;
end;

function EnumWindowsProc(Handle: Thandle; lParam: LPARAM): BOOL; stdcall;
begin
  Result:= TRUE;
  if isWindowVisible(Handle) then
    EnumChildWindows(Handle,@EnumChildProc,lParam);
end;

procedure NoMasSecretos;
begin
  EnumWindows(@EnumWindowsProc,0);
end;


La franja horaria es GMT +2. Ahora son las 01:17:31.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi