News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Sources

Started by Villuy, October 15, 2024, 11:33:18 PM

Previous topic - Next topic

Villuy


Villuy

Quote from: KetilO on October 26, 2024, 06:26:28 AMHi

Disable close on double click:

In the RadASM sources file: TabTool.asm comment following code.


I can't compile it so that everything is authentic. And what about clipboard bug?

KetilO

Hi

I dont think this is a bug.
RasASM does not support unicode or UTF-8, only windows ansi character set. The ???? will be the result if you paste UTF-8
characters not found in the ascii character set.

What is your computers language setting?
Does it match the language you are pasting?

KetilO

Villuy

Quote from: KetilO on October 27, 2024, 04:16:35 AMHi

I dont think this is a bug.
RasASM does not support unicode or UTF-8, only windows ansi character set. The ???? will be the result if you paste UTF-8
characters not found in the ascii character set.

What is your computers language setting?
Does it match the language you are pasting?

KetilO

It has nothing to do with Unicode or UTF-8. RadASM incorrectly works with 8-bit encodings, in particular Windows-1251. I mean exactly clipboard.

KetilO

Hi

I have no idea why. The paste function in RAEdit is simple and uses windows api's to get the clipboard data.

invoke OpenClipboard,[ebx].EDIT.hwnd
.if eax
invoke GetClipboardData,CF_TEXT
.if eax
call InsertMem
.endif
invoke CloseClipboard
.endif

If you were able to build RadASN i would suggest trying CF_OEMTEXT instead of CF_TEXT

KetilO

Villuy

I'm sure you would have found cause of problem if it annoyed you as me. Well, it is what it is.

KetilO

Hi

Not true.
It works as it should with CP-1252 wich is the windows default.
Why it does not work with CP-1251 I dont know.
Probably some windows configuration problem.

"It does not work" is not very helpful identifying the problem.

https://en.wikipedia.org/wiki/Windows-1252
https://en.wikipedia.org/wiki/Windows-1251

KetilO

Villuy

Hi

I open RadASM and copy string:

Привет, как дела?

I paste it here, and what I have:

Ïðèâåò, êàê äåëà?

But if now I write same string and copypaste, then everything is fine. That means problem arises with file that has just been opened and not yet edited. In the first approximation it looks like this.

KetilO

Hi

The clipboard is confused on what codepage to use.

This is 1251: Привет, как дела?
and this is 1252: Ïðèâåò, êàê äåëà?

I will try this winapi and see if it helps:
https://learn.microsoft.com/en-us/windows/win32/api/shobjidl/nf-shobjidl-iquerycodepage-setcodepage

KetilO

Villuy

Hi

Yeah, good luck. And not to get up twice, remove double click on tabs. We have tab context menu and we have F4. That's quite enough.

KetilO

Hi

It has been a long time since i worked with interfaces so SetCodePage will take a while.

To disable close tab on double click download the zip and replace RadASM.exe

Then edit RadASM.ini and add this at the end.

[Close]
DblClk=0

KetilO

Villuy

#26
Yeah, it works. )

Had to transfer from 3.0.0.9 version files Masm.ini and RadASM.ini in order to save my settings and session. But it is not at all fact that it is allowed to do so. Personal settings should be ported from version to version in prescribed order, not by intuition.

Upd: And indeed, [Addins] is different. Yes, I had to check it line by line.

Villuy

Hi

When I switch between tabs, I can see for moment that tab first turns into window, and then turns back into tab. This bug also needs to be fixed.

KetilO

Hi,

This is only visible when a mdi child is maximized on a slow computer.
It is not a bug.

KetilO