justin = { main feed , music , code , askjf , social , 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] | [all]

Question: Hi, I'm working on an extension that uses a listbox, and I can get it to work for Windows, but won't work on Mac. When I run the php script, it makes the mac .rc_mac_dlg, but i'm stuck on this: hMarkerListWnd = CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, "", WS_CHILD | WS_VISIBLE | WS_TABSTOP | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_SINGLESEL, 0, 0, 1, 1, hw
Asked by Wyatt (76.77.161.x) on April 26 2016, 12:04am
Reply on April 26 2016, 3:02pm:
    "Sorry I didn't finish the question below. Is there a function in swell that I'm missing or is it possble?" Yeah, you can't use CreateWindowEx() on SWELL -- the easiest thing is to create controls in dialog resources and have CreateDialog() deal with it. To create on the fly, do something like this:
    #ifdef _WIN32
      hMarkerListWnd = CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, "", WS_CHILD | WS_VISIBLE | WS_TABSTOP | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_SINGLESEL, 0, 0, 1, 1, hw ...
    #else
      SWELL_MakeSetCurParms(1, 1, 0, 0, parent, false, false);
      hMakerListWnd = SWELL_MakeControl("",id_if_you_care,"SysListView32",LVS_REPORT|LVS_SINGLESEL,x,y,w,h,0);
      SWELL_MakeSetCurParms(1, 1, 0, 0, NULL, false, false);
    
    #endif
    
    
    
[back to index] | [unreplied] | [replied] | [all]
Copyright 2017 Justin Frankel. | RSS