Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 11-02-2004
Isaac Isaac is offline
Miembro
 
Registrado: feb 2004
Ubicación: Ferrol
Posts: 77
Poder: 21
Isaac Va por buen camino
Mensaje de Yes/No

En VB hay una especie de Showmessage, pero que no muestra sólo un mensaje, si no que da la opción de pulsar un Yes/No (o algo parecido, ahora no recuerdo). ¿Hay algo así en Delphi?
Responder Con Cita
  #2  
Antiguo 11-02-2004
Avatar de delphi.com.ar
delphi.com.ar delphi.com.ar is offline
Federico Firenze
 
Registrado: may 2003
Ubicación: Buenos Aires, Argentina *
Posts: 5.932
Poder: 27
delphi.com.ar Va por buen camino
Cita:
Empezado por Isaac
En VB...
Ahora entiendo tu problema con el Self... si entiendes bien VB, llamar a Self en un procedimiento regular, lo mismo que querer acceder a Me desde un Module en VB.

Con respecto a esta pregunta, te recomiendo este hilo:
http://www.clubdelphi.com/foros/showthread.php?t=3040

Saludos!
__________________
delphi.com.ar

Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla.
Responder Con Cita
  #3  
Antiguo 11-02-2004
Isaac Isaac is offline
Miembro
 
Registrado: feb 2004
Ubicación: Ferrol
Posts: 77
Poder: 21
Isaac Va por buen camino
¿Esto permite aceptar o cancelar, o cosas así? Tampoco es que esté muy acostumbrado a VB, pero es que lo estoy estudiando junto a Delphi
Responder Con Cita
  #4  
Antiguo 11-02-2004
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Poder: 25
__cadetill Va por buen camino
Cita:
Empezado por Isaac
¿Esto permite aceptar o cancelar, o cosas así? Tampoco es que esté muy acostumbrado a VB, pero es que lo estoy estudiando junto a Delphi
Pues tirando de la ayuda de Delphi , vemos.....

Cita:
Displays a specified message to the user.

function MessageBox(const Text, Caption: PChar; Flags: Longint = MB_OK): Integer;

Description

Use MessageBox to display a generic dialog box a message and one or more buttons. Caption is the caption of the dialog box and is optional.

MessageBox is an encapsulation of the Windows API MessageBox function. TApplication’s encapsulation of MessageBox automatically supplies the missing window handle parameter needed for the Windows API function.

The value of the Text parameter is the message, which can be longer than 255 characters if necessary. Long messages are automatically wrapped in the message box.

The value of the Caption parameter is the caption that appears in the title bar of the dialog box. Captions can be longer than 255 characters, but don't wrap. A long caption results in a wide message box.

The Flags parameter specifies what buttons appear on the message box and the behavior (possible return values). The following table lists the possible values. These values can be combined to obtain the desired effect.

Value Meaning

MB_ABORTRETRYIGNORE The message box contains three push buttons: Abort, Retry, and Ignore.
MB_OK The message box contains one push button: OK. This is the default.
MB_OKCANCEL The message box contains two push buttons: OK and Cancel.
MB_RETRYCANCEL The message box contains two push buttons: Retry and Cancel.
MB_YESNO The message box contains two push buttons: Yes and No.
MB_YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel.

MessageBox returns 0 if there isn’t enough memory to create the message box. Otherwise it returns one of the following values:

Value Numeric value Meaning

IDOK 1 The user chose the OK button.
IDCANCEL 2 The user chose the Cancel button.
IDABORT 3 The user chose the Abort button.
IDRETRY 4 The user chose the Retry button.
IDIGNORE 5 The user chose the Ignore button.
IDYES 6 The user chose the Yes button.
IDNO 7 The user chose the No button.
Espero te sirva
Responder Con Cita
  #5  
Antiguo 11-02-2004
Isaac Isaac is offline
Miembro
 
Registrado: feb 2004
Ubicación: Ferrol
Posts: 77
Poder: 21
Isaac Va por buen camino
Sí, acabo de ver lo que me interesa. Gracias. Ahora, mi Ahorcado estará completo
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 20:35:02.


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
Copyright 1996-2007 Club Delphi