Search found 4575 matches
- Wed Mar 27, 2024 3:34 pm
- Forum: Windows
- Topic: ListIcon and image transparency
- Replies: 20
- Views: 909
Re: ListIcon and image transparency
The problem comes from Windows XP theme Next is a much easier method SetThemeAppProperties_(0) Procedure Add_Icon_To_ImageList(ImgList, DLL_Path.s, index) Protected hIcon, img_index = -1 hIcon = ExtractIcon_(#Null, DLL_Path, index) StartDrawing(ImageOutput(1)) Box(0,0,24,24,$FFFFFF) DrawImage(hicon,...
- Wed Mar 27, 2024 11:40 am
- Forum: Windows
- Topic: ListIcon and image transparency
- Replies: 20
- Views: 909
Re: ListIcon and image transparency
Procedure Add_Icon_To_ImageList(ImgList, DLL_Path.s, index) Protected hIcon, img_index = -1 iinf.ICONINFO hIcon = ExtractIcon_(#Null, DLL_Path, index) StartDrawing(ImageOutput(1)) Box(0,0,32,32,$FFFFFF) DrawImage(hicon,0,0,24,24) StopDrawing() iinf\hbmMask = ImageID(0) iinf\hbmColor = ImageID(1) ic...
- Wed Mar 27, 2024 2:30 am
- Forum: Windows
- Topic: ListIcon and image transparency
- Replies: 20
- Views: 909
Re: ListIcon and image transparency
Procedure Add_Icon_To_ImageList(ImgList, DLL_Path.s, index) Protected hIcon, img_index = -1 hIcon = ExtractIcon_(#Null, DLL_Path, index) StartDrawing(ImageOutput(1)) Box(0,0,24,24,$ffffff) DrawImage(hicon,0,0,24,24) StopDrawing() iinf.ICONINFO iinf\fIcon = 1 iinf\hbmMask = ImageID(0) iinf\hbmColor ...
- Sun Mar 24, 2024 9:59 am
- Forum: Coding Questions
- Topic: How to catch the keyboard layout switch event?
- Replies: 4
- Views: 278
Re: How to catch the keyboard layout switch event?
I didn't use any Window and forced CMD to be run as Invoker not admin
It works here with Windows 11 x64
It's different than you did
It works here with Windows 11 x64
It's different than you did
- Sun Mar 24, 2024 4:31 am
- Forum: Coding Questions
- Topic: How to catch the keyboard layout switch event?
- Replies: 4
- Views: 278
Re: How to catch the keyboard layout switch event?
Catch Input language change while running CMD.exe Global prog,kb,oldkb prog = RunProgram("cmd.exe","","",#PB_Program_Open) While ProgramRunning(prog) kb = GetWindowThreadProcessId_(GetForegroundWindow_(),0) kb = GetKeyboardLayout_(kb) If kb <> oldkb oldkb = kb Delay(100...
- Fri Mar 22, 2024 11:10 am
- Forum: Coding Questions
- Topic: Icon display messed up
- Replies: 11
- Views: 380
Re: Icon display messed up
Hi tatanas
It depends
Delay is not always the good solution
But you can use [While WindowEvent():Wend ] when needed
Be sure that every repeated process start on clean ground
Try and error is your answer
It depends
Delay is not always the good solution
But you can use [While WindowEvent():Wend ] when needed
Be sure that every repeated process start on clean ground
Try and error is your answer
- Fri Mar 22, 2024 3:19 am
- Forum: Coding Questions
- Topic: EscapeRegularExpression() function?
- Replies: 5
- Views: 247
Re: EscapeRegularExpression() function?
Sample for using Escape with RegularExpression It may help Text$ = ~"<a href=\"https://www.sample.com\">Share</a>" + #CRLF$ Text$ + ~"<p> Share</p>" + #CRLF$ Text$ + ~"<a NoReplaceMe>Share</a>" + #CRLF$ Text$ + ~"<a href=\"https://www.sample.com\&quo...
- Fri Mar 22, 2024 2:43 am
- Forum: Coding Questions
- Topic: EscapeRegularExpression() function?
- Replies: 5
- Views: 247
Re: EscapeRegularExpression() function?
Maybe
String lib
String lib
Code: Select all
EscapeString(String$ [, Mode])
UnescapeString(String$ [, Mode])
- Thu Mar 21, 2024 6:57 pm
- Forum: Coding Questions
- Topic: Icon display messed up
- Replies: 11
- Views: 380
Re: Icon display messed up
Most of my problems comes from Time and Timing specially these days with SSD devices
Check that and give the CPU and other components time to breeze
Check that and give the CPU and other components time to breeze
- Thu Mar 21, 2024 2:14 pm
- Forum: Tricks 'n' Tips
- Topic: Color Button using API [Windows]
- Replies: 4
- Views: 591
Re: Color Button using API [Windows]
Hi guys
Thanks blueb and pjay for your comments
NM I am so glad to read your comments at any PB post
I hope you are in a very good shape
Thanks blueb and pjay for your comments
NM I am so glad to read your comments at any PB post
I hope you are in a very good shape
- Wed Mar 20, 2024 1:46 pm
- Forum: Coding Questions
- Topic: [SOLVED] Drag'n'Drop and Admin mode
- Replies: 11
- Views: 405
Re: Drag'n'Drop and Admin mode
Hi
You can't D&D from lower UAC to higher UAC [ Security issue ]
Workaround :
1- Create a dummy application as user UAC
2- D&D to the dummy
3- Copy from the dummy then paste to the higher one
It's tricky and need some ghost effects to do it
You can't D&D from lower UAC to higher UAC [ Security issue ]
Workaround :
1- Create a dummy application as user UAC
2- D&D to the dummy
3- Copy from the dummy then paste to the higher one
It's tricky and need some ghost effects to do it
- Wed Mar 20, 2024 3:44 am
- Forum: Coding Questions
- Topic: [SOLVED] Drag'n'Drop and Admin mode
- Replies: 11
- Views: 405
Re: Drag'n'Drop and Admin mode
Hi How do you expect the string gadget to accept D&D if it's Read Only EnableExplicit Define.s XMLString XMLString="<?xml version='1.0' encoding='UTF-16'?>"+Chr(10)+ ;{ "<dialogs>"+Chr(10)+ " <window id='0' name='Window1' text='Test' xpos='0' ypos='0' width='auto' minwid...
- Mon Mar 18, 2024 4:33 am
- Forum: Coding Questions
- Topic: I need native image drawn on a ButtonGadget
- Replies: 11
- Views: 604
- Mon Mar 18, 2024 4:31 am
- Forum: Tricks 'n' Tips
- Topic: Color Button using API [Windows]
- Replies: 4
- Views: 591
Color Button using API [Windows]
1- Using Windows API 2- Usual Windows Button effects 3- Use Vector lib. to do what you want to do Suit yourself it's only a scratch for beginning Have fun Procedure colorBUTTON(gad,w,h,font.s,fsize,text.s,tcolor) LoadFont(0,font,fsize) CreateImage(gad,w-6,h-8,32,#PB_Image_Transparent) StartVectorDra...
- Sun Mar 17, 2024 6:48 am
- Forum: Coding Questions
- Topic: Programming a Timer
- Replies: 14
- Views: 591
Re: Programming a Timer
Better use of BindEvent() Exactly it's not perfect because if it stopped and started again the continuation of the timer cycle is messed up ;EnableExplicit #XCounterDefaultValue = 10 #LongTimerDefaultValue = 45 #ShortTimerDefaultValue = 15 Global LongTimerCounter,ShortTimerCounter,XCounter Procedure...