Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-01-2023, 01:02 AM   #1
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 5,078
Default Broken search in custom preferences page

The Preferences window's search feature does nothing when an extension-created page is currently active. (It does work, including finding text in the custom page, if any other page is active.)

Code:
static prefs_page_register_t page {
  "pageid", "Page Name", &create,
  0x9a, "", // parent page ID (Plug-ins, unknown parent idstr)
  0,        // won't have children
};

plugin_register("prefpage", reinterpret_cast<void *>(&page));
Looked into it a little bit in case REAPER was expecting my page to behave in a certain way to enable search. The Find button is doing IsWindow on a nonsensical HWND (1043 in my case) and giving up.

Overwriting that value to be the proper HWND of the custom page at runtime makes the search succeed:



...which leads me to believe this may instead be a bug on REAPER's side.

Last edited by cfillion; 01-02-2023 at 05:34 AM. Reason: non-nonsensical -> nonsensical
cfillion is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.