Sign in to follow this  
Followers 0
Vision

GraphGDIPlus Graph clear

3 posts in this topic

hi

i am using the GraphGDIPlus UDF for my graph but i cant clear the graph (nothing happens)

can you help me`?

Share this post


Link to post
Share on other sites



cant post my complete code.

cause it will not work without my bluetooth PCB/board.

but heres the part where i create the graph

Func _creategraph()


$Graph = _GraphGDIPlus_Create($Form1_1,32,384,449,209,0xFF000000,0xCCCCCCC)

_GraphGDIPlus_Set_RangeX($Graph,0,100); ,10,1,1)
_GraphGDIPlus_Set_RangeY($Graph,0,16); ,10,1,1)

_GraphGDIPlus_Set_GridX($Graph,1,0xFFFFFFFF)
_GraphGDIPlus_Set_GridY($Graph,1,0xFFFFFFFF)

_gradeline()

Endfunc


Func _gradeline()

    _GraphGDIPlus_Set_PenSize($Graph,1)   
    ;----- Set line color and size -----
    _GraphGDIPlus_Set_PenColor($Graph,0x96000000) ;black

    ;----- draw lines -----
    _GraphGDIPlus_Plot_Start($Graph,0,3.5)

    _GraphGDIPlus_Plot_Line($Graph,100,3.5)
    _GraphGDIPlus_Refresh($Graph)

EndFunc

so if i get a new measurement result from my PCB, i tryed to delete the graph and recreate it with the func _creategraph()

but then the graph is displayed not correctly (glitchy).

and if i want to clear it with _GraphGDIPlus_Clear($Graph) just nothing happens.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0