-
2 Attachment(s)
Powerful Dialogs Object (Beta)
Hi everybody,
Tonight I will release the Powerful Dialogs Object for you all to test. This object can create many varieties of dialogs with many powerful features. This beta version includes the ability to create five types of dialog boxes: MessageBoxes, Color Choosers, Font Dialogs, Icon Pickers, and AboutBoxes. Dialogs this object includes that are already available in MMF have been expanded on. This object also adds some new types of dialogs to MMF.
I strongly suggest you take a took at the included help file and examples before using this object. This will help you get a basic understanding of how to use the object.
The font size options of the Font Dialog seem to be uncontrollable (this is a bug). I plan to fix this in the release version of the object. If you catch any other bugs or have any requests, please post here. Enjoy!
-
Re: Powerful Dialogs Object (Beta)
Hey, nice object. :)
I think it's good to summarize all dialogs in one extensions... it sucks to have several objects to show some boxes.
For the sizing thing...
PHP Code:
HDC hDC=GetDC(NULL);
int fsize = abs(height*GetDeviceCaps(hDC,LOGPIXELSY)/136);
ReleaseDC(NULL,hDC);
I have used this in Scintilla. Source = Google. No clue why, but it works perfectly... never encountered any problems. :)
-
Re: Powerful Dialogs Object (Beta)
Shouldn't this go under Extension Development?
-
Re: Powerful Dialogs Object (Beta)
I tried it, seems like another very nice extension Jaffob :D
-
Re: Powerful Dialogs Object (Beta)
Looki: How should I implement the code? I assume fsize is the initial font size? And what is height?
-
Re: Powerful Dialogs Object (Beta)
...!? height is the input. fsize is the output (of course, I declared it in my code!)
-
Re: Powerful Dialogs Object (Beta)
I'm sorry, I don't understand. I don't see how that could help me. I think I need to convert a font size to a width and height for a specified font in a LOGFONT structure.
-
Re: Powerful Dialogs Object (Beta)
Don't you mean LOGFONT to font size? That would make much more sense, since the dialogue gives you a LOGFONT and you want the font size.
Take the height field of the LOGFONT.
-
Re: Powerful Dialogs Object (Beta)
You might not understand. The problem isn't getting the font, it's setting it. Since I am initializing the dialog with the LOGFONT structure, I have to somehow set the size of the font using that structure.
-
Re: Powerful Dialogs Object (Beta)
Oh, sorry! Never mind then...:blush:
-
Re: Powerful Dialogs Object (Beta)
Hey this is awesome! Really good job. The font size thing worked for me just fine, I was able to set the font size properly however when I pressed "X" it didn't reset the dialogue. I am using Vista on a fairly new computer (1 year old).
-
Re: Powerful Dialogs Object (Beta)
I finally got around to working on this a bit more, and just finished it. New features:
-Open and Save File Dialogs are now available.
-An ID system for keeping track of dialogs.
-A new parameter for MessageBoxes allowing you to change their modality.
-Bug fix: The developer can no longer choose an initial font size; size 10 is initially selected.
All that's left for me to do is make the help file.
-
Re: Powerful Dialogs Object (Beta)
-
Re: Powerful Dialogs Object (Beta)
This is good!
You are really tooling along on good extensions!
Thank you!
-
Re: Powerful Dialogs Object (Beta)
Quote:
Originally Posted by Jaffob
I finally got around to working on this a bit more, and just finished it. New features:
-Open and Save File Dialogs are now available.
-An ID system for keeping track of dialogs.
-A new parameter for MessageBoxes allowing you to change their modality.
-Bug fix: The developer can no longer choose an initial font size; size 10 is initially selected.
All that's left for me to do is make the help file.
Where is this version? is it on another website?
-
Re: Powerful Dialogs Object (Beta)
I haven't released it yet.
-
Re: Powerful Dialogs Object (Beta)
-
Re: Powerful Dialogs Object (Beta)
I can't wait until this extension released :D
-
Re: Powerful Dialogs Object (Beta)
Quote:
Originally Posted by Ran_TH
I can't wait until this extension released :D
I second that! :D :grin:
stephen1980
-
Re: Powerful Dialogs Object (Beta)
That is a pretty neat object. I like it.
-
Re: Powerful Dialogs Object (Beta)
What do people think of the final release? Any bugs?
-
Re: Powerful Dialogs Object (Beta)
I will test it, it looks very useful!
Thanks for it!
-
Re: Powerful Dialogs Object (Beta)
If you could add the possibility to put the content of the save/load dialog in a frame to let the user customize this kind of dialog, that could be great (that was in my projects but well, that could be better in this extension). ;)
-
Re: Powerful Dialogs Object (Beta)
I don't think that's possible, but did you mean you've done it?
-
Re: Powerful Dialogs Object (Beta)
No, I've only discussed with Yves to help me create this feature but I never had the time to develop it. Yves told me that's possible and gave me some tips to do that... I'll try to find those tips for you if you want.