Thank you for reminding me.
Note If you are retrieving a pointer or a handle, this function has been superseded by the GetWindowLongPtr function. (Pointers and handles are 32 bits on 32-bit Windows and 64 bits on 64-bit Windows.) To write code that is compatible with both 32-bit and 64-bit ...
Search found 54 matches
- Tue Nov 19, 2024 3:33 pm
- Forum: Coding Questions
- Topic: how to get all text from the webgadget
- Replies: 3
- Views: 626
- Tue Nov 19, 2024 3:06 pm
- Forum: Coding Questions
- Topic: how to get all text from the webgadget
- Replies: 3
- Views: 626
Re: how to get all text from the webgadget
Problem solved, here are some key codes.
Protected *OuterHTML, Browser.IWebBrowser2 = GetWindowLongPtr_(GadgetID(WebGadget), #GWL_USERDATA)
Protected DocumentDispatch.IDispatch, DocElement.IHTMLElement, Document3.IHTMLDocument3
If Browser
If Browser\get_Document(@DocumentDispatch) = #S_OK And ...
Protected *OuterHTML, Browser.IWebBrowser2 = GetWindowLongPtr_(GadgetID(WebGadget), #GWL_USERDATA)
Protected DocumentDispatch.IDispatch, DocElement.IHTMLElement, Document3.IHTMLDocument3
If Browser
If Browser\get_Document(@DocumentDispatch) = #S_OK And ...
- Sat Nov 16, 2024 3:22 am
- Forum: Coding Questions
- Topic: Text BackColor questions in scintilla
- Replies: 5
- Views: 844
Re: Text BackColor questions in scintilla
yes,I set the color to RGB(180, 255, 255), the colors look almost the same.Thanks.
spikey wrote: Fri Nov 15, 2024 5:05 pm It's rendered with a checker-board pattern on lines with no text, if you zoom in. You might be able to achieve a closer match if you lighten the styles colour. I didn't try.
- Fri Nov 15, 2024 4:45 pm
- Forum: Coding Questions
- Topic: Text BackColor questions in scintilla
- Replies: 5
- Views: 844
Re: Text BackColor questions in scintilla
Thanks for your reply. It works well,although the marginback and margintextback are not identical.The codes far exceeded my expectations
You need to set the body style with #SCI_STARTSTYLING and #SCI_SETSTYLING. The margin style with #SCI_MARGINSETSTYLE. You will need to update as the body text is ...
You need to set the body style with #SCI_STARTSTYLING and #SCI_SETSTYLING. The margin style with #SCI_MARGINSETSTYLE. You will need to update as the body text is ...
- Fri Nov 15, 2024 4:07 am
- Forum: Coding Questions
- Topic: Text BackColor questions in scintilla
- Replies: 5
- Views: 844
Text BackColor questions in scintilla
I found the text has a white BackColor, but how to change it?
If OpenWindow(0, 0, 0, 330, 390, "ScintillaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ScintillaGadget(0, 5, 5, 320, 380,0)
ScintillaSendMessage(0, #SCI_SETMARGINTYPEN,0,#SC_MARGIN_NUMBER)
ScintillaSendMessage(0, #SCI ...
If OpenWindow(0, 0, 0, 330, 390, "ScintillaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ScintillaGadget(0, 5, 5, 320, 380,0)
ScintillaSendMessage(0, #SCI_SETMARGINTYPEN,0,#SC_MARGIN_NUMBER)
ScintillaSendMessage(0, #SCI ...
- Wed Nov 13, 2024 5:58 am
- Forum: Coding Questions
- Topic: how to get all text from the webgadget
- Replies: 3
- Views: 626
how to get all text from the webgadget
some webpages content may changed after loading(js control).
so I want to get the final text through the webgadget
but the webgadget getgadgetitemtext method has no #pb_web_alltext parameter.
What should I do?
so I want to get the final text through the webgadget
but the webgadget getgadgetitemtext method has no #pb_web_alltext parameter.
What should I do?
- Sat Dec 14, 2019 4:41 pm
- Forum: Coding Questions
- Topic: Help Running Windows UWP Apps
- Replies: 1
- Views: 1001
Re: Help Running Windows UWP Apps
run=RunProgram("calc.exe","","",#PB_Program_Open)
While ProgramRunning(run)
Debug ProgramID(run)
Wend
Debug ProgramExitCode(run)
Test in win10, the calculator form appear at the time 'run'stoping. and the calculater Form points to a new process "Calculator. exe"
Purebasic just start calc.exe ...
While ProgramRunning(run)
Debug ProgramID(run)
Wend
Debug ProgramExitCode(run)
Test in win10, the calculator form appear at the time 'run'stoping. and the calculater Form points to a new process "Calculator. exe"
Purebasic just start calc.exe ...
- Sat Dec 14, 2019 4:10 pm
- Forum: Coding Questions
- Topic: AESCBCEncrypt(PHP openssl_encrypt for purebasic)
- Replies: 4
- Views: 1929
Re: AESCBCEncrypt(PHP openssl_encrypt for purebasic)
A bit modified:
CompilerIf #PB_Compiler_IsMainFile
EnableExplicit
CompilerEndIf
.......
......
Thank you for correcting the code.
I found "aes-128-cbc" encode result in Purebasic is diffrent from JS and PHP(openssl_encrypt),so, I write these codes for Http request use.
May be helpful if ...
CompilerIf #PB_Compiler_IsMainFile
EnableExplicit
CompilerEndIf
.......
......
Thank you for correcting the code.
I found "aes-128-cbc" encode result in Purebasic is diffrent from JS and PHP(openssl_encrypt),so, I write these codes for Http request use.
May be helpful if ...
- Fri Dec 13, 2019 1:19 pm
- Forum: Coding Questions
- Topic: AESCBCEncrypt(PHP openssl_encrypt for purebasic)
- Replies: 4
- Views: 1929
AESCBCEncrypt(PHP openssl_encrypt for purebasic)
Procedure.s AESCBCEncrypt(text.s,password.s,InitializationVector.s,method.l=128,padding.l=1,flag.l=#PB_UTF8)
;padding--0表示ZeroPadding;1表示pkcs7padding/pkcs5padding(通过其他软件测试没有发现加密结果不一样)
;padding--0 represents "ZeroPadding";1 represents "pkcs7padding"/"pkcs5padding"(It seems that, there is no ...
;padding--0表示ZeroPadding;1表示pkcs7padding/pkcs5padding(通过其他软件测试没有发现加密结果不一样)
;padding--0 represents "ZeroPadding";1 represents "pkcs7padding"/"pkcs5padding"(It seems that, there is no ...
- Sat Nov 09, 2019 1:10 pm
- Forum: Coding Questions
- Topic: Http Request questions
- Replies: 1
- Views: 1035
Http Request questions
like this:
InitNetwork()
NewMap Header$()
Header$("Content-Type") = "plaintext"
Header$("UserAgent") = "Firefox 54.0"
httpheader$=GetHTTPHeader("https://www.google.com",#PB_HTTP_NoRedirect,Header$("UserAgent"))
HttpRequest = HTTPRequest(#PB_HTTP_Get, "https://www.google.com", "", 0, Header ...
InitNetwork()
NewMap Header$()
Header$("Content-Type") = "plaintext"
Header$("UserAgent") = "Firefox 54.0"
httpheader$=GetHTTPHeader("https://www.google.com",#PB_HTTP_NoRedirect,Header$("UserAgent"))
HttpRequest = HTTPRequest(#PB_HTTP_Get, "https://www.google.com", "", 0, Header ...
- Sun Jan 24, 2016 3:42 am
- Forum: Coding Questions
- Topic: New font in PDF
- Replies: 3
- Views: 1746
Re: New font in PDF
Let me Try.
The option to add a font really works and you don't need any extra programming.
......
fpdf.org does have a link to create your own font but first you have to know how those numbers are being used in PurePDF
There are some shortcuts being taken to create this tables in PurePDF but I ...
The option to add a font really works and you don't need any extra programming.
......
fpdf.org does have a link to create your own font but first you have to know how those numbers are being used in PurePDF
There are some shortcuts being taken to create this tables in PurePDF but I ...
- Sat Jan 23, 2016 2:25 pm
- Forum: Coding Questions
- Topic: New font in PDF
- Replies: 3
- Views: 1746
Re: New font in PDF
Paradox wrote:I want to include new fonts in PDF, does anyone have an example of how to convert the source to the form below?
......
I also Want To Know.
- Sat Jan 23, 2016 2:22 pm
- Forum: Coding Questions
- Topic: PureBasic v5.31 final X64 and Pure PDF
- Replies: 1
- Views: 1670
Re: PureBasic v5.31 final X64 and Pure PDF
When compiling i receive this message in 64 bits version
Structure Introuvable Mem_Datastructure
Unforgetable structure Mem_DataStructure
Can someone help me ti solve this problem ?
Tha,ks in advance
You Need to delete the PUREPDF and PUREPDF_RES.res file and compile with the purepdf.pb file
Structure Introuvable Mem_Datastructure
Unforgetable structure Mem_DataStructure
Can someone help me ti solve this problem ?
Tha,ks in advance
You Need to delete the PUREPDF and PUREPDF_RES.res file and compile with the purepdf.pb file
- Sat Jan 23, 2016 2:12 pm
- Forum: Coding Questions
- Topic: How to use Special characters Use PurePDF?
- Replies: 4
- Views: 1572
Re: How to use Special characters Use PurePDF?
The Problem is solved,Thanks normeus.
We Need to comple Compile into Unicode Exe File.
but I don't Know How to Make the PDF file short? It sames the Font file is include in the PDF file?
http://pic.yupoo.com/waitfordawn/Fh3XNzUH/medish.jpg
Adobe Reader does not support all fonts, embedded in the ...
We Need to comple Compile into Unicode Exe File.
but I don't Know How to Make the PDF file short? It sames the Font file is include in the PDF file?
http://pic.yupoo.com/waitfordawn/Fh3XNzUH/medish.jpg
Adobe Reader does not support all fonts, embedded in the ...
- Sat Jan 23, 2016 1:28 pm
- Forum: Coding Questions
- Topic: How to use Special characters Use PurePDF?
- Replies: 4
- Views: 1572
Re: How to use Special characters Use PurePDF?
useless...
http://pic.yupoo.com/waitfordawn/Fh3HOUmG/Qnxt8.jpg
There is no need to modify "purePDF.pb"
in the examples folder look at "Tutorial22 Font.pb"
pdf_SetFont("Tahoma","",12)
but instead use a font that has the characters you want, in windows 10 I have:
pdf_SetFont("Microsoft ...
http://pic.yupoo.com/waitfordawn/Fh3HOUmG/Qnxt8.jpg
There is no need to modify "purePDF.pb"
in the examples folder look at "Tutorial22 Font.pb"
pdf_SetFont("Tahoma","",12)
but instead use a font that has the characters you want, in windows 10 I have:
pdf_SetFont("Microsoft ...