It is currently Thu Jan 21, 2021 2:33 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 438 posts ]  Go to page Previous  1 ... 21, 22, 23, 24, 25, 26, 27 ... 30  Next
Author Message
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 12:09 am 
Offline
User
User

Joined: Mon Jun 06, 2011 8:28 am
Posts: 29
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:
     
ListEx::SetColor(#List, ListEx::#ComboFrontColor, $ff0000)
ListEx::SetColor(#List, ListEx::#ComboBackColor, $0000ff)

#ComboFrontColor is called 2 times, and #ComboBackColor not.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 9:21 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 10:44 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: ComboBox replaced by internal routine

_________________
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: Tue Feb 25, 2020 1:38 pm 
Offline
User
User

Joined: Mon Jun 06, 2011 8:28 am
Posts: 29
... hmm .. something's wrong ... https://prnt.sc/r7e8py ... no effect


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 2:19 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 2:38 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 345
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.

Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 2:46 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 2:51 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 345
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:
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 3:00 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 3:09 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 345
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 4:14 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 5:50 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 345
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


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 6:20 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 345
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


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 7:00 pm 
Offline
User
User

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


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Feb 25, 2020 9:19 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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 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 ... 21, 22, 23, 24, 25, 26, 27 ... 30  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 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