Ver Mensaje Individual
  #5  
Antiguo 28-02-2018
Avatar de Angel.Matilla
Angel.Matilla Angel.Matilla is offline
Miembro
 
Registrado: ene 2007
Posts: 1.350
Reputación: 19
Angel.Matilla Va por buen camino
Cita:
Empezado por _Leo Ver Mensaje
Prueba con lo siguiente en el constructor del Form por ejemplo:
Código PHP:
HWND h Edit1->Handle;
SetWindowLong(hGWL_STYLEGetWindowLong(hGWL_STYLE) | ES_RIGHT); 
Funciona a la perfección. Gracias Leo.
Cita:
Empezado por ecfisa Ver Mensaje
Código PHP:
void __fastcall TForm1::Button1Click(TObject *Sender// u OnCreate
{
  
SysLocale.MiddleEast true;
  
Edit1->BiDiMode bdRightToLeft;

También funcina, aunque no debería:
Cita:
Alignment does not change for controls that are known to contain number, date, time, or currency values. For example, with data aware controls, the alignment does not change for the following field types: ftSmallint, ftInteger, ftWord, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime, ftAutoInc.
Sin embargo te obliga a andar modificando las variables del sistema. Muchas gracias a los dos por las soluciones.
Responder Con Cita