flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Fresh project: We need help. Goto page Previous 1, 2, 3 Next |
Author |
|
sina 29 Nov 2003, 00:34
static and edit ok! i will post asap
|
|||
29 Nov 2003, 00:34 |
|
decard 29 Nov 2003, 09:36
Listbox is done I also changed a bit groupbox.ico.
Something is wrong with ComboBox - in 1.0.15 after putting it on the form I was able to edit it's text, and in 1.0.16 when I try to move it, Fresh crashes. [edit]outdated attachment removed[/edit] Last edited by decard on 18 May 2004, 20:14; edited 1 time in total |
|||
29 Nov 2003, 09:36 |
|
JohnFound 29 Nov 2003, 10:40
decard wrote: Something is wrong with ComboBox - in 1.0.15 after putting it on the form I was able to edit it's text, and in 1.0.16 when I try to move it, Fresh crashes. Well, both are bugs. Combo box is very strange control, because it contains 2 controls as children. I will fix this today. Regards. |
|||
29 Nov 2003, 10:40 |
|
Tommy 29 Nov 2003, 13:34
The two bugs I mentioned do still exists... Anyhow, good work!
|
|||
29 Nov 2003, 13:34 |
|
decard 29 Nov 2003, 14:57
I described combobox, and removed some unnecesary stuff from winconst.inc. I put combo in listbox.asm file, to prevent from having too many files. Actually, I think that the whole standard palette could be kept in a single file.
[edit]outdated attachment removed[/edit] Last edited by decard on 18 May 2004, 20:17; edited 1 time in total |
|||
29 Nov 2003, 14:57 |
|
sina 02 Dec 2003, 22:42
i had some problems with the style max ex things actually i didnot understand them and could not write the end
i know that i should add the multiline version of the edit box but i could not manage i am sorry about that i think i need some help the edit .asm is include '..\..\..\source\designtime.inc' include 'winconst.inc' DesignTimeInfo \ \ ; 1. Edit control 'EDIT', \ 'Edit control', \ 'Standard', \ 'Edit', \ WS_VISIBLE or WS_CHILD or ES_LEFT or WS_BORDER, \ ; default style 0, \ ; default ex style 121, 21, \ < \ ; style names 'ES_LEFT' , ES_LEFT , "Align left", \ 'ES_CENTER' , ES_CENTER , "Align center", \ 'ES_RIGHT' , ES_RIGHT , "Align right", \ 'ES_UPPERCASE' , ES_UPPERCASE , "Converts the text into uppercase characters", \ 'ES_LOWERCASE' , ES_LOWERCASE , "Converts the text into lowercase characters", \ 'ES_PASSWORD' ,ES_PASSWORD , "Displays all characters in the edit control as asterisks", \ 'ES_NOHIDESEL' ,ES_NOHIDESEL , "Specifies that the selected text is not hidden when the edit control loses the keyboard focus", \ 'ES_AUTOHSCROLL',ES_AUTOHSCROLL , "Automatically scrolls text horizontally", \ 'ES_OEMCONVERT' ,ES_OEMCONVERT , "Ensures the proper conversion of characters", \ 'ES_READONLY' ,ES_READONLY , "Makes the edit control read-only", \ 'ES_WANTRETURN' ,ES_WANTRETURN , "Inserts a carriage return when the user presses the ENTER key", \ 'ES_NUMBER' ,ES_NUMBER , "Restricts input to the edit control to digits only" \ >, \ NONE, \ ; style Ex names \ $00000000, \ ; This is StyleMaskAnd WS_CHILD, \ ; This is StyleMaskOr $00000000, \ ; This is StyleExMaskAnd $00000000, \ ; This is StyleExMaskOr $00000000, \ ; This is SubtypeMask < \ '', 0, 'There''s only one sublclass in edit control'\ >, \ ; This is SubtipeRange NONE, \ ; Library file NULL, because it's standard component. 'Edit.ico' ; Image for icon |
|||
02 Dec 2003, 22:42 |
|
sina 03 Dec 2003, 00:15
*i think the edit.asm should be something like this ( as i have told before i am not as experienced in win32asm as you and that makes
me too slow! but also i am as excited about the fresh project as you and that makes me work harder! ) *the icons i have created are from delphi and i know they dont look similer to the other ones *i think there should be a folder to put all the image kind files like the icons or splash images and etc.. so the components directory will only contain the components ( but when developing it is easier to have them both in the same folder ) * please tell me the errors and the things i have missed in the edit.asm and i can learn and add/clear them *for example i think the textbox ( or memo ? i have used textbox maybe i should change it) should have autohscroll in the default style but i didnot add it *as i try to say in my last post i could not understand what these are NONE, \ ; style Ex names \ $00000000, \ ; This is StyleMaskAnd WS_CHILD, \ ; This is StyleMaskOr $00000000, \ ; This is StyleExMaskAnd $00000000, \ ; This is StyleExMaskOr $00000000, \ ; This is SubtypeMask < \ '', 0, 'There''s only one sublclass in Textbox control'\ >, \ ; This is SubtipeRange NONE, \ ; Library file NULL, because it's standard component. * i have downloaded freshlast 1_0_17 and took button.asm as an example *are there any other discussions that i should be aware of? cos generally i just come and look in this thread
|
|||||||||||
03 Dec 2003, 00:15 |
|
JohnFound 03 Dec 2003, 05:06
Hi, VeSCeRa.
Actually (regardless of what you think ) you make good work with edits. The icons are OK, only Edit control should be white inside. (Like real one) About, the name of multiline edit - what to say. I like "Memo", but it's because I am Delphi programmer. Actually it is not meaningful and I don't know how the most people want to call it... simply make your decision. I think that the Edit control have to be 19 pixels height, not 21. 21 pixels is the height if the control have WS_EX_CLIENTEDGE default style. VeSCeRa wrote:
IMHO, both edit and textbox should have ES_AUTOHSCROLL in the default style. Also, textbox should have ES_AUTOVSCROLL. Quote: but i didnot add it OK, I will try to explain more detailed: You know that the style and styleEx both are dword that contains some bits set and bits reset. Every bit is one "style". It is true with one exception. In Windows standard controls, some amount of the lower bits are allocated for "sub class" number. These bits have to be used as one number, not as separate bit fields. For example, lower 4 bits of BUTTON class are sub-class number. They contains number between 0 [BS_PUSHBUTTON] and $b [BS_OWNERDRAW] (look in .inc files for details.) In control description, SubtypeMask is a number that should be AND-ed with style to separate subtype number from other styles. For all BUTTONs it should be $000f or lower. About StyleMaskAnd StyleMaskOr (and Ex versions too). You know that not every bit can be set for every control. On other hand, there are some bits thet have to be 1 for given control. This is even more important in Fresh, because we separate different sub-classes as separate components. So, for example, you have not to set ES_MULTILINE style for Edit control, because it will turn it to Textbox control. On other hand, in Textbox this style have to be always set and the user have not to reset it, because it will turn Textbox to one-line edit. So, in the style editor, after the user edit control style, this style is ANDed with StyleMaskAnd - it contains 1 on all bits that may have 1 and 0 value in this control, and zeros on every bit that have to be 0 for this control. After that the result is OR-ed with StyleMaskOr. It contains 1 on all bits that have to be 1 for this control and it contains 0 for every bit that may be have both 1 and 0 value. This kind of processing restricts user to set or to reset some styles of the controls and prevents errors in design. I hope this will be useful for you, or for everyone that want to write components for Fresh. Regards. BTW: It is better to use |code| tags, when you post source code. |
|||
03 Dec 2003, 05:06 |
|
sina 03 Dec 2003, 23:10
ok i have corected the icons edit.ico and textbox.ico
and i have left the name textbox and i have added autohscroll for both edit and textbox and also added autovscroll for textbox for their default styles and these are the additions which i am not sure of : added es_multiline to the stylemaskand line for edit control to prevent the edit to be multiline like the textbox added es_multiline to the stylemaskor for the textbox control to prevent textbox to loose its multiline style and becouse these two controls dont have subclasses(?) i left the subtypemasks $00000000( i know i miss something here ) i think slowly i should create a file static.asm...
|
|||||||||||
03 Dec 2003, 23:10 |
|
JohnFound 04 Dec 2003, 04:46
Hi VeSCeRa.
Almost everything seems to be OK. I will include you files in the Fresh next release. BTW: Maybe you missed my post in the other thread. I included you in the team list in Fresh's about box as "VeSCeRa" if you prefer you real name to be used, please send it to me via PM or post it here. Regards. |
|||
04 Dec 2003, 04:46 |
|
sina 04 Dec 2003, 14:14
wow thats exciting!
so this is me Yunus Sina Gulsen aka VeSCeRa |
|||
04 Dec 2003, 14:14 |
|
sina 05 Dec 2003, 20:24
i have written the static.asm but i could not write if the controls have sub classes and i could not write the stylemask and / or and the subtype masks can u please give me some info about what to do with these controls...
i know that a control should not have both ss_icon and ss_bitmap for example so i made them subclasses but i am not sure of this and i could not manage to write the default styles for label image and shape i have used 24x24 256 color icons for image.ico and shape.ico but the background of these icons seem some different from the toolbar one my xp with default theme, should i make them 16 color? and there is another style called SS_OWNERDRAW that you did not write when giving information about the standard controls so i didnot write it too... 6. From "STATIC" 6.1. "Label" - SS_LEFT, SS_RIGHT or SS_CENTER 6.2. "Shape" - SS_BLACKRECT, SS_WHITERECT, SS_BLACKRECT, SS_BLACKFRAME, SS_GRAYFRAME or SS_WHITEFRAME - maybe I am not comprehensive here, please investigate this point. 6.3. "Image" - SS_BITMAP, SS_ICON and maybe SS_METAPICT and the SS_METAPICT you use is SS_ENHMETAFILE i think and whatabout these styles (where to use them) ss_notify ss_useritem ss_ownerdrawn ( is this another subclass of image) ss_typemask
|
|||||||||||
05 Dec 2003, 20:24 |
|
JohnFound 05 Dec 2003, 20:48
Hi, VeSCeRa.
All kinds of static controls are implemented as different subclasses of the base STATIC class. Subclass mask is $1f. You have to separate these subclasses that are (for example) for Shape control and describe them in the list with subclasses. The same for Image - it will contain SS_BITMAP, SS_ICON and SS_ENHMETAFILE (strange in my help files there is SS_METAPICT too maybe it is the same) not as bit styles but as subclasses. All other styles (bit styles) are accessible for every static control. They are: Code: SS_NOPREFIX = 0080h SS_NOTIFY = 0100h SS_CENTERIMAGE = 0200h SS_RIGHTJUST = 0400h SS_REALSIZEIMAGE = 0800h ; I don't know about this SS_SUNKEN = 1000h ; and for this. BTW: With Fresh 1.0.19 you can experiment with styles in property editor. Create the control and change it's style in property editor. Because there is no control for invalid values, maybe sometimes the control will disapear or will crash Fresh... Regards. |
|||
05 Dec 2003, 20:48 |
|
Tommy 05 Dec 2003, 21:05
Cool! I really like what I see! Especially the property editor! Keep up the good work mate!
Best regards, Tommy |
|||
05 Dec 2003, 21:05 |
|
Tommy 05 Dec 2003, 21:06
BTW: I've not found any new bugs... And in the new release, even the "Process form" routine work...
|
|||
05 Dec 2003, 21:06 |
|
JohnFound 05 Dec 2003, 21:08
Tommy wrote: BTW: I've not found any new bugs... And in the new release, even the "Process form" routine work... Really? I didn't change anything...even I didn't test it. |
|||
05 Dec 2003, 21:08 |
|
Tommy 05 Dec 2003, 21:28
Hehe...Well, it worked now... (BTW: posted these posts in wrong thread... upps... hmm, doesn't matter )
I go to sleep now... Good night! Regards, Tommy |
|||
05 Dec 2003, 21:28 |
|
sina 06 Dec 2003, 23:57
hi
i dont know what info to write for ss_typemask i have tried the style editor and it works perfect, never crashed and i could not manage to make the control disappear please check the code and list my misses and mistakes
|
|||||||||||
06 Dec 2003, 23:57 |
|
sina 08 Dec 2003, 12:49
hi John;
these are just the new icons i have corrected them
|
|||||||||||
08 Dec 2003, 12:49 |
|
Goto page Previous 1, 2, 3 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.