NO

Author Topic: Is there any easier abroad to made gui in C?  (Read 2721 times)

Jokaste

  • Guest
Re: Is there any easier abroad to made gui in C?
« Reply #15 on: May 16, 2019, 09:02:45 pm »
I like the Pelles C Compiler, but that's true that the editor could be improved.
I would like to interface Pelles with NotePad++.


But there is no other problem, Perhaps the compiler has bugs but is there ONE program with NO bug.
I would like to remember that Pelles C is FREE and for a free tools it is very good.


Thank You Mr Pelle :D

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1836
Re: Is there any easier abroad to made gui in C?
« Reply #16 on: May 17, 2019, 06:30:02 pm »
Notepad++ have NppExec
May the source be with you

Offline cnoob

  • Member
  • *
  • Posts: 19
Re: Is there any easier abroad to made gui in C?
« Reply #17 on: May 19, 2019, 01:39:50 pm »
I think we should focus on CodeBlocks. It offers full Win32 programming environment like Pelles C, it code editor and code completion is much better and it's possible to add new compiler support without too much hard work. Text editors like Notepad++ only provide word based completion, clearly not what we want to replace Pelles C IDE.

Offline jj2007

  • Member
  • *
  • Posts: 506
Re: Is there any easier abroad to made gui in C?
« Reply #18 on: May 28, 2019, 03:12:45 pm »
code completion is much better

I wonder whether an add-in can intercept keyboard messages, i.e. WM_CHAR and friends. The class of the main editor control is PC_SourceEdit, probably a superclassed edit control.

What I do in my own editor is quite simple:
- user types space
- WM_CHAR handler scans (rich) edit control text backwards until it hits something below "A"
- if the resulting short text, e.g. mb, is found in a text file that contains entries like...
Code: [Select]
mb<TAB>MessageBox(0, "Hello", "Title", MB_OK)... then the text to the right of TAB replaces the mb. That works perfectly, and of course, the user can edit the text file and add whatever is needed for code completion.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1836
Re: Is there any easier abroad to made gui in C?
« Reply #19 on: May 29, 2019, 11:21:41 am »
ucase.c example use subclassing for document window.
poide have a code snippet feature (Ctrl+space).
May the source be with you

Offline jj2007

  • Member
  • *
  • Posts: 506
Re: Is there any easier abroad to made gui in C?
« Reply #20 on: May 29, 2019, 07:14:45 pm »
ucase.c example

..\PellesC\Projects\Samples\Add-Ins\UCase\ucase.c

It builds fine but it doesn't install itself for reasons I don't understand. The file is placed in ..\PellesC\Bin\AddIns\ucase.dll but doesn't show in any of the menus mentioned in Howto install an Add-in 8)
« Last Edit: May 29, 2019, 07:28:29 pm by jj2007 »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1836
Re: Is there any easier abroad to made gui in C?
« Reply #21 on: May 29, 2019, 07:51:06 pm »
It just convert every pressed key to upper case.
May the source be with you