That would be cool - looking forward to hearing any update about thatsrod wrote:I'll give the virtual grids some more thought.

Code: Select all
If OpenWindow(1,5,5,300,210,"",#PB_Window_SystemMenu) And CreateGadgetList(WindowID(1))
egrid_CreateGrid(0,5,5,290,105,18,0,#egrid_ResizeColumnsTrue)
;egrid_CreateCellCallback(0,@CellCallBack())
egrid_AddColumn(0,0,"Col1",150)
egrid_AddColumn(0,1,"Col2",150)
If PureLVSORT_SelectGadgetToSort(0, #PureLVSORT_ShowClickedHeader_IconLeft) = #PureLVSORT_Ok
PureLVSORT_SetColumnType(0, 0, #PureLVSORT_String) ; default, not necessary
PureLVSORT_SetColumnType(0, 1, #PureLVSORT_String) ; default, not necessary
EndIf
ButtonGadget(1,5,110,80,30,"Click me!")
Define i
For i=1 To 9
AddGadgetItem(0,-1,""+Chr(10)+"Col1_"+Str(i)+Chr(10)+"Col2_"+Str(i))
Next
Define Event.l
Repeat
Event=WaitWindowEvent()
Select Event
Case #PB_Event_CloseWindow :
Break :
Case #PB_Event_Gadget
If EventGadget()=1
egrid_AddRow(0,0)
EndIf
EndSelect
ForEver
EndIf
I disabled that for some reason. I think it was causing some kind of problem (memory escapes me now!) I'll try reinstating it to see what happens.magicjo wrote:Hi srod:
First of all thanks for the quick last replies, and now a few requests:
1) if is possible to show the standard popup of edit string gadget(Cut,Copy,etc..),supposing that you blocking it;
When #egrid_losingfocus fires, there is no selected row! Again I did this on request. I'll look into adjusting this so that the #egrid_LosingFocus message notifies you which cell was previously selected etc. You could also use the flag #egrid_AlwaysShowSelection when creating an egrid. This way the selection box will always remain.2 )if is possible to know the row previously selected when the egrid loses the focus, instead of manually store the row on event #egrid_losingfocus in someone variable,struct,etc.
I really can't vouch for what will happen when you use these libraries together (for one I have not used PURELVSort). Both libs undoubtedly employ various levels of subclassing and who knows where the 'bug' will be? For one thing, column 0 in egrid will be column 1 in PURELVSort etc. as an egrid is a massively subclassed ListIcon with the 'proper' column 0 blanked out. This was absolutely necessary for various reasons which I won't go into right now.3)I've had an invalid access memory using the PURELVSort Gnozal's library, follow a code example :
Execute, then order first column, press button and reorder the first column and crash on WaitWindowEvent() line; on some previous replies you said that might be problems on double subclassing of listviewgadget, therefore who must prey for fix the bug, you or Gnozal ?
There are basic instructions on the download page - but yes I should make the instructions easier!KidNovak wrote:Sorry, I'm still a PB rookie.
I downloaded the latest version of eGrid "egrid4.zip".
Where do I put the files that are in the zip, and do I have to
configure anything?
When I run "egrid4 demo1.pb" I get error:
Line 35 - egrid_CreateGrid() is not a function...
Thank you,
Novak
like gnozals and PBOSL libs?...\PureLibraries\UserLibraries\
...\SubSystems\UserLibThreadSafe\PureLibraries\
...\SubSystems\UserLibUnicode\PureLibraries\