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: