PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 on: Today at 02:45:33 PM 
Started by Josť Roca - Last post by Josť Roca
Petrus Vorster posted a question that he has deleted while I was doing some research. It was about retrieving the local IP address of a computer.

In FreeBasic, you can do this:

Code: [Select]
DIM wsad AS WSAData
IF WSAStartup(&h202, @wsad) = 0 THEN
   DIM hostname AS ZSTRING * 256
   IF gethostname(hostname, SIZEOF(hostname)) = 0 THEN
      DIM pHostent AS HOSTENT PTR = gethostbyname(hostname)
      IF pHostent THEN
         DIM IPbuffer AS ZSTRING PTR = inet_ntoa(*CAST(IN_ADDR PTR, pHostent->h_addr_list[0]))
         print "Local IP host address: "; *IPbuffer
      END IF

 on: February 23, 2020, 05:08:36 PM 
Started by James Klutho - Last post by James Klutho
I don't know.  I switched over to the Windows 10 computer as my development computer and everything seems to be working now.  Thanks for your time Paul. This is a pretty slick product.

 on: February 23, 2020, 11:43:33 AM 
Started by James Klutho - Last post by Paul Squires
Hi Jim,

I fired up Windows 7 in a virtual box and was able to run the exe (see screenshot attached). Everything seemed to look okay. Actually, my version ran with themes active. I am still not sure why your version did have themes active. When you create a new project there is a little checkbox on the dialog that allows the application to automatically create a resource file and manifest file that is needed for theme support.

 on: February 22, 2020, 09:58:54 PM 
Started by Paul Squires - Last post by Paul Squires
Version 2.0.6 (February 22, 2020)
- Added: Refresh method for the StatusBar Panel class so only a particular Panel is redrawn rather than the whole statusbar.
- Added: The WinFBE.ini config file is automatically reloaded should an external tool or program modify it (prior to this change it was only reloaded before to a compile).
- Added: Some missing codetips for StatusBar Panels and UpDown control.
- Changed: Image filenames are now stored in the form files as relative paths to the form file.
- Fixed: Crash in certain cases when attempting to invoke the "Open Templates" dialog (via the menu or dropdown toolbar button).
- Fixed: Changing StatusBar text at runtime did not immediately update the text displayed in the panel.
- Fixed: Listview would crash if Listview.BeginUpdate was followed by Listview.Items.Clear.
- Fixed: Frame controls could "disappear" if a modal dialog was shown during the Form's Load event.
- Fixed: MenuEditor crash if trying to Insert new item prior to first item in list (WinFBE64.exe).
- Fixed: ListBox ItemHeight not properly returned when multiple ListBoxes existed on a Form.

 on: February 22, 2020, 08:41:07 PM 
Started by James Klutho - Last post by Paul Squires
Hmmmm.... that is odd. It should work on all Windows versions from Vista onwards. I will create some test cases for you (I will also see if I still have a laptop with Windows 7 installed!).

I am pretty sure that Jose used Windows 7 most of the time while he was writing the WinFBX library. WinFBE uses the CxpButton control for all buttons that the visual designer outputs. So, the problem could be how I am interfacing to the CxpButton control.

 on: February 22, 2020, 08:35:01 PM 
Started by SeaVipe - Last post by SeaVipe
Perfect! Thanks, Paul.

 on: February 22, 2020, 08:24:44 PM 
Started by SeaVipe - Last post by Paul Squires
Thanks Clive - good catch. In my source code for WM_MEASUREITEM, I make the comment:

         ' WM_MEASUREITEM is sent prior to valid hWindow so we need to manually
         ' search all controls in the controls collection to get a matching CtrlID.

I did the search but forgot to test the found ListBox control against the wParam value which is the Control ID. Basically, I returned the ItemHeight for whatever the first found ListBox on the Form had. I have corrected the code and the fix will be 2.0.6.

 on: February 22, 2020, 08:14:46 PM 
Started by SeaVipe - Last post by Paul Squires
Thanks Clive - I have this fixed now. Fix will be in 2.0.6.

 on: February 22, 2020, 08:04:54 PM 
Started by SeaVipe - Last post by SeaVipe
Hi Paul, I have 2 ListBoxes on a form. The second ListBox (#2) inherits the .ItemHeight from the first ListBox (#1). #1 is set to .ItemHeight 18, #2 is set to 50. They both display with an ItemHeight of 18. Click Event on #2: ? sender.ItemHeight console prints 50. Click Event on #1: ? sender.ItemHeight console prints 18.

 on: February 22, 2020, 03:25:29 PM 
Started by SeaVipe - Last post by SeaVipe
Hi Paul, In the Menu Editor, click the "Insert" button while the first menu item is highlighted/selected will crash WinFBE.

Pages: [1] 2 3 ... 10