Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: jporkkahtc
« on: March 30, 2021, 07:59:19 PM »

When this same list is shown via document_tab_list_buffers, this resizing doesn't happen.

Normally, p_line_height==17, and after the resize happens, p_line_height==15
Posted by: jporkkahtc
« on: March 30, 2021, 07:46:58 PM »

I have customized TBFilelist to include file size and modified time.

An annoying consequence is that the line spacing in this dialog changes -- it gets much tighter.
The dialog opens, and populates and a short time later it redraws with the lines tighter together.

Code: [Select]
#if defined(JPORKKA_JDTUPDATE)
    #define TBTREE_COL_SIZE 2
    #define TBTREE_COL_DATETIME 3

                  {
                      se.datetime.DateTime dt = se.datetime.DateTime.fromTimeF(p_file_date);
                      int y, m, d, h, min, s, ms;
                      dt.toParts(y, m, d, h, min, s, ms);
                      treewid._TreeSetCaption(index, p_buf_size, TBTREE_COL_SIZE); /// Comment out this line to avoid the resizing issue
                      treewid._TreeSetDateTime(index, TBTREE_COL_DATETIME, y, m, d, h, min, s, ms);
               }
#endif

I've narrowed it down to a single line -- if I comment out the call to TreeSetCaption, this resizing doesn't happen.

Is there a way to avoid this problem?