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

Hello, Ketil!

Thank you for posting the editor's source code. But it is hard to understand these source codes. Here is a package:

https://sourceforge.net/projects/radasm30/files/Release/

But as I can understand, this is very far from everything. You wrote RadASM based on FbEdit FreeBASIC and all the deep modules are located here, as I understand:

https://sourceforge.net/p/fbedit/code/HEAD/tree/RadASM30/

Where is the beginning, where is the end, what grows from where — it is not clear. Could you post in one place a complete and up-to-date package of sources with all the nested modules and the program itself of the corresponding version?

Thanks a lot!

KetilO

#1
Hi Villuy,

The most recent souurces for RadASM30 is at:

https://sourceforge.net/projects/radasm30/files/Release/

It contains sources for RadASM30 and the library files for the custom controls.
Unfortunatly some custom controls are written in RadASM20, so the sources for these are not included.

Give me some time and i will convert them to RadASM30

KetilO

Villuy

Aha! There is version 3.0.0.9, there is version 3.0.1.0. They are indistinguishable externally, but code is different. Many modules are not in package at all. In general, I will wait for full authentic package 3.0.1.0. And if you leave text file there with description of what is what and for what — that will be cherry on top! )

NoCforMe

KetilO strikes me as a great programmer.
They also seem to me to be what I call a "write-only" one, where their code is almost indecipherable to anyone else looking at it. No comments. None. And cryptic variable names. (I know: some years ago I stole some stuff from your resource editor for one of my own, a totally private project. It took me a very long time to figure out what your code was actually doing.)
Assembly language programming should be fun. That's why I do it.

Villuy

Quote from: NoCforMe on October 18, 2024, 08:21:42 AMKetilO strikes me as a great programmer.
They also seem to me to be what I call a "write-only" one, where their code is almost indecipherable to anyone else looking at it. No comments. None. And cryptic variable names. (I know: some years ago I stole some stuff from your resource editor for one of my own, a totally private project. It took me a very long time to figure out what your code was actually doing.)

I think Ketil simply didn't set goal to himself that his code would be understandable to anyone else.

NoCforMe

Assembly language programming should be fun. That's why I do it.

Villuy

Hi, Ketil!

My old faithful mouse has double click error. Because of this tabs in program close when I not want. And even program "Mouse Fix" not rescues. How to shut off closing tabs on double click?

zedd151

Quote from: Villuy on October 19, 2024, 03:39:20 PMHi, Ketil!

My old faithful mouse has double click error. Because of this tabs in program close when I not want. And even program "Mouse Fix" not rescues. How to shut off closing tabs on double click?
It sounds like you need a new mouse. Eventually the left button will cease to work at all. Right now it appears the contacts inside the switch (internally in the mouse) are dirty, causing multiple 'clicks', even though you only clicked once.
While the "work around" you suggest might work, it is better to get a new mouse. Even if you have to buy a cheap mouse, it is better to have a mouse that works reliably than a mouse that works erratically.

Villuy

Quote from: zedd151 on October 19, 2024, 04:36:36 PMIt sounds like you need a new mouse. Eventually the left button will cease to work at all. Right now it appears the contacts inside the switch (internally in the mouse) are dirty, causing multiple 'clicks', even though you only clicked once.
While the "work around" you suggest might work, it is better to get a new mouse. Even if you have to buy a cheap mouse, it is better to have a mouse that works reliably than a mouse that works erratically.

FixMouseLMB mostly solves problem, except RadASM. I need lots of new things but world is what it is.

zedd151

Quote from: Villuy on October 19, 2024, 05:01:33 PMFixMouseLMB mostly solves problem, except RadASM.
Okay, otherwise the mouse works okay, beside RadAsm. I think I understand.

QuoteI need lots of new things but world is what it is.
Yes, unfortunately. If I could, I would send you one of my spare mouse.

zedd151

Whoops... quoted my post above, had meant to edit it.   :toothy:

Villuy

Quote from: zedd151 on October 20, 2024, 12:47:09 AMYes, unfortunately. If I could, I would send you one of my spare mouse.

For what? It's like that joke:
Son asks his father programmer:
— Dad, why sun rise in east and set in west every day?
— Really every day? Have you checked? If everything works, don't touch anything, don't change anything.  :azn:

Villuy

#12
Yet another problem.

When pasting symbols from clipboard with codes outside of ASCII, question marks are shown instead of symbols — ?????. Yes, and they are saved in file as question marks — 3F 3F 3F 3F 3F. When copypasting backward there are no errors.

UPD: Error appears and disappears in both directions. I can't figure out pattern yet in order to consistently reproduce error.

KetilO

#13

KetilO

Hi

Disable close on double click:

In the RadASM sources file: TabTool.asm comment following code.
.elseif eax==WM_LBUTTONDBLCLK
mov eax,lParam
movzx edx,ax
shr eax,16
mov ht.pt.x,edx
mov ht.pt.y,eax
invoke SendMessage,hWin,TCM_HITTEST,0,addr ht
.if eax==da.tabinx
invoke SendMessage,ha.hWnd,WM_COMMAND,IDM_FILE_CLOSE,0
.endif
mov da.tabinx,-2
xor eax,eax
jmp Ex

KetilO