It is currently Tue Jun 18, 2013 6:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 366 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 25  Next
Author Message
 Post subject:
PostPosted: Sat Oct 07, 2006 3:34 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 525
Location: Germany
srod wrote:
How about using a column of checkboxes and those which are checked get deleted when the user hits the delete button etc?

I think it's easy to solve with egrid_CreateCellCallback().

srod wrote:
If this is a big problem then I'll reinstate the original functionality, but then the emphasise is on the developer to hide the selection box whenever another control receives the focus.

It's better if it is possible to control it. Perhaps it would be a good idea to use a flag like '#egrid_AlwaysShowSelection'

_________________
PS: Sorry for my bad English. My native language is German.

My PureBasic-Project: EasySetup - SetupMaker for your programs
[Windows 7 x64] [PB V5.0x]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 07, 2006 3:36 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
Good idea, I'll get on it.

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 07, 2006 3:38 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
SUCCESS!!!

Have managed to 'persuade' Tailbite to produce a unicode version of egrid - which doesn't crash!!!

A bit more testing to do, but fingers crossed...


**EDIT: have been busy today! Shift/tab works as requested. Have added an extra flag #egrid_AlwaysShowSelection used when creating an egrid which works as requested by Thorsten1867 (above) and of course have managed to create a unicode version of the library.
I won't be able to upload until later though as I am away from my broadband connection at the moment.

@mskuma: I don't necessarily see a problem with using an egrid for large datasets. After all, an egrid is simply a ListIcon given an extra polish and a fresh coat of paint! If it does slow down too much, then consider using a standard header as opposed to a custom one. Also, go easy on other customisations perhaps.
I do intend allowing for 'virtual' egrids at a later date which should also help when using very large data sets etc.

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:17 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
**UPDATE: 8 October 2006.

A few ammendments (still at beta 2).

Have added 'shift/tab' functionality to tab in reverse through the grid etc. Have ammended the egrid_AddColumn() function so that a column index of -1 causes the new column to be appended etc. Have also added the creation flag #egrid_AlwaysShowSelection which prevents the selection box from vanishing whenever an egrid loses focus.

Most importantly, however, is the fact that the download now contains 3 versions of the library:
  • an ANSI non-threadsafe version
  • an ANSI threadsafe version
  • a UNICODE non-threadsafe version (for testing purposes only at the moment).

If the unicode version proves to be stable then a 4th version will be forthcoming; a UNICODE threadsafe... :)

http://www.purecoder.net/egrid.htm

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:19 pm 
Offline
Addict
Addict

Joined: Mon May 29, 2006 1:01 am
Posts: 1966
Location: Outback
Neat.

Thank you for following up on that!

_________________
Dare2 cut down to size


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 2:24 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 525
Location: Germany
I've download the new version.
Now I get the error, that 'egrid_containerID()' is missing.

_________________
PS: Sorry for my bad English. My native language is German.

My PureBasic-Project: EasySetup - SetupMaker for your programs
[Windows 7 x64] [PB V5.0x]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 2:38 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
Thorsten1867 wrote:
I've download the new version.
Now I get the error, that 'egrid_containerID()' is missing.


Thorsten, this function is no longer exported because with all the added commands, I could see no need for it. I can't think why you'd want the controlid of the container gadget?

Anyhow, here's a workaround:

Code:
GetParent_(GadgetID(#egrid)) ;Handle of the container gadget.


Code:
GetDlgCtrlID_(GetParent_(GadgetID(#egrid))) ;The controlid of the container gadget.


I hope this helps.

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 3:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 525
Location: Germany
Thanks! It works, but I don't understand, why it must be removed. With 'egrid_containerID()' it was possibel to use eGrid with other libaries (e.g. PV_Gadgets).

_________________
PS: Sorry for my bad English. My native language is German.

My PureBasic-Project: EasySetup - SetupMaker for your programs
[Windows 7 x64] [PB V5.0x]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 3:26 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
Ah yes I see. Sorry, forgot about that.

I can reinstate the command for the next version if you'd like. I must admit though that I'd rather keep it out as it encourages some 'dodgy dealings' where an egrid is concerned and if such code breaks the lib, then I cannot really be held to account! :)

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 3:37 pm 
Offline
Addict
Addict

Joined: Mon May 29, 2006 1:01 am
Posts: 1966
Location: Outback
Did someone say "dodgy dealings" 8) I'm in!

_________________
Dare2 cut down to size


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 3:40 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
Aye, there's always an aussie around when there's 'dodgy dealings' afoot! :D

hehe.

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 3:43 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 525
Location: Germany
I think all 'PureVisionXP'-User would be glad, if you add 'egrid_containerID()' again.

_________________
PS: Sorry for my bad English. My native language is German.

My PureBasic-Project: EasySetup - SetupMaker for your programs
[Windows 7 x64] [PB V5.0x]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 3:55 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
Ok, but it was never really documented anyhow. I think I made one mention of it in a much earlier version of egrid.

I will reinstate it. In the meantime, just create your own procedure named egrid_ContainerID() and using the above workaround etc.

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 11:37 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Dec 03, 2005 1:31 am
Posts: 573
Location: Australia
Dare wrote:
Thank you for following up on that!

Agreed. Thanks srod for keeping on top of it! I'm looking forward to trying it.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 09, 2006 12:28 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9859
Location: Beyond the pale...
You're welcome.

btw, I have fixed the gridline alignment problem - turned out to be easier than I thought!

The fix will only work if you use a custom header with an egrid as I have no control over the placement of the gridlines or the painting of a standard Windows header.

Will upload new versions tomorrow afternoon. :)

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 366 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 25  Next

All times are UTC + 1 hour


Who is online

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