It is currently Fri Dec 04, 2020 8:34 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 438 posts ]  Go to page Previous  1 ... 23, 24, 25, 26, 27, 28, 29, 30  Next
Author Message
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Wed Mar 04, 2020 2:38 pm 
Offline
User
User

Joined: Mon Jun 06, 2011 8:28 am
Posts: 29
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:


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Thu Mar 05, 2020 11:41 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Right, appearance and color can then be adjusted.

Gesendet von meinem Aquaris X2 mit Tapatalk

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Thu Mar 05, 2020 2:45 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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]

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Thu Mar 05, 2020 9:11 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1792
Location: Uttoxeter, UK
@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.

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Mar 06, 2020 7:48 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
#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

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Mar 06, 2020 8:16 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Mar 06, 2020 2:30 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 319
Hi Thorsten,
How can i deselect all row in listex ? or only for one column
Thanks in advance


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Mar 06, 2020 3:35 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
loulou2522 wrote:
How can i deselect all row in listex ? or only for one column

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

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Mar 06, 2020 4:06 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 319
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:
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:
ListEx::SelectItems(#List, ListEx::#None)

The focus stay on
Quote:
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Mar 06, 2020 6:46 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: Bugfixes

@loulou2522
Try it again.

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sat Mar 07, 2020 11:06 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 319
Thanks it's work perfectly.
Have a nice week-end


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Mar 09, 2020 7:00 pm 
Offline
User
User
User avatar

Joined: Fri Jan 20, 2012 3:40 pm
Posts: 45
Location: SE England
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Mar 09, 2020 7:11 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: Minimum thumb size & lazy scrolling

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Wed Mar 11, 2020 9:25 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 319
Hi, Thorsten.
I have a problem with an area
Code:
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Wed Mar 11, 2020 1:02 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Do you use Windows or MacOS?

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 438 posts ]  Go to page Previous  1 ... 23, 24, 25, 26, 27, 28, 29, 30  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye