EsGRID grid gadget 2.1. Don't post here!

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

Finally I'm using this code, and now, it only get 1%-2% cpu when I have 1-5 animated cells:

Code: Select all

Procedure.l ICONO_STATUS_RUN_THREAD(PauseForChangeColor.L)
  Repeat
   
    If IconSTATUS_COLOR = icon
      IconSTATUS_COLOR = icon2
    Else
      IconSTATUS_COLOR = icon
    EndIf
   
    For R.L = 0 To egrid_NumberOfRows(#MyGrid) -1
      If egrid_GetCellText(#MyGrid, 0,R)  = "Running"
        egrid_SetCellText(#MyGrid, 0,R, "Running"); Force Icon update
      EndIf
      Delay(1)
    Next

    Delay(PauseForChangeColor)

  ForEver
EndProcedure 
Thank you Srod
PB 6.21 beta, PureVision User
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

EsGRID version 1.3.2 - 11 February 2009.
Version 1.3.2 fixes a very long outstanding bug related to the click-and-drag selection of multiple cells + a couple of minor bugs!
Automatic selection would occasionally assume a life of it's own!

Currently this fix is implemented only in the source code version of EsGRID for PB 4.3. A version for PB 4.2 will follow only if there is a demand for this.

http://www.nxsoftware.com
I may look like a mule, but I'm not a complete ass.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

I've converted all my source so 4.3 is fine by me.

cheers
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

Is it possible to change the cell height?
User avatar
Kiffi
Addict
Addict
Posts: 1485
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

Justin wrote:Is it possible to change the cell height?
yes, with the rowheight-parameter in egrid_CreateGrid()

Code: Select all

egrid_CreateGrid(gadgetnum, x, y, width, height, rowheight, windowstyles, furtherstyles)
Greetings ... Kiffi
Hygge
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

thanks
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 »

small problem:
i have a esgrid in a container, sitting in a splitter, i can't see anything :o

can you solve this problem or must i the container remove?
the container makes somethinks easier for me :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 »

Works fine here on both XP and Vista.

I have had problems with Frame3d gadgets in the past. You wouldn't have one of these around the grid would you?

Can you post some code?
I may look like a mule, but I'm not a complete ass.
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 »

I have made a testcode, and it works, but not in my program.

I will find the bug, thanks for your help.

(No Frame3D)

// it works, :oops: i'm so stupid
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:I have made a testcode, and it works, but not in my program.

I will find the bug, thanks for your help.

(No Frame3D)

// it works, :oops: i'm so stupid
You certainly are! :wink:

In my tests, the grid flickers a lot if inside a container whilst moving the splitter's divider etc. Applying #WS_CLIPCHILDREN to the container seemed to sort it out.
I may look like a mule, but I'm not a complete ass.
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 »

thx for the tip, flickering is my next problem :wink:

Greetings
Thomas
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 »

I have used EsGRIDs inside containers inside nxSplitters inside containers inside other nxSplitters without any problems or flicker. :wink:
I may look like a mule, but I'm not a complete ass.
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:I have used EsGRIDs inside containers inside nxSplitters inside containers inside other nxSplitters without any problems or flicker. :wink:
I can't use nxSplitter :roll: no x64 :(
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 »

That's true! The lazy b*stard author of Nexus still hasn't gotten around to converting it to x64! Then again he no longer has access to a 64-bit version of Windows!

Oh well...
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 »

EsGRID version 1.3.3 - 7th April 2009.
This update/bug-fix is for the Purebasic 4.3 version of EsGRID only.

Changes :
  • Adjusted headers to use/allow multiple rows of text.
  • Fixed a bug with the #egrid_SingleLineText flag.
  • Rectified a Vista related issue when using right justified text.
http://www.nxsoftware.com
I may look like a mule, but I'm not a complete ass.
Post Reply