The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: six_L on January 12, 2018, 02:49:28 PM

Title: UASM64 gdi example for Circular Progress Bar
Post by: six_L on January 12, 2018, 02:49:28 PM
the masm32 codes wrote by KSR aka fearless,i translated into WIN64 UASM.
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: fearless on January 12, 2018, 03:20:17 PM
nice
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: Biterider on January 12, 2018, 05:56:07 PM
Good work. Thank you!  :t
Biterider
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: johnsa on January 12, 2018, 08:24:24 PM
Nice job!  :t
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: jj2007 on January 12, 2018, 09:00:46 PM
Compliments to six_L and fearless :t
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: fearless on January 13, 2018, 12:56:13 AM
Heres the link to the original post about it: http://masm32.com/board/index.php?topic=3059.msg31743#msg31743

I knew it was a wee bit of time ago, but didnt realise it was 2014. lol.

Anyhow, the original one probably needed extra optimization to reduce cpu usage, plus math logic and code to calc all that math stuff for tick positioning etc probably could also do with someone better able to probably implement and optimize. And the preservation of EBX (RBX for 64bit) would also be needed, as at that time i wasnt doing anything like that, so a quick scan of procs to add USES EBX clause should help fix that.
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: LiaoMi on January 14, 2018, 10:20:33 PM
Hi fearless,

the use of Edittext controls in the Modern UI will be the same as in the regular program? Or its required to write own functions?

Thanks!
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: fearless on January 15, 2018, 12:45:35 AM
I havent managed to create a working ModernUI edit control as yet - lots of playing around trying to force the standard edit control to do certain things and override it with painting based on mouse over etc, but no success as yet, so just a standard plain old vanilla edit control or any other win32 standard control can be used as normal. Only it will look slightly out of place against the modern ui stuff i guess.

Ive been working on doing a ModernUI_Text control (similar to static label) and adding a RadASM custom control for that and the others as well, but ran into an issue with RadASM that has an internal limit of 127 custom properties. 69 are allready defined and in use by RadASM. It uses a bitmask to determine and add additional properties up to the 127 limit as found by custom controls using the CCDEFEX structure.

I managed to code an alternative path for custom controls (ids > 65535) to handle it differently now and update the property list accordingly. Also added property descriptions and allow for custom controls properties to have a description as well.

Ill probably update the github repo with the new radasm version soon, v2.2.2.3, and at some point update and push release for the radasm ModernUI controls (dlls) as well.

Still its all work in progress at the moment, but heres some images to show you what i mean:

(https://s20.postimg.org/m1n8rv2al/dialog_property_desc.png)


(https://s20.postimg.org/vyy9kych9/Modern_UI_Text.png)

The custom controls i created, are dummy .dll controls, that is, they are used for the dialog editor in RadASM. The custom ModernUI RadASM control .dll files arent shipped to users, the controls are all in their own seperate static library. So they can be created directly in code, or they can be created by the dialog resource IF the ModernUI control is registered before the dialog is loaded - typically you could place the MUIxxxxxxRegister function at start / main before WndProc is called, then its all handled automagically.

Anyhow i might add the circlebar control at some point - might require reworking / recoding it for inclusion as part of the ModernUI framework thingy.
Title: Re: UASM64 gdi example for Circular Progress Bar
Post by: six_L on January 15, 2018, 01:08:15 PM
hi,fearless,Biterider,johnsa,jj2007
thanks for your encouragements.