Game Maker Community YoYo Games

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Closed TopicStart new topic
Dll For Textbox Support In Gm, TEdit and TMemo implemented
petersvp
post Jan 26 2006, 02:55 AM
Post #1


GMC Member
Group Icon

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
Go to the top of the page
 
+Quote Post
teej
post Jan 26 2006, 07:26 AM
Post #2


The PIXEL'er
Group Icon

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!
Go to the top of the page
 
+Quote Post
paul23
post Jan 26 2006, 04:11 PM
Post #3


GMC Member
Group Icon

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?
Go to the top of the page
 
+Quote Post
eagleclaw364
post Jan 26 2006, 04:22 PM
Post #4


GMC Member
Group Icon

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. biggrin.gif

Keep up the good work. ^.^

Cheers
Eagle
Go to the top of the page
 
+Quote Post
tsa05
post Jan 26 2006, 04:31 PM
Post #5


GMC Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
Chirantha
post Jan 26 2006, 04:53 PM
Post #6


GMC Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
tangibleLime
post Jan 26 2006, 07:33 PM
Post #7


Lunatic
Group Icon

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. wink1.gif

This post has been edited by roachofdeath: Jan 26 2006, 07:40 PM
Go to the top of the page
 
+Quote Post
petersvp
post Jan 26 2006, 08:30 PM
Post #8


GMC Member
Group Icon

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 sad.gif I will test it...

WELL, sorry for that long post smile.gif

This post has been edited by petersvp: Jan 26 2006, 09:06 PM
Go to the top of the page
 
+Quote Post
jaenster
post Jan 27 2006, 09:52 AM
Post #9


GMC Member
Group Icon

Group: GMC Member
Posts: 34
Joined: 22-October 05
Member No.: 37463



Hmm thanks this was exectlie what i need
Go to the top of the page
 
+Quote Post
ChIkEn AtE mY dO...
post Jan 27 2006, 11:50 PM
Post #10


Pwner of barcodes
Group Icon

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
Go to the top of the page
 
+Quote Post
petersvp
post Jan 28 2006, 01:27 AM
Post #11


GMC Member
Group Icon

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
Go to the top of the page
 
+Quote Post
grimdaze
post Jan 28 2006, 01:50 AM
Post #12


GMC Member
Group Icon

Group: GMC Member
Posts: 267
Joined: 6-August 05
From: Your Mind
Member No.: 32822



Very sweet dll.
Go to the top of the page
 
+Quote Post
DeadMeat
post Jan 28 2006, 02:02 PM
Post #13


GMC Member
Group Icon

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! smile.gif
Go to the top of the page
 
+Quote Post
Chirantha
post Jan 28 2006, 02:05 PM
Post #14


GMC Member
Group Icon

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!!!! biggrin.gif lmaosmiley.gif laugh.gif rambo.gif snitch.gif whistle.gif. So This is why Mark put a limit of 32000 on the GM array limit it self!! Because its a Delphi Limit!!!! lmaosmiley.gif
Go to the top of the page
 
+Quote Post
ChIkEn AtE mY dO...
post Jan 28 2006, 02:17 PM
Post #15


Pwner of barcodes
Group Icon

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 =)
Go to the top of the page
 
+Quote Post
eagleclaw364
post Jan 28 2006, 02:46 PM
Post #16


GMC Member
Group Icon

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. tongue.gif
Go to the top of the page
 
+Quote Post
paul23
post Jan 30 2006, 08:18 PM
Post #17


GMC Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
freaky_entertain...
post Jan 31 2006, 10:01 AM
Post #18


GMC Member
Group Icon

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 smile.gif
Go to the top of the page
 
+Quote Post
DeadMeat
post Feb 17 2006, 07:26 PM
Post #19


GMC Member
Group Icon

Group: GMC Member
Posts: 64
Joined: 8-June 05
From: Round the net
Member No.: 29183



I've discovored 2 bugs sad.gif

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. sad.gif
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. sad.gif

Suggestion: Can you make it when you press <TAB> to go to the "Next" text box. Use IDs. smile.gif

This post has been edited by DeadMeat: Feb 17 2006, 07:29 PM
Go to the top of the page
 
+Quote Post
tsa05
post Feb 17 2006, 08:21 PM
Post #20


GMC Member
Group Icon

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...
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 8th February 2010 - 11:55 PM