PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Wilko Verweij on December 17, 2009, 11:38:04 AM

Title: MyLittleGrid: can you put something in top left cell?
Post by: Wilko Verweij on December 17, 2009, 11:38:04 AM
Hi,
I have been playing a bit with MyLittleGrid. I noticed that several ways to put information in a cell do not work for the top left cell (0,0). I tried SendMessage with %MLG_REDIMARRAYEX and %MKGSETCELLR. Is there a way to put something in (0,0)?

All suggestions are welcome...

Wilko
Title: Re: MyLittleGrid: can you put something in top left cell?
Post by: Robert Eaton on December 17, 2009, 01:28:28 PM
Isn't the top left cell (1,1)?
Title: Re: MyLittleGrid: can you put something in top left cell?
Post by: Wilko Verweij on December 17, 2009, 01:34:19 PM
No, when I  put something in row 1 , column 0, it ends up in the first column, second row.
Thanks anyway.
Title: Re: MyLittleGrid: can you put something in top left cell?
Post by: Robert Eaton on December 17, 2009, 02:33:15 PM
This code:
Function FORM1_WM_CREATE ( _
                         hWndForm As Dword, _      ' handle of Form
                         ByVal UserData As Long _  ' optional user defined Long value
                         ) As Long

Local S As Asciiz * 255
S = "TEST"
SendMessage HWND_FORM1_MLG1, %MLG_SETCELL, MakLng(1,1),VarPtr(S)

End Function


Does this for me:

(https://www.planetsquires.com/protect/forum/proxy.php?request=http%3A%2F%2Fwww.festus440.happypalm.com%2FImage10.jpg&hash=c3e6d5e290d162d29e8d87625112f01c243fef86)
Title: Re: MyLittleGrid: can you put something in top left cell?
Post by: Wilko Verweij on December 17, 2009, 02:57:07 PM
Sorry, apparently I wasn't clear enough. I want to put something in the cell above the 1 and to the left of the "A". See red area (see attachment). That would mean cell 0,0 and I can't make that work.
Wilko