Yes. If the source image was originally a jpg you may have to fiddle its' dpi setting or resize it to get the result you want. See post #11 onwards in this thread http://www.b4x.com/forum/showthread.php?t=1349I presume it paste's the bitmap where the current cursor is on the page?
Version 1.4 attached has a new CopyImageToClipboard function!
I did. Sorry. Slip of the mouse - they are adjacent files in the folder! Reposted on original link above.I think you've added in the wrong help file for the dll.
Sorry, that's not possible. The page layout is done at print time according to the margins and page size specified. Until then the contents of the RichTextBoxDesktop are just a linear stream of text and formatting commands so there is no way to predict where information will be printed on the page and hence no way to position the cursor at an arbitrary page location.What would be very nice is if you can move the cursor to some arbitary location on the printed page, do your paste of the bitmap and then set the cursor to the top of the page where normal text handling can happen with normal print report logic.
Sorry, that's not possible.
Post again if Erels' change in the next release doesn't fix the problem and I'll do it then when I have the time.Is a device dummy possible?
Post again if Erels' change in the next release doesn't fix the problem and I'll do it then when I have the time.
Sub App_Start
rtb.New1("Form1",10,10,210,150)
form1.Show
flib1.New1("Form1",B4PObject(1))
cm1.New1
cm1.AddItem("Yes")
cm1.AddItem("No")
cm1.AddItem("-") 'Adds a separator
cm1.AddItem("Maybe")
flib1.AddContextMenu(rtb.ControlRef,cm1.Value)
End Sub
Sub cm1_Click
Select cm1.SelectedText
Case "Yes"
Msgbox(cm1.SelectedText)
Case "No"
Msgbox(cm1.SelectedText)
Case "Maybe"
Msgbox(cm1.SelectedText)
End Select
End Sub
If you mean HardwareDesktop, as RichTextDesktop is desktop only, and you are expecting to use GetClipboard data then I am afraid you are going to be disappointed as it doesn't work! This is probably because of a threading issue in earlier versions of B4ppc that made it unable to access some COM controls - and the Clipboard in .NET is accessed via a COM control. I used a workaround in RichTextDesktop to access the Clipboard but that may no longer be necessary as Erel changed the threading model which was what let me implement a WebBrowser for the desktop as WebBrowser is also a COM control.That means that it should be relatively simple to program it using the hardware.dll
You are probably missing the fact that the device does not implement a RichTextBox control and also does not have any awareness of printing built in to the OS. Therefore there cannot be a RichTextBoxDevice library as the fundamentals to support it are missingA dummy library for the device would be handy, or am I missing something.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?