justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: is there an example of how to use virtwnd out there?
Asked by olilarkin (81.100.230.x) on April 7 2014, 7:14am
Reply on April 7 2014, 1:38pm (edited at April 7 2014, 1:40pm):
    Most of the examples I can point you to are pretty specific to the application in which they are used:
    • SnapEase uses it (uses a WDL_VWnd per image, plus a bunch of WDL_VWnd children for the image controls).
    • SWS extension use a and b (via JeffOS)
    (all from memory, function names may be slightly wrong): WDL_VWnd is a class for simple lightweight composited view hierarchies. To use, other than creating the class and using SetRealParent() for the root WDL_VWnd, you'd call WDL_VWnd::OnMouse*() on the relevant WM_ mouse messages, and WDL_VWnd::OnPaint in WM_PAINT, etc. There is also a WDL_VWnd_Painter to help with painting, though its use is not strictly necessary (I believe you can just draw to any LICE_IBitmap with the right tweaks to logic). Hope this helps... I suppose I could put together a simple example in the LICE test app, or something too.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS