Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

 
 
Herramientas Buscar en Tema Desplegado
  #36  
Antiguo 11-07-2013
Avatar de torito
torito torito is offline
Miembro
 
Registrado: jun 2003
Ubicación: Querétaro, Mex.
Posts: 349
Poder: 21
torito Va por buen camino
ahi te va el código, la verdad ya no recuerod bien los pasos
Código Delphi [-]
procedure TForm2.BBEtiquetaClick(Sender: TObject);
var
aqui : integer;
oleFt    : variant;
lblren   : IMoLabelRenderer;
begin
if (cbvisible2.Checked) and (cbdato.Text<>'') then
 begin
 oleft := FontToOleFont(fuentes.Font);
 lblren :=IMoLabelRenderer(CreateOleObject('MapObjects2.LabelRenderer'));
 LblRen.DrawBackground := True;
 LblRen.Field := 'Nom';
 LblRen.SplinedText := True;
 LblRen.AllowDuplicates := False;
 LblRen.MaxLevel := 10;
 LblRen.MinLevel := 10;

 LblRen.Symbol[0].Font := IFontDisp(IDispatch(oleFt));
 //lblren.AllowDuplicates :=true;
 lblren.field :=cbdato.Text;
 l.renderer := lblren;
 //form1.Map1.Refresh;
 end else //fin if principal
 l.renderer :=nil;

//lcapa:=l;
aqui:= Valida_Nombre(l);
if (aqui = -1) then
  begin
  aqui:= form1.SGalmacen.RowCount;
  form1.SGalmacen.RowCount:=aqui+1;
  form1.SGalmacen.Cells[0,aqui]:=l.Name;
  form1.sgalmacen.Cells[1,aqui]:='True';
  end;//if aqui

if (cbvisible2.Checked) then
  begin
  form1.SGalmacen.Cells[4,aqui]:='True';
  form1.SGalmacen.Cells[5,aqui]:=CBdato.Text;
  end
 else
  begin
  form1.SGalmacen.Cells[4,aqui]:='False';
  form1.SGalmacen.Cells[5,aqui]:='';
  end; //fin else
 close;
 form1.Map1.Refresh;
 form1.refresca_legend;
////////////////////////////////////////////////
end; //fin procedure

Última edición por Casimiro Notevi fecha: 11-07-2013 a las 09:51:14.
Responder Con Cita
 



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 16:22:53.


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