PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 ... 10
 11 
 on: February 21, 2020, 11:45:48 AM 
Started by James Klutho - Last post by James Klutho
At design time (I had 2 tab controls on the form already which appear to operated as expected), I added a button control on the form and I was unable to edit the button text in the properties tab.  When I ran the code, the button had a desktop image in it.  My guess is that what ever you did to get the tab controls working broke the button when multiple tabs are on a form.

 12 
 on: February 21, 2020, 09:34:45 AM 
Started by James Klutho - Last post by Paul Squires
The problem with 2.05 now is the button control doesn't accept a change of text.  It goes berserk.

Hi Jim, do you mean at design time when you are entering Text into the Button's Text property in the PropertyList, or do you mean at runtime when you try to update text via the Button.Text method call? If during runtime, then in what Event are you updating the Button (Form_Load, Form_Initialize, Form_Button_Click, etc).

 13 
 on: February 21, 2020, 09:24:32 AM 
Started by SeaVipe - Last post by Paul Squires
This is now fixed. Here is the correct version:

Code: [Select]
property wfxStatusBarPanel.Text( byref wszValue as wstring )
   _Text = wszValue
   if this.hWindow then this.Refresh
end property

As you can also see, I have added a Refresh method for the StatusBar Panel class. This allows only the Panel to be redrawn rather than the whole statusbar (which causes a bit of flicker).
Code: [Select]
function wfxStatusBarPanel.Refresh() as Long
   dim as RECT rcPanel
   StatusBar_GetRect( this.hWindow, this.Index, @rcPanel )
   InvalidateRect(this.hWindow, @rcPanel, CTRUE)
   UpdateWindow(this.hWindow)
   function = 0
end function


 14 
 on: February 21, 2020, 09:05:27 AM 
Started by Paul Squires - Last post by Paul Squires
A user reported a crash bug over on WinFBE's GitHub page:
https://github.com/PaulSquires/WinFBE/issues/13

There was a problemwhen pressing the down arrow next to the Open Templates toolbar icon would cause a crash on 64-bit. That was fixed a long time ago.

 15 
 on: February 21, 2020, 12:10:26 AM 
Started by James Klutho - Last post by James Klutho
Thanks for the tab control fix.  It appears to work fine now.  The problem with 2.05 now is the button control doesn't accept a change of text.  It goes berserk.

Jim

 16 
 on: February 20, 2020, 10:14:02 PM 
Started by SeaVipe - Last post by Paul Squires
Thanks Clive - I will test it also. Sounds like a redraw issue.

 17 
 on: February 20, 2020, 09:21:54 PM 
Started by SeaVipe - Last post by SeaVipe
Hi Paul,
The StatusBar is not updating each time Panel(n).Text is modified. The first text change is ignored but after that it appears to be ok. I can't determine the exact issue without further testing which I'll do tomorrow.

 18 
 on: February 20, 2020, 03:11:14 PM 
Started by SeaVipe - Last post by Paul Squires
Also, luckily, during testing of that problem in the prior posts, I was able to notice the issue whereby Frame controls would "disappear". I was able to track it down to situation where a modal dialog is displayed during the Form's Load event. I added code to the wfxForm.inc file to redraw any Frame controls prior to the exiting of the Form creation code (wfxForm.CreateFormInternal). It seems to work well. Maybe there are other cases whereby Frame controls disappear and if I can identify such cases then I will fix those as well.

 19 
 on: February 20, 2020, 02:35:53 PM 
Started by SeaVipe - Last post by Paul Squires
This is what the code for wfxListViewItemsCollection.Clear located in wfxListView.inc now looks like:

Code: [Select]
function wfxListViewItemsCollection.Clear() as long
   ' Deallocate elements in the Items collection.
   ' In order to speed the deallocations, we first loop through
   ' the collection and deallocate the ListViewItems. We then call
   ' the LList's method Clear to quickly deallocate the list nodes
   ' and erase the list.
   ' Disabling drawing updates until all of the nodes are deleted,
   ' otherwise we could get a GPF on a redraw while the node is being deleted.
   SendMessage( this.hWindow, WM_SETREDRAW, false, 0 )
   dim pNode as wfxLListNode ptr
   for i as long = 0 to _Collection.Size - 1
      pNode = _Collection.get_index(i)
      ' Delete ListViewItem fires destructor that deletes any subitems
      Delete cast(wfxListViewItem ptr, pNode->pData)
   next
   _Collection.Clear

   If this.hWindow Then
      ListView_SetItemCountEx( this.hWindow, this.Count, LVSICF_NOINVALIDATEALL or LVSICF_NOSCROLL)
      if this.UpdateFlag = false then AfxRedrawWindow(this.hWindow)
   end if
   SendMessage( this.hWindow, WM_SETREDRAW, true, 0 )
   function = 0
END FUNCTION

 20 
 on: February 20, 2020, 02:33:05 PM 
Started by SeaVipe - Last post by SeaVipe
Thanks, Paul. In the interim, I'll try that too.

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