🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Mozzy Thu, 17 Feb 2005 15:58
[Xnews] Customizing Xnews with resource hacker
#162884
Author: Mozzy
Date: Thu, 17 Feb 2005 15:58
25 lines
1614 bytes
Minor customizations of version 6.08.25 hitting problems.

I want to have hotkeys on the composition window to let me reposition 
the cursor at certain fields like 'Identity' and 'Post To'.  (Am sure 
Luu won't mind such small changes.)

Using Resource Hacker I added an ampersand to the relevant captions 
which I found in TEditWindow

          Caption = '&Identity'    (line 124)
          Caption = '&Name'        (line 131)
          Caption = 'Post &to'     (line 876).

But when I compile and run the new Xnews executable, my new hotkeys 
(alt I, alt N and alt P) do not work.

How can I best fix this?

Mozzy

================

PS - OTOH if I want to have a hotkey for the three dots for "Edit 
list of groups to post to" then it does work and it launches the 
popup menu.  So my general method seems to be ok.
Re: [Xnews] Customizing Xnews with resource hacker
#162909
Author: Guy
Date: Thu, 17 Feb 2005 19:47
54 lines
2629 bytes
Mozzy wrote:

> Minor customizations of version 6.08.25 hitting problems.
> 
> I want to have hotkeys on the composition window to let me
> reposition the cursor at certain fields like 'Identity' and 'Post
> To'.  (Am sure Luu won't mind such small changes.)
> 
> Using Resource Hacker I added an ampersand to the relevant
> captions which I found in TEditWindow
> 
>           Caption = '&Identity'    (line 124)
>

This works:

        object Label9: TLabel
          Left = 4
          Top = 0
          Width = 42
          Height = 16
          Caption = '&Identity'
          FocusControl = coIDs
        end


>           Caption = '&Name'        (line 131)
>

Probably will work:

        object Label6: TLabel
          Left = 127
          Top = 0
          Width = 37
          Height = 16
          Caption = '&Name'
          FocusControl = edName
        end


>           Caption = 'Post &to'     (line 876).
> 


Can't figure out, probably not persue further.

Good luck.

Regards,
Guy
-- 
Xnews "XP" Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Re: [Xnews] Customizing Xnews with Resource Hacker
#162964
Author: Mozzy
Date: Fri, 18 Feb 2005 20:07
59 lines
2713 bytes
> Mozzy wrote:
> 
>> My minor customizations of Xnews version 6.08.25 are hitting 
>> problems.
>> 
>> I want to have hotkeys on the composition window to let me
>> reposition the cursor at certain fields like 'Identity' and 'Post
>> To'.  (Am sure Luu won't mind such small changes.)
>> 
>> Using Resource Hacker I added an ampersand to the relevant
>> captions which I found in TEditWindow
>> 


On 17 Feb 2005, Guy wrote:
>
>         object Label6: TLabel
>           Left = 127
>           Top = 0
>           Width = 37
>           Height = 16
>           Caption = '&Name'
>           FocusControl = edName
>         end
>
> -- snip -- 
>


>> 
>>           Caption = 'Post &to'     (line 876).
>> 
> 
> Can't figure out, probably not persue further.
> 
> Good luck.
> Regards,
> Guy


Thanks for the info guy.  I got good results when I used the keyword 
FocusControl in the way you showed.

I don't know Delphi but when I looked into this aspect just now it 
seems (unless I have understood it wrongly) that you can't move the 
focus to a displayed field in Delphi.  So you have to move the focus 
to the label associated with that field.

So the problem seems to be if you can use FicusControl with a label 
that has a space in it.

Tried lots of options but got nowhere.  In case the 'Post To' field 
was a bit odd on account of its location, I tried the 'Public Email' 
field but it was the same problem.

Maybe someone who knows a bit of the inner detail of Delphi can help 
out.  Have crossposted this to two Delphi groups.

Mozzy
Re: [Xnews] Customizing Xnews with Resource Hacker
#163106
Author: Guy
Date: Tue, 22 Feb 2005 20:08
66 lines
3335 bytes
Mozzy wrote:

>> Mozzy wrote:
>> 
>>> My minor customizations of Xnews version 6.08.25 are hitting 
>>> problems. 
>>> 
>>> I want to have hotkeys on the composition window to let me
>>> reposition the cursor at certain fields like 'Identity' and 'Post
>>> To'.  (Am sure Luu won't mind such small changes.)
>>> 
>>> Using Resource Hacker I added an ampersand to the relevant
>>> captions which I found in TEditWindow
>>> 
> 
> 
> On 17 Feb 2005, Guy wrote:
>> 
>> object Label6: TLabel
>> Left = 127
>> Top = 0
>> Width = 37
>> Height = 16
>> Caption = '&Name'
>> FocusControl = edName end
>> 
>>> Caption = 'Post &to'     (line 876).
>>> 
>> 
>> Can't figure out, probably not persue further.
>> 
> 
> Thanks for the info guy.  I got good results when I used the keyword 
> FocusControl in the way you showed.
> 
> So the problem seems to be if you can use FicusControl with a label 
> that has a space in it.
> 

FocusControl is a property of `Label'.
As such can not be used with Object `Panel'

> I tried the 'Public Email' 
> field but it was the same problem.
> 


        object Label3: TLabel
          Left = 266
          Top = 0
          Width = 73
          Height = 16
          Caption = 'Pub&lic email'
          FocusControl = edPubEMail
        end

> Maybe someone who knows a bit of the inner detail of Delphi can help 
> out.  Have crossposted this to two Delphi groups.
> 


Regards,
Guy
-- 
Xnews "XP" Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Re: [Xnews] Customizing Xnews with Resource Hacker
#163220
Author: Mozzy
Date: Thu, 24 Feb 2005 20:58
26 lines
1785 bytes
On 22 Feb 2005, Guy wrote:
> 
> FocusControl is a property of `Label'.
> As such can not be used with Object `Panel'
> 


>> I tried the 'Public Email' 
>> field but it was the same problem.
>> 

> 
>         object Label3: TLabel
>           Left = 266
>           Top = 0
>           Width = 73
>           Height = 16
>           Caption = 'Pub&lic email'
>           FocusControl = edPubEMail
>         end


Hey Guy, that's great.  Much appreciated.

I am far from sure that I understand how this all works.  I guess I 
need to sit down and read a primer on Delphi.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads