Jump to content


Photo

Dialoggm


  • Please log in to reply
25 replies to this topic

#1 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 28 June 2006 - 10:01 AM

Hi all !

My buddy's like Steve and other, have already seen this dll.

Its a dll i made in my free time, but lately i haven't worked on it, so i decided to put it here as OpenSource so maybe some of you can continue this!

Its Source Code is in FreeBasic and it includes a project using RadFB

This is the functions it have for handle the dialogs

* ShowDialog("resource.dll",1000) - where argument1 is the dll or exe that contain the dialog resource , 1000 is the Dialog ID - return: HWND handle of the window created

* SetWindowText(HWND,"text") - Set the caption of the HWND

* GetWindowText(HWND) - Return the text of HWND

#Note - this 2 functions work on any HWND window

* GetItem(HWND,ID) - This Returns a HWND handle of the ID on the HWND dialog

#For this functions above the ID is the ID given when designing the Dialog

* SetItemText(ID,"text") - Set the text of the item that have the given ID

* GetItemText(ID) - Return the text of the item that have the given ID

* IsItemChecked(ID) - Return true or false if the item that have the given ID is checked or not ( Checkbox RadioBox )

* SetItemChecked(ID,true or false) - Set the item that have the given ID checked or not ( Checkbox RadioBox )

* GetEvent() - Return WM_COMMAND wen some item is pressed or checked on the HWND

* GetItemId() - Return ID of the item that have been clicked or checked...

* EnableItem(ID,true or false) - Set the item of the given ID enabled\disabled

* IsItemEnabled(ID) - Returns if the item of the Given ID is enabled or disabled

* EndDialog(HWND) - Close the Dialog that have that ID


Go to my box and Download DialogGM.zip

The package includes:
* Dll + source
* XN Resource Editor
* A empty Dll for have the dialogs
* A Sample

So If you want to Change\Add dialogs just open XN Resource Editor and open res.dll in it, do the changes and save!

I think the source code is easy to understand, if don't want to use FreeBasic you can easy Translate it to C++

If someone continue this work i would like to see just a little line like
"Original idea : Porfirio"

I am not working more with GM, i have allot of other projects.

I hope someone like this and continue :wacko: oh and if you do please keep function names readable i ate what most people do dialoggm_window_get_text(). better use GetWindowText ::lmao::

Edit:
Fixed the link

Edited by Porfirio, 30 March 2007 - 11:52 AM.

  • 0

#2 Eyas

Eyas

    GMC Member

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

Posted 28 June 2006 - 10:12 AM

That's great, it is really useful as is, but would be even better if someone continues working on it as porfirio said.. I can't wait to see how this will evolve :wacko:
  • 0

Eyas Sharaiha (eyas-sharaiha.com);
previous projects include: GMking.org, MarkUp Magazine.


#3 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 28 June 2006 - 10:17 AM

very cool!
  • 0

#4 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 28 June 2006 - 10:29 AM

That's great, it is really useful as is, but would be even better if someone continues working on it as porfirio said.. I can't wait to see how this will evolve :wacko:

<{POST_SNAPBACK}>


Well as i said for now i have no plans for continue it, i am hoping that someone can please do it, i don't work with GM anymore

very cool!


Thank's

Edited by PORFIRIO, 28 June 2006 - 10:29 AM.

  • 0

#5 wormhole

wormhole

    GFX Redefined

  • New Member
  • 311 posts

Posted 28 June 2006 - 10:52 AM

Looks good, haven't tried it yet though, but just one question...

Wouldn't "EndDialog(HWND)" be able to close any window if you have it's hwnd? :wacko:
  • 0

#6 SleeK GeeK

SleeK GeeK

    The Biggest And The Best

  • New Member
  • 769 posts

Posted 28 June 2006 - 11:33 AM

Hey great DLL Porfirio! Atlast you released it! Very nice.

Regards,
SleeK GeeK.
  • 0

#7 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 28 June 2006 - 11:53 AM

Looks good, haven't tried it yet though, but just one question...

Wouldn't "EndDialog(HWND)" be able to close any window if you have it's hwnd? :wacko:

<{POST_SNAPBACK}>


No! it uses a function for end a Dialog, you cant close other windows

Hey great DLL Porfirio! Atlast you released it! Very nice.

Regards,
SleeK GeeK.

<{POST_SNAPBACK}>


Thanks buddy

Edited by PORFIRIO, 28 June 2006 - 12:15 PM.

  • 0

#8 coolsmile

coolsmile

    Programmer

  • New Member
  • 1346 posts

Posted 28 June 2006 - 01:40 PM

This is an extremely useful tool, awesome job :wacko:
  • 0

#9 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 28 June 2006 - 05:28 PM

This is an extremely useful tool, awesome job :wacko:

<{POST_SNAPBACK}>


Thank you, and i was thinking that no one would like this thing ::lmao::
  • 0

#10 Newly Discovered

Newly Discovered

    Harmonious Genius

  • GMC Member
  • 2475 posts
  • Version:GM8

Posted 28 June 2006 - 06:02 PM

wow...very impressive, I never would have thought something this in depth would exist on gmc. great job.
  • 0

poof_sig.png


#11 Smarttart62

Smarttart62

    designFUSION™

  • New Member
  • 2619 posts

Posted 28 June 2006 - 08:24 PM

