Jump to content


Photo

Form Controls Engine


  • Please log in to reply
14 replies to this topic

#1 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 09 January 2010 - 05:15 PM

Form Controls Engine Version 4.2

by Rafferty97

Support for SYNTAX HIGHLIGHTING in text editor!

This is a package I am currently working on designed to make it very easy to create controls in game maker. For now they are a bit slow and there are still many controls to be made, but that is because I want to do them right, completely bug-free. All the controls have been based on windows vista, and can be customised with a new "style" option that allows you to pick the styles you want. E.g. buttons can have selected styles for the normal, hovering and clicked states. Please post or PM me any suggestions/bugs you have. This package comes in the form of a gmk example, where you need to extract the scripts/sprites to use in GM7, it also comes as a GMRES for easy merging into GM8. I may make a gex form, but GMRES is just as simple to use.

Note: I'm making this in GM8. In theory it should work 100% compatible with GM7, but if you do have compatibility issues, please feel free to post or PM me.

Current controls:
Textbox
Button
Loading bar
Selection box

(Please post or PM if you have any suggestions!)

Main features:
Syntax highighting support in textbox
Word wrapping in textbox
Fully functioning
Vista style
Easy to use
Highly customisable

Coming in V5.0:
Checkbox / Radio controls (completed)
Table controls
Independant scroll bars
Dropdown box
Much faster graphics rendering
Vista ribbon menus

DOWNLOAD HERE:

GMK version (Version 4.2):
Download form_controls4.2.gmk

GMRES version (Version 4.2):
Download form_control_engine4.2.gmres

Screenshots:
Screen shot of V4.0
Screen shot of V4.1

Updates 4.0 -> 4.2
Added Loading bar
Added customizable style feature
Selection Box.

Please reply with comments/suggestions/bugs

- Alex

Edited by Rafferty97, 19 January 2010 - 06:29 AM.

  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#2 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 09 January 2010 - 05:27 PM

How would I get syntax highlighting working? A syntax file? never heard of that, is that your own filetype?

Edited by Sonica2, 09 January 2010 - 05:28 PM.

  • 0

#3 Symbols

Symbols

    GMC Member

  • New Member
  • 343 posts

Posted 09 January 2010 - 05:33 PM

Great bit of coding there Raf!

Its looking very promising.

:P :(

Edited by Symbols, 09 January 2010 - 05:39 PM.

  • 0

#4 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 09 January 2010 - 05:34 PM

yep, I got it to work. It's my own filetype aswell. I made a small one that simply made comments (//) green.
  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#5 callum

callum

    GMC Member

  • New Member
  • 176 posts

Posted 10 January 2010 - 09:08 AM

there is a bug when you highlight some text an press enter
  • 0
Extensions: EditBox

#6 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 10 January 2010 - 09:48 AM

there is a bug when you highlight some text an press enter


ok, i'll have to take a look at that. thanks for the feedback
  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#7 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 10 January 2010 - 10:09 AM

I had a look at the syntax file in notepad, and it looks nce and complicated to me, so I cant add any highlighting... xD
Rafferty97, you make some great engines! I love this, and I tried a textbox once, It was ok, but no multiline and it had many bugs...
  • 0

#8 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 10 January 2010 - 10:22 AM

Thanks, glad you like it. I've given up games and am trying to make things the community could use.

Soon I will be creating a final version with added stability, speed, scrolling bars, a nice 3D border(looks exactly like windows), and a better *.syntax file.

- Alex

Edited by Rafferty97, 10 January 2010 - 10:26 AM.

  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#9 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 12 January 2010 - 08:04 PM

Ver 3 has errors, haven't tried v2.
___________________________________________
ERROR in
action number 1
of Create Event
for object text_box:

Trying to execute non-existing file.

PM or not, thats bad...

Edited by Sonica2, 12 January 2010 - 08:04 PM.

  • 0

#10 callum

callum

    GMC Member

  • New Member
  • 176 posts

Posted 12 January 2010 - 10:55 PM

the link for version 3 goes straight to version 2
and
when ever i press a key in version 3 it just goes in to a loop
like if i push enter it just keeps entering until i press another key

Edited by callum, 12 January 2010 - 11:04 PM.

  • 0
Extensions: EditBox

#11 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 13 January 2010 - 12:11 AM

Hmmm... those are some big problems. I'll fix 'em right now.

EDIT: Both of those problems are now fixed and version 3 has been reuploaded.

Edited by Rafferty97, 13 January 2010 - 12:54 AM.

  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#12 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 13 January 2010 - 08:27 PM

Nice, starting your own Widgets engine! I sugest using seperate sprites for the button, or I have a very advanced GML drawing script for vista buttons... nah, you'd perfer doing it yourself. But the distortions dont look good.

Also, for authentic results, set the button font to MS Sans Serif sized 8, that is the global Vista font (or Segoe UI sized 8).

Edited by Sonica2, 13 January 2010 - 08:32 PM.

  • 0

#13 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 14 January 2010 - 03:14 AM

Thanks for the advice
My engine allows the user to select the font, and sans serif doesn't look good in gm because of the way GM grayscaled it.
And there aren't any distortions because don't actually stretch the sprites.

EDIT: Good idea, I'll make a script to create the vista look instead of sprites. Shouldn't be too hard. 1/2 way there :).

- Alex

Edited by Rafferty97, 14 January 2010 - 06:55 AM.

  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007

#14 PlasticineGuy

PlasticineGuy

    GMC Member

  • New Member
  • 2384 posts

Posted 14 January 2010 - 05:39 AM

Screenshots please.
  • 0

#15 Rafferty97

Rafferty97

    GMC Member

  • New Member
  • 268 posts

Posted 07 April 2010 - 02:31 AM

I am making a new DLL which allows the user to use win32 controls in their gamemaker game. Since it is doing pretty much the same thing as this old engine, I'm going to use the same topic. The first version will be released this week.

- Alex
  • 0



Want a place on the internet to put your files? Get 40mb free at Host-a.net
Gm member since 2007