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
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 28 Nov 2003, 15:27
VeSCeRa,
I very sorry to hear that. Unfortunelly, almost everyday we hear about acts of violence in Turkey, which don't make me optimistic Sad Hope soon the situation there will be more stabilized.

Take care!
Post 28 Nov 2003, 15:27
View user's profile Send private message Visit poster's website Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 29 Nov 2003, 00:34
static and edit ok! i will post asap
Post 29 Nov 2003, 00:34
View user's profile Send private message ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 29 Nov 2003, 09:36
Listbox is done Smile 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
Post 29 Nov 2003, 09:36
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
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.
Post 29 Nov 2003, 10:40
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 29 Nov 2003, 13:34
The two bugs I mentioned do still exists... Anyhow, good work!
Post 29 Nov 2003, 13:34
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
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
Post 29 Nov 2003, 14:57
View user's profile Send private message Visit poster's website Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
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
Post 02 Dec 2003, 22:42
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
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! Smile )
*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 Smile )
* 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


Description:
Download
Filename: components.rar
Filesize: 12.62 KB
Downloaded: 603 Time(s)

Post 03 Dec 2003, 00:15
View user's profile Send private message ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 03 Dec 2003, 05:06
Hi, VeSCeRa.
Actually (regardless of what you think Wink ) 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:

*for example i think the textbox ( or memo ? i have used textbox maybe i should change it) should have autohscroll in the default style


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
*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.


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. Wink
Post 03 Dec 2003, 05:06
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 03 Dec 2003, 23:10
ok i have corected the icons edit.ico and textbox.ico
and i have left the name textbox Smile
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 Smile )
i think slowly i should create a file static.asm...


Description:
Download
Filename: components.rar
Filesize: 2.31 KB
Downloaded: 593 Time(s)

Post 03 Dec 2003, 23:10
View user's profile Send private message ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
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.
Post 04 Dec 2003, 04:46
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 04 Dec 2003, 14:14
wow thats exciting! Smile
so this is me
Yunus Sina Gulsen aka VeSCeRa
Post 04 Dec 2003, 14:14
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
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


Description:
Download
Filename: components.rar
Filesize: 3.86 KB
Downloaded: 602 Time(s)

Post 05 Dec 2003, 20:24
View user's profile Send private message ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
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.
Post 05 Dec 2003, 20:48
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 05 Dec 2003, 21:05
Cool! Cool I really like what I see! Wink Especially the property editor! Very Happy Keep up the good work mate!

Best regards,
Tommy
Post 05 Dec 2003, 21:05
View user's profile Send private message Visit poster's website Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
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... Wink
Post 05 Dec 2003, 21:06
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
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... Wink


Really? I didn't change anything...even I didn't test it. Confused Smile
Post 05 Dec 2003, 21:08
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 05 Dec 2003, 21:28
Hehe...Well, it worked now... Wink (BTW: posted these posts in wrong thread... upps... Rolling Eyes hmm, doesn't matter Very Happy)

I go to sleep now... Good night!

Regards,
Tommy
Post 05 Dec 2003, 21:28
View user's profile Send private message Visit poster's website Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
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


Description:
Download
Filename: components.rar
Filesize: 4.06 KB
Downloaded: 565 Time(s)

Post 06 Dec 2003, 23:57
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 08 Dec 2003, 12:49
hi John;
these are just the new icons
i have corrected them


Description:
Download
Filename: components.rar
Filesize: 777 Bytes
Downloaded: 530 Time(s)

Post 08 Dec 2003, 12:49
View user's profile Send private message ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.