I see your'e going well, I got an example written in Oxygen BASIC if interested, maybe it can help a little...
Color TabControl
Search found 56 matches
- Feb 03, 2024 2:41
- Forum: Windows
- Topic: Tabcontrol color winmain
- Replies: 10
- Views: 789
- Mar 24, 2023 3:48
- Forum: Windows
- Topic: Windows Service
- Replies: 9
- Views: 3410
Re: Windows Service
All is fine then. Great! About " $ ", it prevent the string following it to see " \ " as an escape character. The string between quotes will be literally used. There is a topic in the help about $, you will also see the "Option Escape" there. I often use it, specially w...
- Mar 23, 2023 15:04
- Forum: Windows
- Topic: Windows Service
- Replies: 9
- Views: 3410
Re: Windows Service
Jim, After a month, I'm probably too late, still, here is an answer... The handle scHandle you gave couldn't be the result of "Cast(SC_HANDLE, GetModuleHandle(NULL)" in my code, it come from OpenService(), as in "hService = OpenService(hServiceControlManager, pg->wsServiceName, SERVIC...
- Feb 05, 2023 8:40
- Forum: Windows
- Topic: Windows Service
- Replies: 9
- Views: 3410
- Jan 01, 2023 4:44
- Forum: Windows
- Topic: How to convert physical points of a TrackBar tics into logical points
- Replies: 9
- Views: 1766
Re: How to convert physical points of a TrackBar tics into logical points
Thank for sharing.
I saw your "Happy new year" message.
Happy new year to you too dodicat and to the FB community!
I saw your "Happy new year" message.
Happy new year to you too dodicat and to the FB community!
- Jan 01, 2023 0:20
- Forum: Windows
- Topic: How to convert physical points of a TrackBar tics into logical points
- Replies: 9
- Views: 1766
Re: How to convert physical points of a TrackBar tics into logical points
Hey dodicat!
I do not see any alignment of the thumb with tick mark.
Did you post the right code?
I do not see any alignment of the thumb with tick mark.
Did you post the right code?
- Dec 31, 2022 1:24
- Forum: Windows
- Topic: How to convert physical points of a TrackBar tics into logical points
- Replies: 9
- Views: 1766
Re: How to convert physical points of a TrackBar tics into logical points
kcvinu, Here is some compilable code... #Define JumpCompiler "<D:\Dev\Free\Compiler\fbc64.exe>" #Define JumpCompilerCmd "<-s gui -w pedantic "D:\Dev\Free\bas\~~Default.rc">" #define unicode #Include Once "Windows.bi" #Include Once "Win\CommCtrl.bi" #...
- Dec 30, 2022 20:24
- Forum: Windows
- Topic: How to convert physical points of a TrackBar tics into logical points
- Replies: 9
- Views: 1766
Re: How to convert physical points of a TrackBar tics into logical points
Here is an extract of the revelent code for a TrackBar that is not custom draw... It will snap the thump to be aligned with the nearest tick. Tested OK... // Code assume RANGE MIN is zero, adjust code if needed TrackBarRangeMin_1 = 0 TrackBarRangeMax_1 = 255 CASE WM_CREATE / WM_INITDIALOG STATIC Tic...
- Dec 20, 2022 0:05
- Forum: Windows
- Topic: WinFBE, Need some help to make Dropfile event works
- Replies: 12
- Views: 1694
Re: WinFBE, Need some help to make Dropfile event works
AngFerreiras,
If you don't need the elevated Administrator's drop file workaround,
just delete the IsUserAdmin() function and the 'If IsUserAdmin() Then'...'End If' part in my code above.
If you don't need the elevated Administrator's drop file workaround,
just delete the IsUserAdmin() function and the 'If IsUserAdmin() Then'...'End If' part in my code above.
- Dec 19, 2022 23:51
- Forum: Windows
- Topic: WinFBE, Need some help to make Dropfile event works
- Replies: 12
- Views: 1694
Re: WinFBE, Need some help to make Dropfile event works
Yes, with proper hListbox control handle, ChangeWindowMessageFilterEx() will work...
Using hWnd, only ChangeWindowMessageFilter() work.
Using hWnd, only ChangeWindowMessageFilter() work.
- Dec 19, 2022 23:38
- Forum: Windows
- Topic: WinFBE, Need some help to make Dropfile event works
- Replies: 12
- Views: 1694
Re: WinFBE, Need some help to make Dropfile event works
I have a slight problem. Running Pierre's code with admin rights sees dropping files fail. In Pierre's code, I changed... It is not exactly my code if you change it. ;-] ChangeWindowMessageFilterEx() won't work, ChangeWindowMessageFilter() will. For the 'splitting hairs' part, maybe you are right...
- Dec 19, 2022 7:27
- Forum: Windows
- Topic: WinFBE, Need some help to make Dropfile event works
- Replies: 12
- Views: 1694
Re: WinFBE, Need some help to make Dropfile event works
To make an elevated application accept, let's say, files from Windows Explorer, one must use "ChangeWindowMessageFilter". This is not an issue, this is normal UIPI (UAC) behavior. See How to Enable Drag and Drop for an Elevated MFC Application on Windows Here is an example of a listbox tha...
- Jun 23, 2021 5:47
- Forum: Windows
- Topic: Retrieving the command line parameters with __getmainargs
- Replies: 4
- Views: 2205
Re: Retrieving the command line parameters with __getmainargs
Some APIs... 'Show every arguments Dim ArgCount As LONG Dim pArgArray As LPWSTR Pointer = CommandLineToArgvW(GetCommandLineW(), @ArgCount) For index As LONG = 0 TO ArgCount - 1 Print Str(index) & ") [" & *pArgArray[index] & "]" Next : Print LocalFree(pArgArray) 'Show ...
- May 31, 2021 4:54
- Forum: Beginners
- Topic: Resize array so that ubound gives -1?
- Replies: 4
- Views: 1084
Re: Resize array so that ubound gives -1?
...keeping track of the item count... Note that having ubound() as -1 does not always mean there is zero item in an array... lbound may be negative or above zero redim items(-5 to -1) redim items(5 to 9) ubound may be negative or equal zero redim items(-5 to -1) redim items(-4 to 0) In those cases,...
- Mar 07, 2020 1:23
- Forum: Windows
- Topic: SystemTimeToFileTime
- Replies: 23
- Views: 4130
Re: SystemTimeToFileTime
Minor observation. How about using GetSystemTimeAsFileTime()... ' ======================================================================================== ' Returns the current system time as a FILETIME structure. ' ====================================================================================...