Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » FindReplaceTool with right mouse click
FindReplaceTool with right mouse click [message #45207] Sun, 04 October 2015 17:20 Go to next message
forlano is currently offline  forlano
Messages: 1116
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

the starting point is UWord example.

I am trying, without success, to let appear the FindReplaceTool() tool with a mouse right click on the document window.
Any suggestion will greatly appreciated.

Luigi
Re: FindReplaceTool with right mouse click [message #45210 is a reply to message #45207] Tue, 06 October 2015 15:51 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
Hi Luigi,

To achieve what you want do this,

Add Function with required menu bars

void UWord::PopUpBar(Bar& bar)
{
	editor.FindReplaceTool(bar);
	editor.UndoTool(bar);
	editor.RedoTool(bar);
}


Add this to editor.WhenBar like this in UWord constructor ( UWord::UWord ) at the end.
	editor.WhenBar << THISBACK(PopUpBar);

if you use "=" in place of "<<" then original menu will be replaced.
With "<<" new menu added to original menu.


index.php?t=getfile&id=4841&private=0
  • Attachment: Image.png
    (Size: 8.96KB, Downloaded 245 times)


Warm Regards

Deepak

[Updated on: Tue, 06 October 2015 15:55]

Report message to a moderator

Re: FindReplaceTool with right mouse click [message #45212 is a reply to message #45210] Tue, 06 October 2015 19:52 Go to previous message
forlano is currently offline  forlano
Messages: 1116
Registered: March 2006
Location: Italy
Senior Contributor
Hi Deep,

thanks a lot!
It works as expected.

Luigi
Previous Topic: Uword example: Save icon enabled only if file changed
Next Topic: Qtf and non UTF8 strings
Goto Forum:
  


Current Time: Thu Feb 25 00:26:48 CET 2021

Total time taken to generate the page: 0.00989 seconds