NO

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
User contributions / Re: Enable Dark Mode for Title bar
« Last post by WiiLF23 on April 11, 2024, 11:28:20 PM »
You are most welcome! I will revisit this in coming weeks for additions and improvements.

TreeView painting procedure should be implemented into dark mode as well, as many people including myself rely on TreeView for data.

I completed the painting 2 months back, but I didn't post about it. I'll add the addition of this code, as well as a custom splash screen making full use of control designing.

12
Projects developed with Pelles C / Re: vCardz_i an address book/contact list program
« Last post by John Z on April 10, 2024, 01:55:51 PM »
vCardz_i updated to version 2.8.1 with a few new features.
Mainly a Batch Rename procedure.

Executable download at https://sourceforge.net/projects/vcardz/

Lifetime downloads 17,388 across 164 countries  :)

All just Pelles C 64 bit now.

John Z
13
User contributions / Re: Enable Dark Mode for Title bar
« Last post by Ushavilash on April 10, 2024, 10:36:20 AM »
Thanks for sharing that information and resources that is really helpful.
14
Assembly discussions / Trackbar control
« Last post by Vortex on April 09, 2024, 11:14:28 AM »
Simple trackbar demo :

Code: [Select]
WndProc PROC hWnd:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD

    .IF uMsg==WM_DESTROY
   
        invoke  PostQuitMessage,NULL

    .ELSEIF uMsg==WM_CREATE

        invoke  CreateWindowEx,0,ADDR TBAR_CLASS,0,\
                WS_CHILD or WS_VISIBLE or TBS_BOTTOM,\
                50,50,200,30,hWnd,0,hInstance,0

        mov     hSlider,eax

        invoke  SendMessage,eax,TBM_SETRANGE,TRUE,\
                0 or (100 shl 16)
               
        invoke  SendMessage,hSlider,TBM_SETPOS,TRUE,50
.
.
15
Tips & tricks / Re: COM helper library
« Last post by Vortex on April 07, 2024, 01:05:45 PM »
ComView by Baron-von-Riedesel :

Quote
About

Win32 tool that allows to play with COM objects ( create objects of classes, call methods, set/get properties ). Can also create assembly include files from typelibs.

https://github.com/Baron-von-Riedesel/ComView
16
Beginner questions / Re: Select text for clipboard
« Last post by Ushavilash on April 04, 2024, 12:47:59 PM »
Hi Ushavilash,

Welcome to the forum.  Always nice to see new contributors.

I've attached a skeleton program for PellesC that outputs three TextOut lines. See attached image.
If you can add the needed code to grab the text and send to the clipboard that would
be a great help to DonnyDave. (and me too) 

John Z

Ohh, thanks for posting with attachment sure I'll try. If this happens then I'll reach you.
17
Assembly discussions / ALIAS sample
« Last post by Vortex on April 03, 2024, 07:30:44 PM »
Quick example to use the keyword ALIAS :

Code: [Select]
.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG
OutputText PROTO C :DWORD,:VARARG

ALIAS "OutputText"="printf"

includelib  \PellesC\lib\Win\kernel32.lib
includelib  msvcrt.lib


DefStr MACRO id,str

.data

    id  db str
    db  0

    slen SIZESTR str

.code

ENDM


.data

msg db 'Lenght of the string = %u',0

.code

start:

    DefStr  string,"Hello world!"

    invoke  OutputText,ADDR msg,slen

    invoke  ExitProcess,0

END start
18
Beginner questions / Re: Select text for clipboard
« Last post by John Z on April 03, 2024, 03:57:12 PM »
This is roughly what I'm trying to do:- . . . .

What you will see is that programs that use TextOut to write text to the screen also store the text, ASCII or UNICODE characters, in a buffer internal to the program to enable being able highlighting and edit the on screen text if editing is a feature.

When another program is trying to copy 'text' from a program that used TextOut it does not have access to that internal buffer.

Attached is some sample code from Win32 Programmer's Reference WIN32.chm which shows the fundamentals of using TextOut and being able to highlight text once written to the screen using TextOut.  Basically knowing the character starting point, character widths and heights and number of characters per logical line,  one can figure out where in the buffer the characters are from the mouse pointer start point and the mouse pointer end point, the characters can be redrawn highlighted (with TextOut), and if CRTL+C is used then the actual characters are retrieved from the internal character buffer - not directly from the screen.

Hope this helps . . .

John Z
19
Beginner questions / Re: Select text for clipboard
« Last post by John Z on April 01, 2024, 12:17:02 PM »
Hi Ushavilash,

Welcome to the forum.  Always nice to see new contributors.

I've attached a skeleton program for PellesC that outputs three TextOut lines. See attached image.
If you can add the needed code to grab the text and send to the clipboard that would
be a great help to DonnyDave. (and me too) 

John Z
20
Beginner questions / Re: Select text for clipboard
« Last post by Ushavilash on April 01, 2024, 08:41:46 AM »
Hey hi, you need to implement text selection functionality within your application. This involves handling mouse events to determine the start and end points of the selection, updating the selection UI accordingly and some more information you can get https://learn.microsoft.com/en-us/windows/win32/api/.
Pages: 1 [2] 3 4 ... 10