Page 26 of 32

Re: [Modules] ListEx (all OS / DPI)

Posted: Wed Mar 04, 2020 2:38 pm
by ruslanx
Thorsten1867 wrote:I am currently building my own ScrollBar into ListEx, then I could send a corresponding event.
cool lib .. custom ScrollBar -> custom color -> full custom theme ... :wink:

Re: [Modules] ListEx (all OS / DPI)

Posted: Thu Mar 05, 2020 11:41 am
by Thorsten1867
Right, appearance and color can then be adjusted.

Gesendet von meinem Aquaris X2 mit Tapatalk

Re: [Modules] ListEx (all OS / DPI)

Posted: Thu Mar 05, 2020 2:45 pm
by Thorsten1867
Update:
  • ScrollBarGadget() replaced by drawing routine
  • Attribute #ScrollBar [#ScrollBar_Default/#ScrollBar_Frame/#ScrollBar_DragPoint]
  • SetColor() -> [#ScrollBar_FrontColor/#ScrollBar_BackColor/#ScrollBar_BorderColor/#ScrollBar_ButtonColor/#ScrollBar_ThumbColor]

Re: [Modules] ListEx (all OS / DPI)

Posted: Thu Mar 05, 2020 9:11 pm
by davido
@Thorsten1867,
Thank you for looking at my problem with images.
Eventually I discovered that I had been using the flag Listindex::#Image inappropriately. The odd thing was that all other versions seemed to accept my error but the later version did not!
Could you inform me of the purpose of this flag?

I have been looking at the new version which appeared at first to be fine, however, there appears to be a problem in OSX. Dragging the 'drag-bar' down is ok. It will not drag up again. This is but a minor problem as the mouse works perfectly.
I also noticed that clicking the 'drag-bar' produces an event: the last chosen row! If no row has been chosen clicking the 'drag-bar' produces the error below:

#Version = 20030500
[19:40:31] Executable started.
[19:40:41] [ERROR] ListExModule.pbi (Line: 8813)
[19:40:41] [ERROR] SelectElement(): SelectElement(): index value can not be negative.
[19:40:51] The Program was killed.

Re: [Modules] ListEx (all OS / DPI)

Posted: Fri Mar 06, 2020 7:48 am
by Thorsten1867
#Image is an internal flag. It told the drawing routine, there is a valid ImageID to display a image in this cell.

Gesendet von meinem Aquaris X2 mit Tapatalk

Re: [Modules] ListEx (all OS / DPI)

Posted: Fri Mar 06, 2020 8:16 am
by Thorsten1867
davido wrote:I also noticed that clicking the 'drag-bar' produces an event: the last chosen row!
The Scrollbar produce only the event #EventType_ScrollBar if the position is changed.
The EventData() are #ScrollBar_Up / #ScrollBar_Down / #ScrollBar_Left / #ScrollBar_Right

Re: [Modules] ListEx (all OS / DPI)

Posted: Fri Mar 06, 2020 2:30 pm
by loulou2522
Hi Thorsten,
How can i deselect all row in listex ? or only for one column
Thanks in advance

Re: [Modules] ListEx (all OS / DPI)

Posted: Fri Mar 06, 2020 3:35 pm
by Thorsten1867
loulou2522 wrote:How can i deselect all row in listex ? or only for one column

Code: Select all

ListEx::SelectItems(#List, ListEx::#None)

Re: [Modules] ListEx (all OS / DPI)

Posted: Fri Mar 06, 2020 4:06 pm
by loulou2522
Thanks for your answering
But i encount another problem linked with my question
When I put the focus on an editable column in numerical format, when I don't enter any data and then I want to deselect the line nothing happens and the focus remains on the column.
1/]Instruction use

Code: Select all

ListEx::AddItem(#List, ListEx::#LastItem, initial)
            ListEx::SetItemImage(#List, listex::CountItems(#list, #False)-1, 7, #Image, ListEx::#Center, 14, 14) 
            ListEx::SetState(#List,listex::CountItems(#list, #False)-1 ,4)
         
And after for deselecting without entering any data

Code: Select all

ListEx::SelectItems(#List, ListEx::#None)
The focus stay on
ListEx::SetState(#List,listex::CountItems(#list, #False)-1 ,4)
2/ After having given the focus to a cell to be able to enter data I am obliged to click with the mouse on the selected cell otherwise the data input is blocked. I thought that giving focus to a cell would allow you to enter data into it ? Is this the case or is it a limitation of the program?

Re: [Modules] ListEx (all OS / DPI)

Posted: Fri Mar 06, 2020 6:46 pm
by Thorsten1867
Update: Bugfixes

@loulou2522
Try it again.

Re: [Modules] ListEx (all OS / DPI)

Posted: Sat Mar 07, 2020 11:06 am
by loulou2522
Thanks it's work perfectly.
Have a nice week-end

Re: [Modules] ListEx (all OS / DPI)

Posted: Mon Mar 09, 2020 7:00 pm
by mrv2k
Hi Thorsten

Just tried your updated list gadget with the new scroll bars and there's a couple of problems...

1. There is no minimum size on the slider button so when you have a couple of thousand rows, the button disappears as it is too small.
2. You can only scroll the list if your mouse is over the scroll bar. The old version would still scroll if your mouse button was down and the cursor was inside or outside the scrollbar gadget.

P.S. Thanks for fixing the TreeEx problem!

Re: [Modules] ListEx (all OS / DPI)

Posted: Mon Mar 09, 2020 7:11 pm
by Thorsten1867
Update: Minimum thumb size & lazy scrolling

Re: [Modules] ListEx (all OS / DPI)

Posted: Wed Mar 11, 2020 9:25 am
by loulou2522
Hi, Thorsten.
I have a problem with an area

Code: Select all

ListEx::AddColumn(#List, ListEx::#LastItem, "LIBELLE", 200, "Libelle", ListEx::#Text|ListEx::#Editable) ListEx::SetColumnAttribute(#list,5,ListEx::#MaxChars,140)
When I type and I reach the end of the display the cursor does not move and I do not see what I am typing, in fact the scroll is not done and when I validate my input the text overflows to the next field. Is it possible to avoid this overflow?

Re: [Modules] ListEx (all OS / DPI)

Posted: Wed Mar 11, 2020 1:02 pm
by Thorsten1867
Do you use Windows or MacOS?