Im glad you finally released it buddy.
Great job!
-Steve
  • 0

#12 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 29 June 2006 - 10:04 AM

wow...very impressive, I never would have thought something this in depth would exist on gmc.  great job.

<{POST_SNAPBACK}>


Thanks

I'm glad you finally released it buddy.
Great job!
-Steve

<{POST_SNAPBACK}>


You have tested it long time ago :skull:

I just thought that should be better to release it than in some day loose it on format c: or something :P
  • 0

#13 NiCkā„¢

NiCkā„¢

    registered GM6 user

  • New Member
  • 141 posts

Posted 02 July 2006 - 10:10 AM

wow absolutley fantastic, it's so simple to use and effective, please, someone, keep working on this. I would but i don't know freebasic

Edited by NiCkā„¢, 02 July 2006 - 10:11 AM.

  • 0


#14 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 02 July 2006 - 05:39 PM

wow absolutely fantastic, it's so simple to use and effective, please, someone, keep working on this. I would but i don't know freebasic

<{POST_SNAPBACK}>


Oh glad you like.

Well maybe later i'll continue but, dont believe that!
  • 0

#15 the bull

the bull

    GMC Member

  • New Member
  • 176 posts

Posted 06 July 2006 - 04:50 PM

In XN resource editor,how can I disable the close button.I need to do that to prevent the dialog from being closed.Thanks in advance.
  • 0

#16 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 07 July 2006 - 08:03 PM

In XN resource editor,how can I disable the close button.I need to do that to prevent the dialog from being closed.Thanks in advance.

<{POST_SNAPBACK}>



You cant ;)

You can make it a tool window but it still will have the close button ^_^
  • 0

#17 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 08 July 2006 - 01:30 AM

You can use roach's Close Button DLL
http://forums.gamema...howtopic=205744
  • 0

#18 the bull

the bull

    GMC Member

  • New Member
  • 176 posts

Posted 08 July 2006 - 09:17 AM

@Pofirio+celebraces:Thanks
I've already known that dll,but I just want to look for an alternative solution 'cause I think I can edit anything in Resource Editor.
  • 0

#19 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 08 July 2006 - 11:00 AM

You can use roach's Close Button DLL
http://forums.gamema...howtopic=205744

<{POST_SNAPBACK}>


Yes that could be one in the dll API, but as you know i am not working on it

@Pofirio+celebraces:Thanks
I've already known that dll,but I just want to look for an alternative solution 'cause I think I can edit anything in Resource Editor.

<{POST_SNAPBACK}>


Yeah, no problem,XN resource alow you to set moximize and minimize button, but not the close one :)
  • 0

#20 Tag

Tag

    GMC Member

  • New Member
  • 61 posts

Posted 29 March 2007 - 08:27 PM

Porfirio, you are a hero! jk* Im using this on Audio Express 2.x. Makes it so much easier for the preferences window... even regarding the fact that the transparent texts doesn't work on XN Resource Editor =(

PLEASE continue this dll because its truly great!
  • 0

#21 BZGaming

BZGaming

    GMC Member

  • New Member
  • 514 posts

Posted 30 March 2007 - 12:57 AM

Shouldn't this now be moved to the dll subforum?

BZ
  • 0

#22 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 30 March 2007 - 11:54 AM

Fixed the link

Porfirio, you are a hero! jk* Im using this on Audio Express 2.x. Makes it so much easier for the preferences window... even regarding the fact that the transparent texts doesn't work on XN Resource Editor =(

PLEASE continue this dll because its truly great!

<{POST_SNAPBACK}>


Glad you like it.
About transparent controls, thats a windows issue, still i'll try to find a workaround

Shouldn't this now be moved to the dll subforum?

BZ

<{POST_SNAPBACK}>


Yeah, it should
  • 0

#23 Invero

Invero

    GMC Member

  • GMC Member
  • 212 posts

Posted 16 January 2012 - 02:44 PM

Is there anyway how to make this work for Gm8 Reg? I've tried maybe I'm tired but I can't seem to figure out as to why it is not working on the newer version. :( Help would be amazing if anyone knows the reason. ~ Thank you in advance!
  • 0

#24 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 17 January 2012 - 08:07 PM

Is there anyway how to make this work for Gm8 Reg? I've tried maybe I'm tired but I can't seem to figure out as to why it is not working on the newer version. :( Help would be amazing if anyone knows the reason. ~ Thank you in advance!


I dont really know :(

I'll have a look!!
  • 0

#25 Invero

Invero

    GMC Member

  • GMC Member
  • 212 posts

Posted 04 June 2012 - 02:23 AM

Is there anyway how to make this work for Gm8 Reg? I've tried maybe I'm tired but I can't seem to figure out as to why it is not working on the newer version. :( Help would be amazing if anyone knows the reason. ~ Thank you in advance!


I dont really know :(

I'll have a look!!


Thank you do post if you have figured it out. I have been trying still and can't figure it out but then again my level in Gml isn't the best lol. Anyone else with the answer to this question I would love it if you could share it with us :). ~ Thank you in advance!
  • 0

#26 Invero

Invero

    GMC Member

  • GMC Member
  • 212 posts

Posted 22 February 2013 - 06:31 AM

*Bump* I guess no one has an idea as to why this isn't working? If so can you please update all of us :)? Is there anything better then this at the being for Gm8.1 Pro?
  • 0