PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 ... 10
 21 
 on: June 27, 2020, 08:25:55 AM 
Started by Paul Squires - Last post by Bumblebee
Small issue, may be Windows 7 specific:
When I disable a list box, the background is not greyed out.
Disabled text box is greyed out.
Controls are 3D.

 22 
 on: June 26, 2020, 01:44:14 PM 
Started by Bumblebee - Last post by Bumblebee
I've attached a zipped project in the WinFBE version thread. Default behavior is unusual.

 23 
 on: June 26, 2020, 01:42:07 PM 
Started by Paul Squires - Last post by Bumblebee
I'm having some tab/focus issues.
In the attached project, the List box does not receive focus when the form is shown.
Loading an image, clicking on the image, or on the label does not steal focus from the list box - as it should.
Pressing the tab key however, removes focus.
Pressing it again, restores focus.
Minimizing the window, then restoring it, steals focus.
Switching to another application window, then returning to the test window, steals focus.
Overall, is not expected behavior for this window.

 24 
 on: June 26, 2020, 01:36:27 PM 
Started by Bumblebee - Last post by Josť Roca
> Question: Does this control receive focus when the tab key is pressed?

Not by default, but you can specify the window control styles when you create it and add WS_TABSTOP.

 25 
 on: June 26, 2020, 01:12:05 PM 
Started by Bumblebee - Last post by Bumblebee
I'll be sure to try it out.
Question: Does this control receive focus when the tab key is pressed?

 26 
 on: June 26, 2020, 12:19:29 PM 
Started by Paul Squires - Last post by philbar

Hi Phil, yes you're right that this is indeed a WinFBE parser problem. I looked at the code and the logic was built such that TYPE's were defined outside of Function/Sub blocks. It would be a lot of work and could break code if I try to rearrange that logic at this point so I agree with you that the best approach is for users not to define TYPE's within Function/Sub blocks. I honestly have never done that myself - that's probably why I never built it into the parser logic.
Thanks, Paul. I can live with that. I don't feel like an expert with FreeBasic yet, or even a talented amateur, so I'm still looking around for a style that suits me.

Just to be annoying, here are some other things I've noticed that I hope are easier:
1. UDTs allocated with STATIC instead of DIM don't get dropdowns.
2. SCOPE doesn't seem to get autocompleted or indented.
3. The Backcolor property on Frames, Checkboxes, and Radio buttons doesn't seem to do anything.

Sorry.

 27 
 on: June 26, 2020, 09:58:52 AM 
Started by Paul Squires - Last post by Paul Squires
Hi Paul. Thanks for letting me join the forum.

You probably thought you squashed this several releases back, but actually it just ran into a darker corner. If you define a TYPE inside an event routine, the Designer will duplicate the event function at the bottom of the page. There's an obvious workaround -- don't define TYPEs in event routines -- but it might be a symptom of something deeper. I think I've attached a screenshot.

Hi Phil, yes you're right that this is indeed a WinFBE parser problem. I looked at the code and the logic was built such that TYPE's were defined outside of Function/Sub blocks. It would be a lot of work and could break code if I try to rearrange that logic at this point so I agree with you that the best approach is for users not to define TYPE's within Function/Sub blocks. I honestly have never done that myself - that's probably why I never built it into the parser logic.


 28 
 on: June 26, 2020, 09:34:33 AM 
Started by SeaVipe - Last post by Paul Squires
Hi Clive, if I read your description correctly then it seems that maybe you are not handling the popup menu in the 'RightClick' event?

Code: [Select]
''
''
Function frmMain_ListView1_RightClick( ByRef sender As wfxListView, ByRef e As EventArgs ) As LRESULT
   
   ' Only display the popup menu if a valid row has been selected
   if e.ListViewRow = -1 then exit function
   

   ' Create the menu (only one item for this example)
   Dim hPopUpMenu As HMENU = CreatePopupMenu()
   AppendMenu( hPopUpMenu, MF_ENABLED or MF_STRING, IDM_COPYLISTVIEWTEXT, _
               "Copy cell data to clipboard" )


   ? "Popup menu on Row: "; e.ListViewRow; "  Col: "; e.ListViewColumn
   
   ' Display the popup menu and receive the selected item. We use the TPM_RETURNCMD flag
   ' to retrieve the result here rather than have to get it from here.
   dim as long nSelected = _
               TrackPopupMenu( hPopUpMenu, TPM_RETURNCMD or TPM_NONOTIFY, _
                               e.x, e.y, 0, frmMain.hWindow, ByVal Null )

   select case nSelected
      case IDM_COPYLISTVIEWTEXT
         ' Get the text from the row/col and copy it to the clipboard
         dim as CWSTR wszText = frmMain.ListView1.Item(e.ListViewRow).SubItem(e.ListViewColumn).Text
         AfxSetClipboardText( wszText )
   end select                   
   

   ' Finally, destroy the popup menu
   DestroyMenu hPopUpMenu

   Function = 0
End Function


 29 
 on: June 26, 2020, 09:25:18 AM 
Started by Bumblebee - Last post by Paul Squires
I have added the 'ImageFromFile' property to the PictureBox control so you should be able to change the picture via external disk files at runtime. Will be in the next update.

 30 
 on: June 26, 2020, 09:22:19 AM 
Started by Paul Squires - Last post by Paul Squires
Hi Paul, just a note but the compiler setup help files prefilled with your file locations.
Ah, yes, this was in the WinFBE source tree and is now removed.

Pages: 1 2 [3] 4 5 ... 10