flat assembler
Message board for the users of flat assembler.

Index > IDE Development > fasmw non-critical (bug?)

Author
Thread Post new topic Reply to topic
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 02 Dec 2004, 10:23
hi, i don't know if you all could accept this as bug or not.
it is not critical but since i am currently developing an editor too so i am kinda sensitive with such issue :p

here is the step to produce the error (i am testing against the latest version of fasmw editor)

1. open fasmw.exe
2. type something into it
3. click options > appearance
4. on the combo box, select FONT (which is default)
5. click on Change...
6. if ur font currently is regular, then select bold or if urs is bold, then select regular
7. click CANCEL instead of OK for the font common dialog
8. click OK for the FASMW.exe appearance dialog
9. and you could see the text on ur editor get change (although u select cancel for the font common dialog)

i guess the problem is the LOGFONT struct is being updated instantly when user change in font common dialog
so, maybe provide a backup LOGFONT struct and if choosefont = false then, backup struct is copied to updated struct to preserve default values Razz


u could try such approach on others editor too!

sincerely,
sulaiman chang
Post 02 Dec 2004, 10:23
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 12 Dec 2004, 10:21
OK, fixed it. But it's anyway strange that it had to be fixed at all, since Win32 API documentation states that the LOGFONT fields are updated only when user clicks OK. Confused
Post 12 Dec 2004, 10:21
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 12 Dec 2004, 14:40
from PSDK
Quote:

lpLogFont
Pointer to a LOGFONT structure. If you set the CF_INITTOLOGFONTSTRUCT flag in the Flags member and initialize the LOGFONT members, the ChooseFont function initializes the dialog box with a font that is the closest possible match. If the user clicks the OK button, ChooseFont sets the members of the LOGFONT structure based on the user's selections.


well, maybe that is microsoft :p style
Post 12 Dec 2004, 14:40
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


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