Code: Select all
line 239 UpdateWindow_(hWnd)
Code: Select all
line 239 UpdateWindow_(hWnd)
line 239 UpdateWindow_(hWnd)
Code: Select all
; 3rd Step: Redraw Background only on invalid area (i.e. excluding the 'good' gadgets) and refresh Gadgets
BeginPaint_(hWnd, ps.PAINTSTRUCT)
EndPaint_(hWnd, ps.PAINTSTRUCT)
RedrawWindow_(hWnd,#Null,#Null,#RDW_INVALIDATE);
UpdateWindow_(hWnd)
EndIf;
EndIf ;
I think the Wrapper makes it really a lot easier to build error-free + well-formatted XML Dialog descriptions for your GUI declarations. As soon more people will find out the advantages, and maybe use your Wrapper (many thanks for this! ), the use of Dialogs will increase a lot.PureLust wrote: The big advantage of using XML-Dialogs is, that you don't have to care about the resizing.
I could imagine, how long it took you, to get the resize of your example right.
With XML-Dialogs you just have to set it up right, and anything else is magic.
....
As long as there is no good XML-Dialog Designer available (even mine is far away from being finished) I use a Wrapper to create the XML-Strings.
This makes it much easier to create a XML-Code with correct Syntax and the code looks much cleaner as well.
The Wrapper still doesn't wrap all Dialog-Elements, but it worked quite well while building a copy of your Example.
(The only Gadget which I had to create 'manually' was the ListIconGadget (see AddXML() in Line 148).)
[LINK] to download the wrapper.
...
Maybe XML-Dialogs will be of some interest for you in the future.
Hm, when adding this line, the background around the frame gadget text is drawn in a little bit lighter color than the standard background (Windows 8.1).mestnyi wrote:only helpsCode: Select all
line 239 UpdateWindow_(hWnd)
Little Update on that:srod wrote:@Purelust : that is a pretty nifty utility there for creating XML dialogs. Very nice.