Dll For Textbox Support In Gm, TEdit and TMemo implemented |
![]() ![]() |
Dll For Textbox Support In Gm, TEdit and TMemo implemented |
Jan 26 2006, 02:55 AM
Post
#1
|
|
|
GMC Member Group: GMC Member Posts: 123 Joined: 16-July 05 Member No.: 31556 |
Windows Text Box DLL v1.0
By Peter games /SOFTWARE 2006 DISCONTINUED! About Have you ever tried to make a normal text box, like notepad, with GameMaker? If yes probably u understand how difficult is it! This DLL adds REAL WINDOWS TEXT BOXES in GameMaker! You can add normal editbox or multiline text box. You can set font, and color of textboxes, u can make them password boxes (using edit_passwordchar function), u can create, destroy them, set the text in them, get the text from them and so on... In the future i plan to add other windows common controls, like buttons, checkboxes and even other windows! The DLL for now have one extra function, to show Windows Message Boxes DISCONTINUED but available Check out this instead This post has been edited by petersvp: May 20 2007, 09:22 PM |
|
|
|
Jan 26 2006, 07:26 AM
Post
#2
|
|
|
The PIXEL'er Group: GMC Member Posts: 695 Joined: 24-February 05 From: The Philippines Member No.: 22645 |
ok and i'll be looking forward to see
the updates. keep up the good job! |
|
|
|
Jan 26 2006, 04:11 PM
Post
#3
|
|
|
GMC Member Group: GMC Member Posts: 1825 Joined: 1-March 05 From: Here in holland Member No.: 23016 |
thank you for creating this, I've been looking for such a thing for a pretty long time.
ps: who should I give credits? |
|
|
|
Jan 26 2006, 04:22 PM
Post
#4
|
|
|
GMC Member Group: GMC Member Posts: 305 Joined: 23-May 04 From: UK Member No.: 9721 |
Brilliant. I was looking for something like this.
Maybe you could add commands like Cut, Copy, Paste, Delete text and edit_set_width, so that you can change the box size with the window. Keep up the good work. ^.^ Cheers Eagle |
|
|
|
Jan 26 2006, 04:31 PM
Post
#5
|
|
|
GMC Member Group: GMC Member Posts: 785 Joined: 5-February 04 From: Look out the window. Member No.: 5588 |
Hey, this is really good! It's flexible--I like that the game runs with these boxes so that there's no special handling. There have been others like this that freeze the game and then return the input; this is better.
Keep it up--new windows would be incredible, and with checkboxes and radio buttons, this would easily become the complete package for user input in GM. |
|
|
|
Jan 26 2006, 04:53 PM
Post
#6
|
|
|
GMC Member Group: GMC Member Posts: 558 Joined: 15-February 05 From: Sri Lanka Member No.: 21990 |
I like to say that this is better the GMWW because you can type more text than the width of the box it self..... And also no problems mostly because you wrote this Delphi so its more compatable in GM.
|
|
|
|
Jan 26 2006, 07:33 PM
Post
#7
|
|
|
Lunatic Group: Local Moderators Posts: 2191 Joined: 23-December 03 From: United States, MA Member No.: 3850 |
Chirantha, for your information, I fixed that glitch that it stops your cursor when the width is reached. It now scrolls.
This post has been edited by roachofdeath: Jan 26 2006, 07:40 PM |
|
|
|
Jan 26 2006, 08:30 PM
Post
#8
|
|
|
GMC Member Group: GMC Member Posts: 123 Joined: 16-July 05 Member No.: 31556 |
I currently handle textboxes using HWND and SendMessage function
I Yet study them, so it is not possible to make ALL before i understand the SendMessage Function. I Will NOT make checkboxes cuz they are so easy to be done with GM Itself... but in the future i don't know. I plan to ad Buttons but i dont know how GM To understand that a specified button is being clicked or not... BUT i can also re-create the DLL to be ID based, not hwnd based, it will be pretty easy but...probably will have limit of components created, to 32767, cuz if more an "Array size too large" error occurs. I will say if there is any update. Ps> Do you notice the Windows Message Box function? Just fill correctly the username and password box ---------------------------------------------------- QUOTE Maybe you could add commands like Cut, Copy, Paste, Delete text and edit_set_width, so that you can change the box size with the window. --> Well, to delete the text from textbox is so easy, just set the text in it to "". Just get the text from textbox, and copy it to clipboard with the GM Functions. Edit_set_width, u can first get text, secondly destroy the textbox, then create new textbox with other width, and set back text in it. ---------------------------------------------------- QUOTE I like that the game runs with these boxes so that there's no special handling. There have been others like this that freeze the game and then return the input; Well, thanks to Mark Overmars that got the window_handle() function, which returns the hwnd of client game window! Bercause i know this hwnd, i can set the game window to be PARENT of the textboxes, so the textboxes are now PART of the game window. Cuz the "Windows Common Controls" are made for applications ------------------------------------------------------ QUOTE I like to say that this is better the GMWW Well, i dont believe this. Also, I havent yet tested the GMWW WELL, sorry for that long post This post has been edited by petersvp: Jan 26 2006, 09:06 PM |
|
|
|
Jan 27 2006, 09:52 AM
Post
#9
|
|
|
GMC Member Group: GMC Member Posts: 34 Joined: 22-October 05 Member No.: 37463 |
Hmm thanks this was exectlie what i need
|
|
|
|
Jan 27 2006, 11:50 PM
Post
#10
|
|
|
Pwner of barcodes Group: GMC Member Posts: 2570 Joined: 20-June 05 From: Paris, France Member No.: 29869 |
make a function to update stuff like a multilines height and width...
i was going to make something and needed that function this is pretty neato =D |
|
|
|
Jan 28 2006, 01:27 AM
Post
#11
|
|
|
GMC Member Group: GMC Member Posts: 123 Joined: 16-July 05 Member No.: 31556 |
To update anything i yet dont have needed knowledge! But you can get the text first, then destroy the text box and create new with nwe parameters, then set the text in it to old one.
example: 1st: a=edit_create... now updating itself: text=edit_get_text(a); //here set the font and color parameters edit_destroy(a); a=edit_create(....); edit_set_text(a,text); I have to work in other functions, even to rewrite the DLL at all... Important: When i rewrite the dll i will RENAME functions, like: edit_create, memo_create, edit_set_text, memo_set_text... cuz i will add more controls, like buttons, in my DLL, so every component will have separate functions. This post has been edited by petersvp: Jan 28 2006, 01:48 AM |
|
|
|
Jan 28 2006, 01:50 AM
Post
#12
|
|
|
GMC Member Group: GMC Member Posts: 267 Joined: 6-August 05 From: Your Mind Member No.: 32822 |
Very sweet dll.
|
|
|
|
Jan 28 2006, 02:02 PM
Post
#13
|
|
|
GMC Member Group: GMC Member Posts: 64 Joined: 8-June 05 From: Round the net Member No.: 29183 |
Yeah, this Example ROCKS!!!!
I'll put your name in credits with BIG LETTERS! |
|
|
|
Jan 28 2006, 02:05 PM
Post
#14
|
|
|
GMC Member Group: GMC Member Posts: 558 Joined: 15-February 05 From: Sri Lanka Member No.: 21990 |
QUOTE (petersvp @ Jan 27 2006, 02:30 AM) BUT i can also re-create the DLL to be ID based, not hwnd based, it will be pretty easy but...probably will have limit of components created, to 32767, cuz if more an "Array size too large" error occurs. Secret of the GM Core has been Found!!!! |
|
|
|
Jan 28 2006, 02:17 PM
Post
#15
|
|
|
Pwner of barcodes Group: GMC Member Posts: 2570 Joined: 20-June 05 From: Paris, France Member No.: 29869 |
i believe i am the first person to make a use for it...
check N-Pad in the creations forum =) i also figured out a way to resize the window... the same method u had... but with some extra stuff 10/10 =) |
|
|
|
Jan 28 2006, 02:46 PM
Post
#16
|
|
|
GMC Member Group: GMC Member Posts: 305 Joined: 23-May 04 From: UK Member No.: 9721 |
Damn! I was going to make a program called ePad! Hahhaha.
|
|
|
|
Jan 30 2006, 08:18 PM
Post
#17
|
|
|
GMC Member Group: GMC Member Posts: 1825 Joined: 1-March 05 From: Here in holland Member No.: 23016 |
Still nice, however I found 1 minor problem, when scrolling the game stops "running". This is a small "bug", which you see very often in even commercial programmes.
Also, maybe you should give the possibility to make "horizontal" scrolling possible. great job, great dll. |
|
|
|
Jan 31 2006, 10:01 AM
Post
#18
|
|
|
GMC Member Group: GMC Member Posts: 290 Joined: 29-June 05 Member No.: 30422 |
Nice . But you really have to think of setting the width and height of the edin in the game without that hard wat that gets the text , then destroys the edit , and the creates anotherone with the text . I'll ask a friend of mine that is a delphi programmer to tell you how
|
|
|
|
Feb 17 2006, 07:26 PM
Post
#19
|
|
|
GMC Member Group: GMC Member Posts: 64 Joined: 8-June 05 From: Round the net Member No.: 29183 |
I've discovored 2 bugs
1) When you switch fullscreen/window the boxes dissapear. I suppose you can't scale them, so the user will have to disable the switching. 2) When you press in a text box (to type etc...), you can't switch back to the game. I mean, after you've typed something, try to press <ESC>. The keys doesn't work for the game and you can't do anything about it. Suggestion: Can you make it when you press <TAB> to go to the "Next" text box. Use IDs. This post has been edited by DeadMeat: Feb 17 2006, 07:29 PM |
|
|
|
Feb 17 2006, 08:21 PM
Post
#20
|
|
|
GMC Member Group: GMC Member Posts: 785 Joined: 5-February 04 From: Look out the window. Member No.: 5588 |
Those 1st 2 issues can be taken care of...
1) Check for mode switch, get contents of box, delete box, redraw box, set contents. 2) Global mouse events or escape key event, etc... I'm wondering about the 3rd-- can you add a way to set which form has focus? That would rock... |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 8th February 2010 - 11:55 PM |