Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Xojo Desktop API 2.0 #39

Open
snus3 opened this issue Nov 23, 2021 · 11 comments
Open

Compatibility with Xojo Desktop API 2.0 #39

snus3 opened this issue Nov 23, 2021 · 11 comments

Comments

@snus3
Copy link

snus3 commented Nov 23, 2021

Usage in an application updated to Xojo Desktop API 2.0 is not possible anymore because of some objects are not compatible with the new controls.

"Quick" try to update the custom-editfield demo project to API 2.0 somehow worked but the edit field is still not fully working.

@simulanics
Copy link

This is not true. See https://babelfish.studio. - The application uses full use of API 2.0 with no 1.0 references. I will be releasing the updated API 2.0 version of the editor with bug fixes I've added along the way, as well as a myriad of other official API 2.0 code soon for the community. See xojostudio.org. :-)

@tempelmann
Copy link
Owner

tempelmann commented Feb 16, 2023

Matthew, please use the proper ways and push a branch on the main github so that others can help maintain it. Name the branch API2 or something similar, please.
Or am I misunderstanding you and you're not talking about an updated version of CEF? On your website I cannot find a reference to CEF.

@simulanics
Copy link

I will create a new branch and let you know. It's CEF updated for API 2.0. The software at the site was updated and compiled using API 2.0 solely - and features CEF as its primary coding component for HTML, JavaScript, and CSS manipulation. - the CEF control is the most important part of that particular piece of software to function and it's worked flawlessly with the updates.

@gkjpettet
Copy link

gkjpettet commented Jun 19, 2023

@simulanics Can you please create a new branch with these changes Matthew if you're able to? I'm about to update CEF for API 2.0 but then I noticed this issue so I'd rather not reinvent the wheel if I don't have to!

@simulanics
Copy link

Hello. Apologies for my vacancy. As you know I was wrongfully banned from the Xojo community by Alyssa Foley in 2022, for what she stated were lies before the community, and is now deemed defamation of character as we've proved her wrong and have mounds of evidence, which is why they cannot say one iota for me even speaking out and haven't even tried; not even on social media ,😂. Guess they just keep kind of hoping I'll back down; I NEVER DO. They will be aged and dead long before that happens. 🤗 She knows I have her cornered, so she refuses to even comment to me now. She actually called me a liar PUBLICLY for a direct conversation that occurred between Geoff and I directly; that was also recorded "for quality assurance." 😉 Guess she thought she was a "know-it-all", and refused to accept that she was wrong. How childish right? Accountability and integrity are part of being an adult. Upon asking her about it, she said I had 3 "hits" against me, thus the ban, but kept repeating herself for the only single incident by her, and even snippeted it as an image to me -3 times - not joking. So she was just lying and being hateful to me. When I called her out on that, she cowered and hid from accountability/adulting. So, I'm working on that a bit, and had been seeking peaceful resolutions, but haven't heard much back, so maybe even might push for a class action if they don't start seeing the light, with some other members over at ifnotnil. Statements have already been gathered from MANY individuals.🤗 Xojo/Alyssa keep hoping time is their friend, when in reality it is their enemy, and allowing more ammunition and stories to all come together that only raise the flood waters they'll have to navigate. A simple public apology would make it all go away, but this will be a valuable lesson in why being overly prideful is destructive, and why all people deserve to be treated with respect. 💯

But, I actually have all sorts of free code over at xojostudio.org, hundreds of controls and classes all written for API 2.0, with documentation for each item, it's just been hidden so only legit developers, and not Xojo cronies, are benefiting from my hard works! 😀

I do not have access to my git from my phone, but the download link for CustomEditField 2.0 is at:

https://www.xojostudio.org/download/xds-customeditfield2023r1-api2-0/?wpdmdl=14843&masterkey=HDjyhcZj9yUaGWKa5CVt_IY4G9xqL7niTvcoCv-XT3Qa9xLcEF4g5hwbwUKqBD7kqx9j4-BwsuvPOXeKhESy-lr8DD_D-IKszczzroyCzLc

