Jump to content

Mobil Proje UnimLabel


pro_imaj

Recommended Posts

Maalesef UnimLabel'in color ve font değişimi properties'ten ayarlanmıyor. ancak Label'a karşılık gelen div belirlenip (O2C_id şeklinde olur) ServerModule içerisinde CustomCSS ekleyerek sorununuzu çözebilirsiniz.

Link to comment
Share on other sites

ya da form'un onShow eventine şu kodu ekleyebilirsiniz

procedure TMainmForm.UnimFormShow(Sender: TObject);
var
  i: Integer;
begin
  for i := 0 to ComponentCount - 1 do
    if Components[i] is TUnimLabel then
    begin
       UniSession.AddJS(' document.getElementById(MainmForm.'+ TUnimLabel(Components[i]).Name+'.getId( )).style.color = "red";');
       UniSession.AddJS(' document.getElementById(MainmForm.'+ TUnimLabel(Components[i]).Name+'.getId( )).style.fontSize = "25px";');
    end;
end;
Link to comment
Share on other sites

Merhaba;

 

Cevaplar için teşekkür ederim. @BugraYenerSahinoglu

 

Sanırım kendimi çok kasmadan normal unigui projesi yapacağım, Webde sadece veri gösterecektim, mobil proje yapmak şu durumda daha eziyetli geldi.

 

Teşekkürler.

İyi çalışmalar.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...