Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TTMSFNCListBox

 Post Reply Post Reply
Author
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Topic: TTMSFNCListBox
    Posted: 08 Jan 2019 at 2:59pm
Hi,

There is always a border when using this control and I can't seem to get rid of it.

Thanks,

Ken
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3458
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 9:30am
Dear Ken,

We are investigating on how to implement it properly in our component, but until this improvement is available, please use the following workaround:

type
  TTMSFNCListBoxOpen = class(TTMSFNCListBox);

procedure TForm52.FormCreate(Sender: TObject);
begin
  TMSFNCListBox1.Stroke.Color := TMSFNCListBox1.Fill.Color;
  TTMSFNCListBoxOpen(TMSFNCListBox1).TreeView.GroupsAppearance.TopStroke.Color := TMSFNCListBox1.Fill.Color;
  TTMSFNCListBoxOpen(TMSFNCListBox1).TreeView.GroupsAppearance.BottomStroke.Color := TMSFNCListBox1.Fill.Color;
end;
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 9:48am
Hi Pieter,

That works perfectly thanks.

Regards,

Ken
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:13am
One further thing. Is it possible not to have the dotted box round the selected item?
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3458
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:25am
Yes, with 

TTMSFNCListBoxOpen(TMSFNCListBox1).TreeView.NodesAppearance.ShowFocus := False;
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:34am
Thanks. Any reason this isn't a property?
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3458
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:38am
It has been added to the treeview, but not exposed in the listbox. We have exposed it now and the next version will have this available under ItemsAppearance
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:45am
Thanks Pieter. Great support as usual!
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3458
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:45am
Thanks !
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 10:49am
One more. Hope you don't mind me using the same post. Would it be possible for a TWebPanel to have the Fill properties?
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3458
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 11:03am
Hi,

If you want to use Fill/Stroke, then please use the TTMSFNCPanel. TWebPanel can be styled using CSS, which is pure HTML. TTMSFNCPanel relies on the HTML Canvas, and supports fill/stroke capabilities.
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jan 2019 at 11:10am
Ok, thanks.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down