flat assembler
Message board for the users of flat assembler.
Index
> Windows > Edit windows |
Author |
|
edemko 17 May 2010, 03:19
invoke SendDlgItemMessage,[hwnd],ID_CONTROL,WM_SETTEXT,0,'this is a text'
|
|||
17 May 2010, 03:19 |
|
Jmac 17 May 2010, 03:30
HI..
Thanks for that.......so I can used that function with changing text or numbers...from within the program... |
|||
17 May 2010, 03:30 |
|
edemko 17 May 2010, 03:41
There is a way to allow numbers in an edit control only:
Code: ;; hlt ; use it to run a debugger invoke GetWindowLong,[idc_txty],GWL_STYLE ; get window style or eax,ES_NUMBER ; prove bit magic you need invoke SetWindowLong,[idc_txty],GWL_STYLE,eax ; set window style ;; edit #2 download api help file http://cracklab.ru/download.php?action=get&n=NjA1 edit #3 create win-concerned posts at this section http://board.flatassembler.net/forum.php?f=3 |
|||
17 May 2010, 03:41 |
|
Jmac 17 May 2010, 13:42
hi
Thanks for the info edemko.. I wonder are there any examples or tut's explaining what I need...... ie the result of a calculation being displayed in a edit style window on a main window. I have yet to find an example of such... |
|||
17 May 2010, 13:42 |
|
shoorick 17 May 2010, 13:58
you can set ES_NUMBER style for edit window while its creation, if it is dialog control - directly in rc editor or in resources where this control declared. use SetDlgItemInt api function then.
|
|||
17 May 2010, 13:58 |
|
Jmac 20 May 2010, 03:42
HI....
thanks for the replies... now placing a number in the window....is there a function I should look at for positioning the digits as they go into the window....ie Right to left x-y positioning or similar I guess.. John |
|||
20 May 2010, 03:42 |
|
r22 20 May 2010, 17:11
Create a control inside the window (you can position the control when creating it), then set your text in that control instead of the the window itself.
|
|||
20 May 2010, 17:11 |
|
shoorick 21 May 2010, 05:05
Jmac
read msdn or win32.hlp about edit controls - a lot of things will become more clear to you. there are styles which let you align text right (ES_RIGHT) and other. it is better to set styles when control is created, changing some styles after edit control is already created may take no effect. |
|||
21 May 2010, 05:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.