egrid 4 grid gadget - (static PB library version.)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

srod wrote:Yep, I will probably add an installer which will place the different versions within the subsystem folders etc.
why not a zip-archiv with subfolders, i'm not a friend of installers :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

ts-soft wrote:
srod wrote:Yep, I will probably add an installer which will place the different versions within the subsystem folders etc.
why not a zip-archiv with subfolders, i'm not a friend of installers :wink:
I think then that's what I'll do. I haven't the time to write an installer anyhow! :D
I may look like a mule, but I'm not a complete ass.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

srod wrote:I haven't the time to write an installer anyhow! :D
Use EasySetup. You can use the variable "%PureBasic%" to install your libary in the PureBasic folder. It can create a ZIP file, too.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Thorsten1867 wrote:
srod wrote:I haven't the time to write an installer anyhow! :D
Use EasySetup. You can use the variable "%PureBasic%" to install your libary in the PureBasic folder. It can create a ZIP file, too.
I was having a look at that earlier; looks very impressive Thorsten. If I go down that path then I probably will make use of your installer. Thanks.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

**UPDATE: 15th October 2006.

Some minor bugs fixed.

Have reinstated the right-click context menus for the edit controls used to edit certain cells. I originally removed them because of certain issues which have now been addressed.

Have also ammended the #egrid_LosingFocus message so that the developer is informed which cell was last selected before the message is sent etc.

Have also adjusted the zip package so that it is easier to place the various versions of the library within their own subsystem etc.

Note that some of the alterations have caused the help manual to now contain inaccurate info. I will make the necessary adjustments and upload a new version within the hour. Will take the opportunity to add a page on installing and using the various versions of the library.

:)
I may look like a mule, but I'm not a complete ass.
jacfrosty
User
User
Posts: 21
Joined: Mon May 23, 2005 3:05 pm
Location: England, UK

Question about combo boxes

Post by jacfrosty »

Hi,

I need a little help, I can't seem to be able to trap an event that lets me know when I change an item in a combo box cell.

I need to change some other cells depending what is selected in a combo box, I can only seem to do this when I actually move off the combo cell not straight after the change.

Any help would be very grateful.

Regards

jacfrosty.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Question about combo boxes

Post by srod »

jacfrosty wrote:Hi,

I need a little help, I can't seem to be able to trap an event that lets me know when I change an item in a combo box cell.

I need to change some other cells depending what is selected in a combo box, I can only seem to do this when I actually move off the combo cell not straight after the change.

Any help would be very grateful.

Regards

jacfrosty.
I didn't add this because I couldn't see a need for the developer to validate such a selection. After all, why prevent a selection from a list of entries which have already been validated? :)

Must admit that I didn't think anyone would want to trap a selection as you've described else I would probably have included it.

I'm a little reluctant to introduce another CellCallback message as there are 10 at the moment and if I'm not careful, we'll soon end up with an unwieldly number. I don't want to make the egrid library any more complex than it has to be.

What if instead of introducing another message, I instead pass on to your CellCallback function all Windows messages which the library does not process? In this way you could check for the #CBN_SELCHANGE notification message yourself etc. I'm afraid that it would not be a simple matter of using a window callback to trap this message yourself because of the way the egrid library operates. You'd have to subclass the egrid, which is a little risky if you don't pass on all appropriate messages to the library to subsequently handle.

It would of course also open up a few more options as well.
I may look like a mule, but I'm not a complete ass.
jacfrosty
User
User
Posts: 21
Joined: Mon May 23, 2005 3:05 pm
Location: England, UK

Post by jacfrosty »

Hi

Thanks for the prompt reply,

From your what you say it seems it my be easier to add just one more event than to actually try and go throught the processing of subclassing an already heavily subclassed gadget... If you know what I mean.

Also I am not a very competant API programmer, so I know I would probably get into a right old mess.

Any other way I could do this?? Could you not tag it onto the InsertChar event with a specific option in the *cellinfo\param variable??

Kind regards

jacfrosty.
After all, why prevent a selection from a list of entries which have already been validated?
Sorry I have just reread this, this is not what I want this for, I want to select an item from a combo list, and depending what I select from that will determine what happens in the cells next to it, but I want to be able to do it instantly and not when I either lose focus or select another cell.

regards
Last edited by jacfrosty on Sun Oct 15, 2006 9:25 pm, edited 1 time in total.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

That is the other option which comes to mind. :)

However, I eventually intend to offer this product to other development environments and consequently a message like #egrid_InsertChar really wouldn't go down well if it was also used to notify a selection within a combo box cell. Renaming this message would annoy quite a few people to say the least! :)

Let me think about it for a while. If I go the API way then I'll provide you with a simple example to study. It would only be a few lines long.
I may look like a mule, but I'm not a complete ass.
rw
User
User
Posts: 27
Joined: Mon Sep 04, 2006 9:55 pm

Post by rw »

Hi!

With the latest update the adding of row´s
seems to be tremdorous slow!

Or is it my program?

Greeting

rw
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

No problem here.

I obviously need to see your program before I can answer your question.

Is this Windows 98 by any chance? There is an ammendment which I've made which might be responsible depending on what you are doing within your cellcallback, but I need to see your code to be sure.

:)
I may look like a mule, but I'm not a complete ass.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

srod wrote:Have reinstated the right-click context menus for the edit controls used to edit certain cells. I originally removed them because of certain issues which have now been addressed.
Does this mean we always see copy/cut/paste whenever the user right-clicks? If so, I'd like to see the ability to disable this also - I liked the clean look of the previous version (when not using copy/paste of course). Or is this a behaviour that can be intercepted and overriden anyway?
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Hi srod. While I concur with Thorsten1867 about his setup program, as a friendly reminder, please also review gnozal's installer approach - his installs the libs, as well as the help & examples in precisely the right locations, using a self-installing exe. Maybe download his PureCOLOR etc to see what I mean. Please consider gnozal's approach using Thorsten1867's setup, as it will make life easier for newcomers.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Yes, it can be over-ridden. Details are in the updated help manual.

Basically, if you want to over-ride this and remove the Windows edit-control default context menu, then trap the #egrid_ContextMenu message.

If the param member of the *cellinfo parameter is #True then it means that the user has right-clicked an edit control. Simply return zero from the message and the menu will not be shown.
I may look like a mule, but I'm not a complete ass.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Maybe have a zip and an installer.

I prefer zips, fwiw.
Dare2 cut down to size
Post Reply