News:

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

Main Menu

Recent posts

#11
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.
#12
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.
#13
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.
#14
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

#15
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
#16
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
#17
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.
#18
Feature requests / Re: RichEdit 4.1
Last post by Vortex - November 01, 2025, 12:11:48 PM
Hi Timo,

In your def file, you don't need the equates :

_CreateTextServices@12=CreateTextServices
This line should be enough :

_CreateTextServices@12
#19
Feature requests / Re: RichEdit 4.1
Last post by John Z - November 01, 2025, 11:50:37 AM
Thanks Timo!  👍👍👍

Grabbed them.

I would not be surprised to see Richedit 1 and 2 depreciated in the near future.
Win 11 notepad already uses 4.1.

John Z
#20
Beginner questions / Re: Createwindow
Last post by John Z - October 31, 2025, 09:50:00 AM
Hi DonnyDave,

Quote from: DonnyDave on October 30, 2025, 03:06:04 PMCOMBOBOX, LISTBOX and DROPDOWNLISTBOX as well.

Your request is too broad for a specific answer.  You can get a start by using Pelle resource IDE to create the list type you want.  Then you use SendMessage to interact with the control.

For an offline help download controls.chm from here:
https://sourceforge.net/projects/windows-controls-api-docs/

Go to the "Control Library" section from there you will see Listbox, and ComboBox entries which show functions, macros, messages etc to use to interact with the control.

Otherwise if you post small examples of where you are 'stuck' doing something, a more focused help would probably be provided.

John Z