News:

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

Main Menu

Recent posts

#62
General discussions / Re: Where can I find the dialo...
Last post by jm - November 03, 2025, 09:52:43 PM
Many thanks Vortex, appreciate the welcome and the help.

Are there tutorials you're aware of, that might help me get further?  I have past experience in creating event-driven Windows forms with VB, VB.Net, Delphi and similar.  Thanks, Jim.
#63
General discussions / Re: Where can I find the dialo...
Last post by Vortex - November 03, 2025, 08:15:30 PM
Hi jm,

Welcome to the Forum.

Can you try this?

QuotePelles C IDE -> File -> New -> Resources -> right click untitled -> New -> Dialog
#64
General discussions / Where can I find the dialog ed...
Last post by jm - November 03, 2025, 08:02:54 PM
Greetings, I've installed the IDE, version 13.00.7, but cannot seem to find the dialog editor, example of which shown in the below.

http://smorgasbordet.com/pellesc/images/screen2.png

I can find limited reference to it in former posts, but nothing beyond that.

Would appreciate if anyone can point me in the right direction.  Thanks indeed, Jim.
#65
Beginner questions / Re: Createwindow
Last post by Vortex - November 03, 2025, 12:35:30 PM
Hi DonnyDave,

Good news. Don't hesitate if you have other questions. We can help you.
#66
Beginner questions / Re: Createwindow
Last post by DonnyDave - November 03, 2025, 12:14:13 PM
Thanks for to all replies.
I've worked out how to create LISTBOX & COMBOBOX windows now.

Thanks Dave.
#67
Assembly discussions / Rich Edit sample
Last post by Vortex - November 02, 2025, 10:14:04 AM
Inspired by Timo's work, here is the Rich Edit sample converted to Poasm :

https://forum.pellesc.de/index.php?msg=41554

include DlgBox.inc

.code

start:

    mov     eax,RichEditANSIWndProc
    invoke  GetModuleHandle,0
    invoke  DialogBoxParam,eax,DLG_MAIN,0,ADDR DlgProc,0
    invoke  ExitProcess,eax

DlgProc PROC hWnd:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD

    .IF uMsg==WM_CLOSE

        invoke  EndDialog,hWnd,0

    .ELSE

        xor     eax,eax
        ret

    .ENDIF

    mov     eax,1
    ret

DlgProc ENDP

END start

#68
Add-ins / Re: Add-In PrjOptions
Last post by John Z - November 01, 2025, 11:13:35 PM
Thanks Timo.

To be clear this is Timo's creation.  I ran it on WIN 11 24H2 and some issues arose.
I feel obligated to explain -

First the dialog opens very small, well that could be a DPI aware issue of course. 1st Image below.

The second thing however on WIN 11 was that the dialog would not 'stay' resized. I took a video but too big to post so there is an image comprised of two frames - you will see where the dialog was dragged to the right but it immediately snaps back to the starting size.  So I would never see the 'MORE'/'LESS' button.  Could not read the entire lines either although they could be copied.

So for Win 11 a few minor tweaks were made, to open the dialog larger, which now also shows the other button and to stop the dialog from snapping back to the smaller size.  Last two images.

My quick and minor tweaks do have one issue in that if the windows is dragged smaller, then dragged larger the data fields do not automatically resize.  The 'work around' is to just click the 'MORE'/'LESS' button and they will be resized.  I hope this change will be good for WIN 10 and WIN 7.

Timo always does great work and is a major innovator and contributor. 
Microsoft and WIN 11 maybe not so much ...

BTW if another WIN 11 24H2 user does not experience what I've described with the original code it would be a good heads up to me to check my system and installation... yikes I hope not  :o

John Z
#69
Add-ins / Re: Add-In PrjOptions
Last post by TimoVJL - November 01, 2025, 04:41:08 PM
John Z kindly offered a fix for Windows 11
Hopefully someone test it, as i don't support Windows 11.
He can freely develop it to better version
#70
Feature requests / Re: RichEdit 4.1
Last post by TimoVJL - November 01, 2025, 12:24:50 PM
Yes, you are right.
Just an old habit for dll defs.