News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#91
General discussions / Re: New Resource tool palette ...
Last post by John Z - May 12, 2025, 03:45:59 PM
Hi Mr Bcx,

It does look bigger, but mine does not show the 1,4,8,16x just a blank box...
Strange.

John Z
#92
Assembly discussions / Re: Functions to handle the re...
Last post by Quin - May 11, 2025, 03:56:47 PM
Cool stuff, thanks Vortex!
#93
Assembly discussions / Functions to handle the regist...
Last post by Vortex - May 11, 2025, 12:34:53 PM
Here is function to read the value in a specific registry subkey :

include     ReadRegistryString.inc

.data

subkey      db 'SOFTWARE\Microsoft\Windows NT\CurrentVersion',0
ValName     db 'ProductName',0

.data?

buffer      db 128 dup(?)

.code

ReadRegString PROC hKey:DWORD,pSubkey:DWORD,val:DWORD,buff:DWORD

LOCAL Handle:DWORD
LOCAL buffSize:DWORD

    mov     buffSize,128
    invoke  RegOpenKeyEx,hKey,pSubkey,0,\
            KEY_QUERY_VALUE,ADDR Handle
    test    eax,eax
    jnz     _exit
   
    xor     ecx,ecx
    invoke  RegQueryValueEx,Handle,val,ecx,\
            ecx,buff,ADDR buffSize
           
    invoke  RegCloseKey,Handle
    test    eax,eax
    setz    al

_exit:

    ret

ReadRegString ENDP

start:

    invoke  ReadRegString,HKEY_LOCAL_MACHINE,\
            ADDR subkey,ADDR ValName,ADDR buffer

    invoke  StdOut,ADDR buffer

    invoke  ExitProcess,0

END start

The code above retrieves the operating system from the registry.
#94
General discussions / New Resource tool palette size
Last post by MrBcx - May 10, 2025, 09:49:09 PM
Maybe it's just me but it sure seems like the new Resource Editor tool palette is a bit oversized.

See attached screen shot.
#95
Feature requests / Re: Help file suggestion
Last post by Robert - May 09, 2025, 11:00:33 PM
Hi Quin:

The Pelles Help file already uses CSS to style the tables, including the headers.

Missing components, regarding navigation with a screen reader, are the
<thead> ... </thead>demarcation tags enclosing the headers and the
<tbody> ... </tbody>demarcation tags on the rest of the table.

I suspect that a regex search and replace utility like DnGrep
https://dngrep.github.io/
could add the missing components.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/thead
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tbody

#96
Bug reports / Re: Procedure declarations thr...
Last post by Vortex - May 09, 2025, 01:26:16 PM
Hello,

I think we care ignore the case of macros declarating procedures. There is a workaround.
#97
Feature requests / Re: Help file suggestion
Last post by Quin - May 09, 2025, 12:18:15 PM
Quote from: John Z on May 09, 2025, 11:33:03 AMHi Quin,

Yes Pelle already uses CSS for his help file.  I did not include it when creating the test file for the headers.

John Z
Hi,
No, what I meant was I wonder if we can add the columns like you had, and then use CSS to style them.
#98
Feature requests / Re: Help file suggestion
Last post by John Z - May 09, 2025, 11:33:03 AM
Hi Quin,

Yes Pelle already uses CSS for his help file.  I did not include it when creating the test file for the headers.

John Z
#99
Projects developed with Pelles C / Re: vCardz_i an address book/c...
Last post by Quin - May 09, 2025, 02:46:34 AM
Hi John,
Glad to hear it, that's incredible! I look forward to testing it.
I wouldn't worry about NVDA and the mouse, I don't have a mouse connected to my PC and use keyboard commands to manipulate the mouse when I need to.
#100
Feature requests / Re: Help file suggestion
Last post by Quin - May 09, 2025, 02:44:36 AM
Quote from: John Z on May 08, 2025, 05:28:22 PM
Quote from: Pelle on May 08, 2025, 02:15:09 PMExcept for any typos, I'm very much done with this topic for now...

Understood -

Well that is my fault.  I was just testing how to make the change not thinking about a final look.
I'm sure your help file is still more usable for the screen reader now than before.

John Z
Oh it definitely is, and that is certainly much appreciated.
I wonder if we could achieve the wanted look with CSS? I know nothing about how it looks though so...