You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
I have the six CONTROL ADD OPTION... statements consecutively,
with the 1st, 3rd and 5th ones with the %WS_GROUP option and
the buttons work fine in the UI.
I was under the impression that Windows itself didn't allow
multiple option buttons within a group to be TRUE, but that
seems not to be the case.
First time you use WS_GROUP style when creating your controls starts the grouping,
the second time you use WS_GROUP style to create another control marks the end of that group.
The next control created with WS_GROUP starts the next grouping of controls etc.
With buttons a question is not so obvious.
1) Not DDT - it simply execute SendMessage ... BM_SETCHECK
2) Windows - also question, because MSDN talks simply
An application sends a BM_SETCHECK message to set the check state of a radio button or check box.
No one word about WS_GROUP options.
#Compile Exe
#Register None
#Dim All
#Include "Win32Api.INC"
Function PbMain
Local hDlg As Long
Dialog New 0, "Test", ,, 100, 100, %WS_CAPTION Or %WS_SYSMENU To hDlg
Control Add Button, hDlg, -1, " 1. " + $CRLF + " 2. ", 10, 10, 80, 30, _
%BS_AUTOCHECKBOX Or %BS_MULTILINE Or %WS_VISIBLE Or %WS_CHILD
Dialog Show Modal hDlg
End Function
I'm trying to set a DDT checkbox to multiline without much
success. I set the control width small enough so that all
the text won't show on one line and also used the %BS_MULTILINE
style in the CONTROL ADD CHECKBOX statement.
However, no luck. I'm starting to wonder if I have some weird
video driver issues (see my other post about "Both Option Buttons
On"), but the checkboxes work fine in other Win apps and in VB.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: