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

Reply
 
Thread Tools Display Modes
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,042
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
Old 01-01-2023, 03:58 AM   #2
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 13,338
Default

Confirming that search doesn't work for ReaImGui Preferences page. Reaper 6.73 64-bit, Windows 10.
vitalker is online now   Reply With Quote
Old 01-02-2023, 04:51 AM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,799
Default

thanks, fixing!
Justin is offline   Reply With Quote
Reply

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 04:18 AM.


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