Search found 1878 matches

by deltarho[1859]
Sep 20, 2019 19:20
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 218

Re: CheckRadioButton issue

The arguments between DDTer's and SDKer's have ended in the PB forum because the SDKer's have left. Ha, ha. Well not quite there are some SDK folk still around. DDT got me up and running with Windows GUIs rapidly. What I should have done was to read SDK as well but I didn't and, probably, many folk...
by deltarho[1859]
Sep 20, 2019 18:24
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 218

Re: CheckRadioButton issue

You will be pleased to hear that this particular application is now completed with no errors or warnings and also does exactly what it says on the box. I will give it a good workout over the weekend and, hopefully, publish it on Monday. I am absolutely drained and will have a nice break before I emb...
by deltarho[1859]
Sep 20, 2019 17:20
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 218

Re: CheckRadioButton issue

You guys are going to burst out laughing at this admission. I thought WndProc did not get called until 'Function = pWindow.DoEvents(nCmdShow)' at the end of WinMain. As soon as you call pWindow.Create, WndProc is called So I was using CheckRadioButton before the buttons were created. Oh dear, it all...
by deltarho[1859]
Sep 20, 2019 15:39
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 218

Re: CheckRadioButton issue

I don't understand that, José. As I have just mentioned the form is created in WinMain and therefore before the first pass of WndProc. CheckRadioButton is failing in WndProc. If I force the third button to be checked in WinMain then I get the third button checked and that may get changed in WndProc ...
by deltarho[1859]
Sep 20, 2019 14:07
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 218

Re: CheckRadioButton issue

OK I forced a CheckradioButton, several values, just after creating the form in WinMain and it works.

It is not working in WndProc.

I have 'Dim As hWnd hDlg = pWindow.hWindow' in WinMain and the handle, being printed for checking, is the same in both WinMain and WndProc.

It should work in WndProc.
by deltarho[1859]
Sep 20, 2019 11:26
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 336

Re: WinFBX window client area width

José wrote:If one day PB released a 64-bit compiler, trying to adapt existing PB applications would be a nightmare.

The phrase "rude awakening" comes to mind. I wonder if anyone over there has thought about that.
by deltarho[1859]
Sep 20, 2019 10:32
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 218

Re: CheckRadioButton issue

José wrote:The first one should have the WS_GROUP style.

It has.

When I build the form I'll try to force a CheckRadioButton.
by deltarho[1859]
Sep 20, 2019 10:28
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 336

Re: WinFBX window client area width

Yours truly wrote:I have been reading the source code in WinFBE and did a 'containing text' search on Cast in the inc files and found reams of them, about 3% of the lines with some files.

Clearly there is an art to it that few of us have managed to fully grasp.
by deltarho[1859]
Sep 20, 2019 9:11
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 218

CheckRadioButton issue

@JosepRoca Hi José I have another problem you may be able to help me with. I have five radio buttons IDs 1001 to 1005, IDC_OPTION = 1001 With this: Dim As Hwnd hDlg = pWindow.hWindow For i = 1 to NumOfPaths If tempString0 = tempString1(i) then Print IDC_OPTION,IDC_OPTION + NumOfPaths -1, IDC_OPTION ...
by deltarho[1859]
Sep 20, 2019 7:08
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 336

Re: WinFBX window client area width

(I don't think so, because I don't get any) I don't now. I still had Declare FUNCTION GetTextWidth ( As Dword, As WSTRING Ptr) As LONG and that needed to be changed to Declare FUNCTION GetTextWidth ( As hWnd, As WSTRING Ptr) As LONG That mistake threw up four warnings, not five as I said - there wa...
by deltarho[1859]
Sep 19, 2019 11:25
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 336

Re: WinFBX window client area width

Hmmm, I now get five warnings.
by deltarho[1859]
Sep 19, 2019 6:27
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 336

Re: WinFBX window client area width

I returned to the function above where I had seven warnings. I am no longer getting any warnings and this is the result. Cast(hWnd, hWnd) and Cast(hFont, hFont) http://deltarho.org.uk/Downloads/eek.png The mind boggles. I have been reading the source code in WinFBE and did a 'containing text' search...
by deltarho[1859]
Sep 18, 2019 18:21
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 336

Re: WinFBX window client area width

Thanks José. I found some code by Paul Squires, and he was setting 120 and getting 120. When he created the window he used WS_POPUP among the styles whereas I did not. With PowerBASIC WS_POPUP is included as a default style. http://deltarho.org.uk/Downloads/frown.png I ported a function from PowerBA...
by deltarho[1859]
Sep 18, 2019 15:25
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 336

WinFBX window client area width

@JosepRoca

Hi José

Have you imposed a limit on the width of the client area of a window.

pWindow.SetClientSize( x, y )

x = 150 => width of 150
x = 140 => width of 140
x = 130 => width of 136
x = 120 => width of 136
x = 110 => width of 136

I hit a barrier at 136.

Thanks.
by deltarho[1859]
Sep 18, 2019 13:14
Forum: General
Topic: ReDimming a Shared array
Replies: 5
Views: 188

Re: ReDimming a Shared array

I am with it - the initial declaration should have been ReDim and not Dim.

All is well now.

Your response time always astounds me!

Thanks fxm.

Go to advanced search