how can display line when using window (ewin)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how can display line when using window (ewin)?

1,506 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mori_64 on Tue Apr 22 21:11:36 MST 2014
Hello

How can i display a line after create  a window ?
Generally how can display 2d lib or what ever that is not belong to active window ?

I need  using dialog box (some button and .... and their notification's) and simultaneously draw line or circle .
is it possible ?

Thanks
any help will be use full
Labels (1)
0 Kudos
Reply
4 Replies

1,434 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mori_64 on Sat May 10 21:07:10 MST 2014
Thanks
CUSKO

It works fine  ;-)
0 Kudos
Reply

1,434 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Cusko on Fri Apr 25 03:25:07 MST 2014
You can still do it that way. In WM_PAINT you can say:
case WM_PAINT:
  if (flag==1){
    GUI_DrawLine();
  }
)
End when you need your line you do this:
flag=1;
WM_InvalidateWindow(hWin);

hWin is your windows handle.
Hope this helps.
0 Kudos
Reply

1,434 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mori_64 on Thu Apr 24 22:20:06 MST 2014
Thanks Cusko

But i need to do it whenever the application need !
0 Kudos
Reply

1,434 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Cusko on Wed Apr 23 05:16:09 MST 2014
You can do this in more then one way.
I suggest you add GUI_Drawline() in window callback routine under WM_PAINT.
0 Kudos
Reply