Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SetEditBoxScissor() does not clip the editbox backgound or border

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Apr 2019 03:20
Is there anyway to get the edit box background and border to clip to the SetEditBoxScissor() co-ordinates? Only the text is clipped
Here is some code that shows what i mean
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 5th Apr 2019 14:27
I have been playing with that code and tried my own clipping routine without success
I would've thought you could just set the size of the editbox. would've wrote a function
if below had behaved properly
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Apr 2019 22:54
Quote: "I would've thought you could just set the size of the editbox"

That's what i thought
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 6th Apr 2019 19:32 Edited at: 6th Apr 2019 19:37
thought i was onto something but resizing box height offered unexpected behavior...



try just left/right first. if we had text justification i think it could work as you might want (do the real Text commands work with editbox?)

then, up/down is another story... is the text size shrinking? odd. i only added upkey; when i saw what happened, i didn't bother with downkey.

otherwise, its ugly (my code, i mean)

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 6th Apr 2019 22:26
Very interesting. Thanks VN that helps a lot

Login to post a reply

Server time is: 2024-11-23 01:56:52
Your offset time is: 2024-11-23 01:56:52