AutoHotkey Community

It is currently May 25th, 2012, 8:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
PostPosted: May 16th, 2007, 11:21 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade


Note: RaGrid doesn't support Unicode by design and that will probably never change. Its open-source however.

_________________
Image


Last edited by majkinetor on June 16th, 2010, 2:40 pm, edited 19 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 11:38 am 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
:!: :shock: :o Thanks!
You are a very kind man! :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 12:17 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Very interesting, an often asked feature.
I played a bit with the test script, to see what we can do.
I had to add more flexibility to the RA_AddRow function.
Code:
#SingleInstance, force

Gui, +LastFound +Resize
hwnd := WinExist()

RG_Init()
hGrd := RG_Add(hwnd, 4, 4, 500, 300, STYLE_VGRIDLINES | STYLE_GRIDLINES )

RG_AddColumn(hGrd, "cap=Name", "w=150", "ha=2", "ca=2" )
RG_AddColumn(hGrd, "cap=Ext", "w=50", "ha=1", "ca=1")
RG_AddColumn(hGrd, "cap=Time", "w=125", "ha=1", "ca=1")
RG_AddColumn(hGrd, "cap=Size", "w=75", "ha=1", "ca=1")
RG_SetFont(hGrd, "s10 bold, Arial")
RG_SetColors(hGrd, "BAAEEFF G551100 T005588")

Loop %A_WinDir%\*.bmp
{
   aCol1 := A_LoopFileName
   aCol2 := A_LoopFileExt
   FormatTime aCol3, %A_LoopFileTimeModified%, yyyy-MM-dd HH:mm:ss
   aCol4 := A_LoopFileSize
   RG_AddRow(hGrd, "aCol")
}

RG_SetHdrHeight(hGrd, 30)
RG_SetRowHeight(hGrd, 22)
RG_Sort(hGrd, 0, 1)

Gui, Show, w510 h310

return

GuiClose:
GuiEscape:
ExitApp

InsertInteger(pInteger, ByRef pDest, pOffset = 0, pSize = 4)
{
    Loop %pSize%  ; Copy each byte in the integer into the structure as raw binary data.
        DllCall("RtlFillMemory", "UInt", &pDest + pOffset + A_Index-1, "UInt", 1, "UChar", pInteger >> 8*(A_Index-1) & 0xFF)
}

#Include RaGrid.ahk
Code:
RG_AddRow(hGrd, aColName){
   local RAW, colCount

   SendMessage GM_GETCOLCOUNT,,,, ahk_id %hGrd%
   colCount := ErrorLevel

   VarSetCapacity(RAW, 4 * colCount, 0)
   Loop %colCount%
   {
      InsertInteger(&%aColName%%A_Index%, RAW, (A_Index - 1) * 4)
   }

   SendMessage,GM_ADDROW,0,&RAW,, ahk_id %hGrd%
   return ErrorLevel
}

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 12:28 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Skan wrote:
You are a very kind man!

You yesterday told me that I am uniquely rude.
How can I be kind and rude at the same time, Skan ?
You want to say that I have multiple personalities like Grumpy or BoBo crew ?
:D

Philho wrote:
I had to add more flexibility to the RA_AddRow function.

I had no intention to present full blown API to this control, nor that will be the case for others until I need them.

The intention was to do initialisation so you can continue where I stop.

BTW, this control is very very capable. There are like 10 demo exe's provided by author that can show you possibilities. There is also a demo loading MDB (Access databse format). It supports checkboxes, images, graphs, buttons and so on as cell types. To fully wrapp its capatibilities extensive job is required.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 12:46 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
/OffTopic

majkinetor wrote:
Skan wrote:
You are a very kind man!

You yesterday told me that I am uniquely rude.


Nobody in this forum would believe that I would say so. :D Or would they ? :roll:

Please check my PM again.
Skan wrote:
I like you because of this unique property of yours

I can assure you that you would not find a single post of mine with that word. ;)

I want to assert again: You are a kind man. You knew I was searching for this but you gave me no hopes, and have posted the solution.

Thank you. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 12:58 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
Nobody in this forum would believe that I would say so.

Well, there are freaks around, you never know.

Quote:
You knew I was searching for this but you gave me no hopes, and have posted the solution.

Acctually, there are other Extreme Grid controls around, waiting to be found by inocent civilians... some look like Excell in 20K dll... Perhaps when your "client" start to be more demanding :lol:

Quote:
Thank you.

You are welcome.

Now ... if I could only manage to put that 9KB AniGif control online, I guess you will donate ? 8)

Acctually, I have collection of "missing controls" here, like 15 of them collected from different ASM forums in previous days, doing all kind of stuff in ridiculously small dll's - playing videos, simulating paint, lil' hex editors etc... All of these controls together are like 150K, waiting for the civilians to notice them...

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 1:04 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Same author made a spreadsheet out of his grid control!
The main problem is that there is no documentation beside the .inc file...

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 1:58 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
The docu is provided as bunch of ASM examples along with the inc file. Its not much of a problem. This morning, I found the RaGrid control, looked all ASM examples code and created wrapper of basic functions in an hour. So, if you know enough of Win internals, its not a problem at all, as all of these controls made to follow standard MS rules and ASM code itself reminds me on AHK :D

You can even register control for entire OS, so any application can create them knowing the class name.

Yup, spreadhseet is one of the 15 "missing controls" I was talking about.

_________________
Image


Last edited by majkinetor on May 16th, 2007, 2:22 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 2:04 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Quote:
Acctually, I have collection of "missing controls" here, like 15 of them collected from different ASM forums in previous days, doing all kind of stuff in ridiculously small dll's - playing videos, simulating paint, lil' hex editors etc... All of these controls together are like 150K, waiting for the civilians to notice them...


Could you provide a download-link? 8)

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 1st, 2007, 5:18 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
A new version, very functional and ready.

The only thing I didn't wrap are notification handlers for text change, button clicks etc. This is fairly trivial to add, but I didn't have time now.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 1st, 2007, 5:49 pm 
Offline

Joined: March 15th, 2007, 4:10 am
Posts: 70
majkinetor wrote:
A new version, very functional and ready.

The only thing I didn't wrap are notification handlers for text change, button clicks etc. This is fairly trivial to add, but I didn't have time now.

Awesome job...I'll work on expanding the properties dialog to include the new functions. I should have a decent amount of work done by the end of the weekend.

Thanks again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 1st, 2007, 9:54 pm 
Offline

Joined: March 15th, 2007, 4:10 am
Posts: 70
Well, the download link does not include any of the new functions.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2007, 3:41 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
:?:

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 10:15 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
New version

- New API's:
    RG_About
    RG_ScrollCell
    RG_ResetColumns
    RG_GetHdrText
    RG_SetHdrText

- New control version 2.0.1.5

Wrapper is standardized and the usage is now the same as with any other wrapper I did.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2007, 8:57 pm 
Offline

Joined: August 9th, 2007, 10:18 am
Posts: 11
A very nice control. Two questions arise, when using RaGrid:

1.) Is there a possibility to setup the conrol for multi-line selection and how do i get the set of selected rows ?

2.) How can i detect if and what column header is clicked ?

Thanks


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, tic and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group