PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 1 
 on: January 11, 2021, 06:13:16 PM 
Started by SeaVipe - Last post by SeaVipe
Hi Paul, ComboBox: Some Events are working but some Events appear to be behaving differently than expected and still some events don't work at all.
.Simple
MOUSEMOVE only works a few times when the mouse pointer first enters the control then no mouse movement is detected until the mouse pointer leaves the control and reenters.
MOUSELEAVE Follows MOUSEENTER, MOUSEMOVE (all 3 at once).
TEXTCHANGED works
.DropDown
Upon mouse entering the text portion: MOUSEMOVE, MOUSEENTER, MOUSEMOVE, MOUSELEAVE (all together)
Upon mouse leaving the text portion: MOUSEENTER, MOUSEMOVE, MOUSEMOVE, MOUSELEAVE (all together)
If the mouse enters on the dropdown arrow then the MOUSEMOVE event fires repeatedly until the pointer moves off of the arrow and onto the Item, to be expected.
DROPDOWN, DROPDOWNCLOSED, CLICK work as expected.
Every now and then GOTFOCUS fires but I can't figure out what is causing it.
LOSTFOCUS only fires immediately following GOTFOCUS.
TEXTCHANGED works


No Mouse button Events (Up/Down et cetera) and no Key Events.


This all stemmed from my trying to create a ComboBox whose Items are loaded from a text file and that will accept a manually entered choice that is not a text file Item, save that new item to said text file for later use.

 2 
 on: January 08, 2021, 10:36:40 AM 
Started by SeaVipe - Last post by Paul Squires
I see what you are trying to do but unfortunately this is a limitation. The Form stores references to its child controls in an internal wfxLList structure. You can't directly access a child control using the dot syntax because it needs to be retrieved from that internal collection. It is complicated. :-)

 3 
 on: January 08, 2021, 10:08:36 AM 
Started by SeaVipe - Last post by Paul Squires
This is a tough one because WinFBE uses only one configuration ini file so multiple instances will always write to the same ini file. So, depending on what instance changes environment settings will dictate the order to how the changes are saved to the file. Basically, I believe that the last closed instance will overwrite other instances that would have closed earlier.

 4 
 on: January 08, 2021, 10:05:57 AM 
Started by SeaVipe - Last post by Paul Squires
Thanks Clive, I have fixed this. The SelectionChanged event is only meant for RichEdit controls, not TextBoxes. This is because TextBoxes (Edit controls) do not send a notification when the text selected changes, whereas RichEdit controls do.

 5 
 on: January 07, 2021, 08:48:27 PM 
Started by SeaVipe - Last post by SeaVipe
Is there a way to pass a form to a function and have that form's controls accessible from the function? A form can be passed to a function but items like buttons and listviews are not defined and throw errors. I know, pretty vague question with few details but I think I almost know the reason for this behaviour!

 6 
 on: January 07, 2021, 05:42:50 PM 
Started by SeaVipe - Last post by SeaVipe
Hi Paul, TextBox Event 'SelectionChanged' throws Error 18 at compile time.

 7 
 on: January 02, 2021, 09:36:08 PM 
Started by SeaVipe - Last post by SeaVipe
Hi Paul, When CLOSING a second instance of WinFBE, the first instance Theme gets 'partially' overwritten and refreshed while (or shortly after) the second instance is closing. Most noticeably are the colours (but not the font), which revert back to default. My fix is to close all instances of WinFBE and copy a recent WinFBE (2.1.6 in my case) WinFBE.ini file to my current WinFBE Settings folder then restarting WinFBE. A few other things need to be manually changed like Disable Brace Highlighting and Disable Occurrences Highlighting, both of which get enabled with the second instance close.
My development PC associations for .bas, .inc and .bi are set to WinFBE so I have to be a bit careful exploring those file types when WinFBE is already running.

 8 
 on: December 31, 2020, 07:33:44 AM 
Started by SeaVipe - Last post by Paul Squires
Thanks Clive, hope you're doing well also and enjoying the holidays!

I can confirm the behaviour that you are seeing.

I am using code from Jose's Afx library to help determine the display position of the popup window. The code makes a call to SystemParametersInfo with the SPI_GETWORKAREA flag. This gets the screen area that should be used for calculating the position. The "problem" is that the SPI_GETWORKAREA flag always uses the primary display. I will have to investigate a more robust way of handling the multiple setup probably utilizing calls to MonitorFromRect and GetMonitorInfo etc.

I'll investigate a fix and hopefully have something for the upcoming release.

Thanks!

 9 
 on: December 29, 2020, 03:46:48 PM 
Started by SeaVipe - Last post by SeaVipe
Hi Paul, I hope you and your family had a safe and happy Christmas!
I'm sure this topic has been discussed before but my searches have not found a resolution.
My issue is that I cannot get a child form to centre (or position) over a parent form when the parent form is displayed on a second (IE not #1) monitor. Child form Properties, when set to Center Parent will position the Child hard right on the #1 monitor not centred over the Parent on monitor #2 (to my right). Also, the Left when established in FormClosing is much different than the Left when displayed on the console using
Code: [Select]
Function frmPopup_move(...)
? frmPopup.Left
In this case, the left, when the popup form is dragged to the #1 monitor displays large negative numbers.
My expectation would be that the #1 monitor left would = 0 and the #2 monitor left (to the right of the #1 monitor) would = something slightly greater than 0 plus the width of the #2 monitor.
As a workaround, I simply read an ini file with the popup form's Left set manually (which is a value as per my "expectations" above). I haven't yet looked through wfxForm.
Here is the console display with the form hardcoded to Left = 2300 (2 calls to Move and without dragging the form ):
Left = -2400
immediately followed by
Left = 380
Can't seem to find any FB comparable to the VB6 Screen.Width etc.

 10 
 on: December 23, 2020, 10:41:20 PM 
Started by mocnarf - Last post by mocnarf
Just curious has anyone on this forum created a stock trading bot?
TD-Ameritrade provides an API for developers that want to
create to create interface software.   
https://developer.tdameritrade.com/
Here's a video about doing it:
https://www.youtube.com/watch?v=GdlFhF6gjKo

Pages: [1] 2 3 ... 10