AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[module] SpreadSheet 0.0.2.1 - 3
Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Sun Jun 03, 2007 11:00 am    Post subject: [module] SpreadSheet 0.0.2.1 - 3 Reply with quote




Notes:

_________________


Last edited by majkinetor on Tue Jul 13, 2010 8:10 am; edited 58 times in total
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Sun Jun 03, 2007 9:33 pm    Post subject: Reply with quote

Version 0.1

Practicaly everything is possible to set with SetCell function
_________________
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon Jun 04, 2007 1:30 pm    Post subject: Reply with quote

No interest/comments for this control...

Project is abandoned then Idea
_________________
Back to top
View user's profile Send private message
John W



Joined: 09 Apr 2007
Posts: 172

PostPosted: Mon Jun 04, 2007 1:49 pm    Post subject: Reply with quote

Just saw it, seemīs interesting...
_________________
COMPLETELY INACTIVE - I do not use AHK anymore.
Back to top
View user's profile Send private message Send e-mail
elchapin



Joined: 06 Mar 2007
Posts: 64
Location: Columbus, OH, USA

PostPosted: Mon Jun 04, 2007 1:53 pm    Post subject: Reply with quote

I also think it's very interesting, and I immediately started thinking of possible uses... just curious, what are you planning to do with this? Smile
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Mon Jun 04, 2007 1:56 pm    Post subject: Reply with quote

Awesome control!

majkinetor wrote:
No interest/comments for this control...
Project is abandoned then Idea


Uh! Please.. The forum is unable to match your speed, I guess!

Thanks for all the good work!

Smile
Back to top
View user's profile Send private message Send e-mail
n-l-i-d
Guest





PostPosted: Mon Jun 04, 2007 2:58 pm    Post subject: Reply with quote

No, do keep going. Did you manage to implement import/export yet? Looks interesting too.

Very cool if this control can be fully used in AHK! Cool
Back to top
AGU
Guest





PostPosted: Mon Jun 04, 2007 3:15 pm    Post subject: Reply with quote

If you can embed controls within this "spreadsheet control", this could possibly a solution for some kind of continous form I asked a long time ago.

When I wrote my ToDo List app I asked for a possibility like this. If was one of my first questions within this forum. Smile
Arrow http://www.autohotkey.com/forum/post-14758.html#14758

Can this control handle this?
______________________
Cheers AGU
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon Jun 04, 2007 3:50 pm    Post subject: Reply with quote

Oh, thank you guys, you are gordgeous...

Quote:
If you can embed controls within this "spreadsheet control", this
could possibly a solution for some kind of continous form I asked a long time ago.

Isnt the picture clear ? Isn't the Type clear ?

You can embed only controls available in the Types list, nothing else. So this is not general container.

Quote:
Exists an GUI Element that can hold other GUI elements? It should be s.th like a endless form. Do you understand what I mean?

Of course it exists, its called Tab. You can get "endless form" if you do keep adding controls constantly Wink
_________________
Back to top
View user's profile Send private message
AGU
Guest





PostPosted: Mon Jun 04, 2007 4:02 pm    Post subject: Reply with quote

Well it can hold checkbox, text and button. Very Happy

So it seems to me like a possible solution. Sorry if these next questions sound stupid, but assuming I have a checkbox in a first column, would it be possible to do some kind of action to a text control in a second column when activating/deactivating the checkbox in the first column?

And what about user-action in general. Can these embedded controls be assigned a g-label?
_____________________
Cheers AGU
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon Jun 04, 2007 4:06 pm    Post subject: Reply with quote

SpreadSheat is basicly Excell. I saw in the demo it is possible to do all Excel basic things.

So, the answer is yes. You can uncheck something and influence other cells easily.

Your handler will be called on button click, state change etc, so you can do all that is necessary manualy.

So, SS is not Excell, but it can be wrapped into Excell with some higher API that relies on low level API on this page.
_________________
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon Jun 04, 2007 4:10 pm    Post subject: Reply with quote

For instance:
Code:
 SS_SetCell(hCtrl, 1, 1, "type=TEXT", "txt=Caption", "bg=0xFF", "fg=0xFFFFFF")
   SS_SetCell(hCtrl, 2, 4, "type=CHECKBOX", "data=1", "imgal=CENTER", "sub=OnChange")


OnChange:
  SS_SetCell(hCtrl, 1, 1, "txt=Control is changed")
return


This little code creates 2 cells one to have check. WHen you check it, it will change cell AA1 (1,1).

Red code is still not implemented.
_________________
Back to top
View user's profile Send private message
olfen



Joined: 04 Jun 2005
Posts: 113
Location: Stuttgart, Germany

PostPosted: Mon Jun 04, 2007 4:26 pm    Post subject: Reply with quote

Very impressive! I'm looking forward to using this.
Also thanks for your great work on the other custom controls!
Back to top
View user's profile Send private message Visit poster's website
n-l-i-d
Guest





PostPosted: Mon Jun 04, 2007 6:08 pm    Post subject: Reply with quote

Just for information: Link to the original with examples

Screenshot of the SprDemo.exe



It can even convert a formula to graphics! And, it can save and import to spr-file. Amazing possibilities for the size.

Would be very cool if we could fully use it with AHK! Wink
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Tue Jun 05, 2007 11:44 am    Post subject: Reply with quote

v0.2

Many new functions added - total count 29.

Acctually, almost everything is implemented but you can not access everything as I didn't find the way to interface some things yet...

The good thing is that SS can even be used for dynamic calculus as it supports Formula type for which you send CALCULATE message

Some examples from the demo code. Fairly trivial to xtend SetCell function to support this:

Code:
dtCellFloat      dt 1.2345
szCellFormula1      db '(AA6+AA7+2)*3',0
szCellFormula2      db 'Sin(Rad(45))',0
szCellGraph      db 'Grp(T(-1,0,0,Rgb(0,0,0),"Graph Demo"),X(0,PI()*4,0,1,Rgb(0,0,255),"x-axis"),Y(-1.1,1.1,0,0.5,Rgb(255,0,0),"y-axis"),gx(AJ1:AJ13,Rgb(0,0,0),"Cell values"),fx(Sin(x()),0.1,Rgb(255,0,255),"Sin(x)"),fx(x()^3-x()^2-x(),0.1,Rgb(0,128,0),"x^3-x^2-x"))',0



About fonts:

There are 16 slots for user fonts.
U create font by using SS_SetFont(hCtrl, idx, pFont)

U set the font for given cell with SetCell using fnt named parameter which u set to font index you want to use.

One other major thing is missing. SetGlobal.
This sets defaults for everything (row height, widht, colors etc..). This is currently possible to do per cell basis only.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
Page 1 of 8

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group