You're welcome to download and post to GitHub if you'd like. I won't have time anytime soon, even though I do maintain and update the code through the site (it's automated when I save any of the projects - they auto upload to the website). I'm still out about 60 days before I let the furies of hell pour upon Xojo and able to see if I can reconnect with the community to help try to build it up, or if we need to push to "burn it all down" and see what rises from the ashes - if anything. I've been far too nice with them, for far too long, only because I've been a Xojo developer for going on 23 years, and had great respect for Geoff, that is quickly waning. I wanted to resolve the issue "the way normal adults would." But... When the left arm becomes malignant, you can cut it off, or die with it. 🤗 and all I asked her for was a public apology for her wrongful words and actions (she didn't have a problem calling me a liar PUBLICLY!), to remove her defaming posts about me, and to reinstate my account. But - she has no integrity. Children cannot admit when they are wrong, so she'll be treated like a child if need be. The leverage is that when it comes down to Xojo or her, who is Xojo going to preserve? Xojo didn't technically do anything wrong - Alyssa did, and she represents Xojo, but she is the one ultimately who should be accountable for her actions, not Xojo. But we'll 🙈🙉🙊 The difference between her public statements and mine... Mine are 100% true 😀, so they can't do nada about it.

Where I've been last few months **I cut a finger off (right pinky at middle knuckle) and severed tendons in ring finger and part of hand on March 13th on a razor sharp rail... All sewn back together, but attending physical therapy 3x/WK to relearn to use it since about a week after surgery. So I've still been developing for contracts and such still, just a bit more hectic doing it all single/left handed. Just landed another govt contract recently -AI based forensics.🤘 and starting on a multi-million/billion dollar AI project with a team of 14 other individuals scattered across the globe in 12 days 🙌 super psyched for that endeavor.

Figured I'd let y'all know! mcombatti@xojostudio.org is always best place to reach me for anything Xojo related. I try to keep groups separate by email. Thanks for tagging me so I received the request immediately here thru Github notifications! You can remove this post after downloading source code, just wanted to explain my extreme silence and what's cooking 😀

@gkjpettet
Copy link

Thanks for the file Matthew. Sorry to hear you've been through a tough time.

There seems to be a single compilation error in TextLine.Paint() (line 118):

g.DrawText xt, x, y

There is no variable named xt so I'm not sure what string you're trying to draw here.

@simulanics
Copy link

simulanics commented Jun 19, 2023

That may be a straggler that can be commented out, without looking directly at the code; I'll take a look and re-save the project here in just a bit this evening - take all but 10 minutes to fire up the Mac and check. It was last altered on a Windows machine, so I'm almost certain that was a Mac leftover that can commented out, that the compiler wouldn't have recognized building on Windows. Give me just a bit and I'll have an answer for you on what I did 😀. Oddly I've built it into the BabelFish Studio IDE without any debug errors, as is, so I'm super curious to get home to my computer to see custom edit stand-alone on Mac to see what's up. 🤔. Give me a bit and I'll return. Hope your day has been well!

Here's some other code access that I need to get Githubbed as well.

Link Expired

**Will be OS'd once I can get them uploaded.

Happy coding!

@gkjpettet
Copy link

@simulanics: Commenting out the rogue line allows the app to build on macOS but nothing is drawn when you type.

Looking at the Windows code below it looks like there is some complexity to figuring out what is the string to draw. Perhaps you had code that determined the string to draw that was supposed to be stored in an undeclared variable called xt and that code got removed?

I can't quite figure out how to to determine the string required from the word variable...

@simulanics
Copy link

@simulanics: Commenting out the rogue line allows the app to build on macOS but nothing is drawn when you type.

Looking at the Windows code below it looks like there is some complexity to figuring out what is the string to draw. Perhaps you had code that determined the string to draw that was supposed to be stored in an undeclared variable called xt and that code got removed?

I can't quite figure out how to to determine the string required from the word variable...

Good Morning. After a quick look, it seems that "XT" should have been replaced with "TheText." Looking thru my edit notes, the XT variable was original and took me a bit to track down, so it was renamed "TheText" to remove confusion 🤣

@gkjpettet
Copy link

Spot on Matthew - that's got it up and running.

Lovely job on updating the control. I haven't dug into it but the only issue I've noticed is that pressing tab to display the autocomplete popup window causes the popup window to flash momentarily but it essentially doesn't work. Try typing someKey.s for example and press tab...

@simulanics
Copy link

Spot on Matthew - that's got it up and running.

Lovely job on updating the control. I haven't dug into it but the only issue I've noticed is that pressing tab to display the autocomplete popup window causes the popup window to flash momentarily but it essentially doesn't work. Try typing someKey.s for example and press tab...

I will delve into this tomorrow and take a peek after an AI conference call from 11-1. Under the key press event, I may have set it to mimic VSCode by using Shift+space combo to invoke auto competition (at least I did in BF Studio). If that's the case, I should've commented out the chr(9) line under the key press event, and you may be able to swap the // comment lines. I'll look and get back with you soon. Have a great evening!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants