Jump to content

DateTimePicker ın Kind özelliği


aliemre

Recommended Posts

Merhaba,

 

DateTimePicker ın Kind özelliği runtime da değiştirilemiyor. Bir sakıncası yoksa bu sorunu çözebilir misiniz ?

 

 

 

procedure TUniCustomDateTimePicker.SetKind(Value: TUniDateTimeKind);
begin
  if Supports(VCLProxy, IUniDateTimePicker) then
    (VCLProxy as IUniDateTimePicker).SetKind(Value);

  if IsLoading then
    FKind := Value;
end;

 

Link to comment
Share on other sites

  • Administrators

 

Merhaba,

 

DateTimePicker ın Kind özelliği runtime da değiştirilemiyor. Bir sakıncası yoksa bu sorunu çözebilir misiniz ?

 

 

 

procedure TUniCustomDateTimePicker.SetKind(Value: TUniDateTimeKind);
begin
  if Supports(VCLProxy, IUniDateTimePicker) then
    (VCLProxy as IUniDateTimePicker).SetKind(Value);

  if IsLoading then
    FKind := Value;
end;

 

 

Bu bir sorun olarak algılanmamalı. Kind özelliği DatePicker'in ilk baştaki tasarımını etkiliyor. Yani kaç alt-bileşen içereceğini baştan bilmesi gerekiyor ki ona göre komponent yaratılsın. Komponent yaratıldıktan sonra bu tasarımı değiştirmek mümkün değildir.

Bu sebepten uniGUI'de pek çok property  runtime'da değiştirilemiyor.

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...