[Modules] ListEx (all OS / DPI)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
ruslanx
User
User
Posts: 46
Joined: Mon Jun 06, 2011 8:28 am

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

Post by ruslanx »

Nice! thank you ! ... some bugs, can you fix it:

https://prnt.sc/r74gup

1) background does not apply
2) if combobox list is opened and I click not on combobox ... combobox not closed remain always opened ..


update: https://prnt.sc/r74o4t

Code: Select all

      
ListEx::SetColor(#List, ListEx::#ComboFrontColor, $ff0000)
ListEx::SetColor(#List, ListEx::#ComboBackColor, $0000ff)
#ComboFrontColor is called 2 times, and #ComboBackColor not.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

I am currently working on an internal solution and will completely replace the ComboBox.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update: ComboBox replaced by internal routine
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ruslanx
User
User
Posts: 46
Joined: Mon Jun 06, 2011 8:28 am

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

Post by ruslanx »

... hmm .. something's wrong ... https://prnt.sc/r7e8py ... no effect
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

ruslanx wrote:... hmm .. something's wrong ... https://prnt.sc/r7e8py ... no effect
The problem does not occur to me. Which version do you use?
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
loulou2522
Enthusiast
Enthusiast
Posts: 501
Joined: Tue Oct 14, 2014 12:09 pm

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

Post by loulou2522 »

loulou2522 wrote:Error with new version and PB 5.72
PureBasic.asm (50953)
MOV EBX 4294967296
error: value out of range
Can you see please

version
#Version = 20022401
#ModuleEx = 19112100
Old version works in 32 or 64 bits, but new version Works only on 64 bits crash whith 32 bits. It's really a great problem because your programm is very interesting. How can i do, because i can't compile my programm in 64 bits because of a dll whichc can't work in 64 bits
Last edited by loulou2522 on Tue Feb 25, 2020 2:46 pm, edited 1 time in total.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

loulou2522 wrote:
loulou2522 wrote:Error with new version and PB 5.72
PureBasic.asm (50953)
MOV EBX 4294967296
error: value out of range
Can you see please

version
#Version = 20022401
#ModuleEx = 19112100
Works with 64 bits but not to be compatible whith 32 bits
I can only assume. You may be generating values too large for integers (e.g. Rows * TextHeight > 2147483647).
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
loulou2522
Enthusiast
Enthusiast
Posts: 501
Joined: Tue Oct 14, 2014 12:09 pm

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

Post by loulou2522 »

Thorsten1867 wrote:
loulou2522 wrote:
loulou2522 wrote:Error with new version and PB 5.72
PureBasic.asm (50953)
MOV EBX 4294967296
error: value out of range
Can you see please

version
#Version = 20022401
#ModuleEx = 19112100
Works with 64 bits but not to be compatible whith 32 bits
I can only assume. You may be generating values too large for integers (e.g. Rows * TextHeight > 2147483647).
I am suprised because i don't change anaything from last version to newer version
Here is the code i used

Code: Select all

ListEx::Gadget(#List,20, 80,870, 390, "", 25, "", ListEx::#GridLines|ListEx::#CheckBoxes|ListEx::#AutoResize|ListEx::#MultiSelect|ListEx::#ResizeColumn|ListEx::#SingleClickEdit, #Window) ; ListEx::#NoRowHeader|ListEx::#ThreeState|ListEx::#NumberedColumn|ListEx::#SingleClickEdit 
  
  ListEx::DisableReDraw(#List, #True) 
  ListEx::HideColumn(#List, 0, #True)
  ListEx::AddColumn(#List, 1,"RUM", 160, "RUM",   ListEx::#Text)   ;|ListEx::#FitColumn)
  ListEx::AddColumn(#List, 2, "IBAN", 200, "IBAN",   ListEx::#Text); |ListEx::#FitColumn
  ListEx::AddColumn(#List, 3 , "ICS", 120,   "ICS",ListEx::#Text ) ; |ListEx::#FitColumn  
  ListEx::AddColumn(#List, ListEx::#LastItem, "MONTANT", 100, "montant", ListEx::#Float|ListEx::#Editable)
  ListEx::SetColumnMask(#List, 4, "0.00")
  ListEx::AddColumn(#List, ListEx::#LastItem, "LIBELLE",  200, "Libelle",  ListEx::#Text|ListEx::#Editable)
  ListEx::AddColumn(#List, ListEx::#LastItem, "DATE_EXECUTE",    120, "date",   ListEx::#DateGadget)  
  ListEx::AddColumn(#List, ListEx::#LastItem, "", 20, "button", ListEx::#Buttons) 
  ListEx::SetItemImage(#List, ListEx::#Header,7, 20, 20, #Image, ListEx::#Right)
  ListEx::SetHeaderAttribute(#List, ListEx::#Align, ListEx::#Center)
  ListEx::SetColumnAttribute(#List, 1, ListEx::#Align, ListEx::#Left)
  ListEx::SetColumnAttribute(#List, 2, ListEx::#Align, ListEx::#Center)
  ListEx::SetColumnAttribute(#List, 3, ListEx::#Align, ListEx::#Center)
  ListEx::SetColumnAttribute(#List, 4, ListEx::#Align, ListEx::#Left)
  ListEx::SetColumnAttribute(#List, 5, ListEx::#Align, ListEx::#Center)  
  ;  ListEx::SetColumnAttribute(#List, 6, ListEx::#Align, ListEx::#Center)  
  
  ListEx::SetColumnAttribute(#list,5,ListEx::#MaxChars,26)
  Listex::SetDateAttribute(#List, 6, listex::#Minimum, ParseDate("%dd/%mm/%yyyy",Jou_ouvre1(FormatDate("%dd/%mm/%yyyy",Date()), 2))    )
  Listex::SetDateAttribute(#List, 6, listex::#Maximum, ParseDate("%dd/%mm/%yyyy",Jou_ouvre1(FormatDate("%dd/%mm/%yyyy",Date()), 31))    )
  
  
  
  
  ;ListEx::SetItemColor(#List, ListEx::#Header, ListEx::#FrontColor, $0000FF, 1)
  
  ListEx::SetFont(#List, FontID(#Font_Arial9))
  ListEx::SetFont(#List, FontID(#Font_Arial9B), ListEx::#HeaderFont)
  
  
  ListEx::DisableReDraw(#List, #False)   
  ListEx::SetRowsHeight(#List, 22)  
  ListEx::AttachPopupMenu(#List, #PopupMenu)  
  ListEx::SetAutoResizeColumn(#List, 2, 50)
  
  ; ListEx::SetColumnAttribute(#List, 1, ListEx::#FontID, FontID(#Font_Arial9U))
  ;  ListEx::SetHeaderSort(#List, 2, ListEx::#Ascending, ListEx::#Deutsch)
  
  ListEx::SetColor(#List,ListEx::#FrontColor,$D30094, 0) ; front color for column 2   
  ListEx::SetColor(#List,ListEx::#BackColor,$EBEBEE,1)
  ListEx::SetColor(#List,ListEx::#FrontColor,$D30094, 1) ; front color for column 2
  ListEx::SetColor(#List,ListEx::#BackColor,$EBEBEE,2)
  ListEx::SetColor(#List,ListEx::#FrontColor, $F01AB6,2) ; front color for column 2
  ListEx::SetColor(#List,ListEx::#BackColor,$EBEBEE,3)
  ; ListEx::SetItemFont(#List, 1, FontID(#Font_Arial9),1)
  ListEx::SetAutoResizeFlags(#List, ListEx::#Height)
  ListEx::SetColorTheme(#List, ListEx::#Theme_Blue)
  ListEx::SetColor(#List, ListEx::#AlternateRowColor, $FBF7F5)
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Bugfix: Gadget Flags (32Bit)

I may have found the problem. Please try again.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
loulou2522
Enthusiast
Enthusiast
Posts: 501
Joined: Tue Oct 14, 2014 12:09 pm

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

Post by loulou2522 »

HI thorsten,
Have you try to execute listeex.pbi in your zip file alone in PB 32 bits ?
You can see that's the error is present , indicating a problem in pbi not in my programmation. It's pity becaus i am not able to see where is the problem and i can' t beneficiate of all thing you developp in future. The problem appear in version
#Version = 20022401
#ModuleEx = 19112100
When you make the following change
Changed: SetState() - Set the focus on an (editable) cell when the 'Column' parameter is used.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Please try #Version = 20022501.
I get no error in the 32Bit version.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
loulou2522
Enthusiast
Enthusiast
Posts: 501
Joined: Tue Oct 14, 2014 12:09 pm

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

Post by loulou2522 »

Thorsten1867 wrote:Please try #Version = 20022501.
I get no error in the 32Bit version.
I had compiled with PB 5.72 beta 32 bits. Listex crashes
When i try with PB 5.71 32 bits listex works perfectly
This is the result of my investigation , the problem come from PB5.72 beta
loulou2522
Enthusiast
Enthusiast
Posts: 501
Joined: Tue Oct 14, 2014 12:09 pm

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

Post by loulou2522 »

Hi thorsten,
The new version dated from 13;57 works now on PB 5.72


ListEx::SetState(#List, 4, 1)
The focus is not putting on this column
seems not working maybe i don't use it correctly
Thanks for your dsponibility
ruslanx
User
User
Posts: 46
Joined: Mon Jun 06, 2011 8:28 am

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

Post by ruslanx »

Thorsten1867 wrote:
ruslanx wrote:... hmm .. something's wrong ... https://prnt.sc/r7e8py ... no effect
The problem does not occur to me. Which version do you use?
PureBasic 5.70 LTS (Windows - x86)

upd: work now. thx!

upd: scroll in combo not work ! can see only 5 items ...

https://prnt.sc/r7kw6i
https://prnt.sc/r7kwvd

scroll bar can be custom colored ?
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update: Use DateEx, if available.

@ruslanx
Tested it. Scrolling works for me.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply