I ran into the same issue on Linux, but your solution wasn't fine.
the solution I found (and works on Windows), every time you want to update the ButtonImageGadget, you create and free the image:
EnableExplicit
Enumeration gadgets
#opt_style1
#opt_style2
#btn_color
#hImg
EndEnumeration ...
Search found 29 matches
- Mon Sep 09, 2024 7:13 pm
- Forum: Coding Questions
- Topic: How to Refresh Image on ButtonImageGadget
- Replies: 4
- Views: 951
- Sat May 18, 2024 3:51 pm
- Forum: Bugs - Linux
- Topic: PackEntryName() with #PB_PackerPlugin_Lzma plugin
- Replies: 0
- Views: 4342
PackEntryName() with #PB_PackerPlugin_Lzma plugin
There is an issue with PackEntryName() function.
When I choose #PB_PackerPlugin_Lzma plugin, the entry name return an none ascii char ! ;
UseZipPacker()
UseLZMAPacker()
UseBriefLZPacker()
UseZipPacker()
UseTARPacker()
; Create the packed file
Dim Plugin.s(4)
Plugin(#PB_PackerPlugin_BriefLZ ...
When I choose #PB_PackerPlugin_Lzma plugin, the entry name return an none ascii char ! ;
UseZipPacker()
UseLZMAPacker()
UseBriefLZPacker()
UseZipPacker()
UseTARPacker()
; Create the packed file
Dim Plugin.s(4)
Plugin(#PB_PackerPlugin_BriefLZ ...
- Thu Sep 19, 2019 7:00 pm
- Forum: Linux
- Topic: Installation in Debian Buster
- Replies: 8
- Views: 5445
Re: Installation in Debian Buster
for debian 10 buster, i made :
sudo apt-get install build-essential gcc g++
sudo apt-get install libxxf86vm-dev libxine2-dev unixodbc-dev libsdl1.2-dev libsdl2-dev
sudo apt-get install qtbase5-dev qttools5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5svg5-dev libqt5webkit5-dev libqt5multimedia5 ...
sudo apt-get install build-essential gcc g++
sudo apt-get install libxxf86vm-dev libxine2-dev unixodbc-dev libsdl1.2-dev libsdl2-dev
sudo apt-get install qtbase5-dev qttools5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5svg5-dev libqt5webkit5-dev libqt5multimedia5 ...
- Fri Mar 17, 2017 8:23 pm
- Forum: Coding Questions
- Topic: MacroExpandedCount question
- Replies: 3
- Views: 1617
Re: MacroExpandedCount question
Thanks for answers.
I forgot it on every macro's use.
I have replaced macro by a procedure with static var.
I forgot it on every macro's use.
I have replaced macro by a procedure with static var.
- Fri Mar 17, 2017 5:54 pm
- Forum: Coding Questions
- Topic: MacroExpandedCount question
- Replies: 3
- Views: 1617
MacroExpandedCount question
Hello,
I've got problem with MacroExpandedCount function
Macro _hGadget
MacroExpandedCount
EndMacro
;Example 1
Debug "Example1"
Global z1 = _hGadget
Global z2 = _hGadget
Global z3 = _hGadget
Global z4 = _hGadget
Debug z1
Debug z2
Debug z3
Debug z4
;Example 2
Debug "Example2"
Global Dim az.l(4 ...
I've got problem with MacroExpandedCount function
Macro _hGadget
MacroExpandedCount
EndMacro
;Example 1
Debug "Example1"
Global z1 = _hGadget
Global z2 = _hGadget
Global z3 = _hGadget
Global z4 = _hGadget
Debug z1
Debug z2
Debug z3
Debug z4
;Example 2
Debug "Example2"
Global Dim az.l(4 ...
- Sat Dec 13, 2014 3:21 pm
- Forum: Feature Requests and Wishlists
- Topic: Date Extended
- Replies: 17
- Views: 14510
- Thu Oct 23, 2014 12:52 pm
- Forum: Coding Questions
- Topic: BindEvent()
- Replies: 11
- Views: 4509
Re: BindEvent()
Thank you all for your support.
- Wed Oct 22, 2014 6:40 pm
- Forum: Coding Questions
- Topic: BindEvent()
- Replies: 11
- Views: 4509
Re: BindEvent()
I post what i want to do
Structure tagGADGETAMOI
hTypeID.i
hWindow.i
hGadget.i
EndStructure
Procedure __GadgetAMoi_Resize()
Protected *pGadget.tagGADGETAMOI
If IsGadget(EventGadget())
*pGadget.tagGADGETAMOI = GetGadgetData(EventGadget())
If *pGadget
ResizeGadget(*pGadget\hGadget, -1 ...
Structure tagGADGETAMOI
hTypeID.i
hWindow.i
hGadget.i
EndStructure
Procedure __GadgetAMoi_Resize()
Protected *pGadget.tagGADGETAMOI
If IsGadget(EventGadget())
*pGadget.tagGADGETAMOI = GetGadgetData(EventGadget())
If *pGadget
ResizeGadget(*pGadget\hGadget, -1 ...
- Wed Oct 22, 2014 1:21 pm
- Forum: Coding Questions
- Topic: Project S Curves
- Replies: 1
- Views: 1677
Re: Project S Curves
With GDI+ (windows only), sample by danilo :
EnableExplicit
;>----- START INCLUDE ---------------------------------------
;
;-[ antialiased PB compatible drawing functions using GDI+ ]-
;
; by Danilo, July 2011
;
Prototype DebugEventProc(level, *message.Ascii)
Prototype NotificationHookProc ...
EnableExplicit
;>----- START INCLUDE ---------------------------------------
;
;-[ antialiased PB compatible drawing functions using GDI+ ]-
;
; by Danilo, July 2011
;
Prototype DebugEventProc(level, *message.Ascii)
Prototype NotificationHookProc ...
- Wed Oct 22, 2014 12:58 pm
- Forum: Coding Questions
- Topic: BindEvent()
- Replies: 11
- Views: 4509
Re: BindEvent()
es_91,
if you test your code without bindevent, It's work too.
Procedure WindowSizer ()
Debug "WindowSizer"
Debug EventGadget()
Shared Window, Web
ResizeGadget (Web, 20, 20, WindowWidth (Window) - 40, WindowHeight (Window) - 40)
EndProcedure
Window = OpenWindow (#PB_Any, 100, 100, 700, 200 ...
if you test your code without bindevent, It's work too.
Procedure WindowSizer ()
Debug "WindowSizer"
Debug EventGadget()
Shared Window, Web
ResizeGadget (Web, 20, 20, WindowWidth (Window) - 40, WindowHeight (Window) - 40)
EndProcedure
Window = OpenWindow (#PB_Any, 100, 100, 700, 200 ...
- Wed Oct 22, 2014 9:38 am
- Forum: Coding Questions
- Topic: BindEvent()
- Replies: 11
- Views: 4509
Re: BindEvent()
it's help, but it's not working!
after resizing the window, webgadget is not resizing.
after resizing the window, webgadget is not resizing.
- Wed Oct 22, 2014 7:33 am
- Forum: Coding Questions
- Topic: BindEvent()
- Replies: 11
- Views: 4509
Re: BindEvent()
Thanks for your responses.
I understood Object/#Gadget or #Menu...
Have you a short sample with Object Or And EventType, who work fine?
I understood Object/#Gadget or #Menu...
Have you a short sample with Object Or And EventType, who work fine?
- Tue Oct 21, 2014 7:46 am
- Forum: Coding Questions
- Topic: BindEvent()
- Replies: 11
- Views: 4509
BindEvent()
I don't understand the bindevent command with all arguments.
BindEvent(Event, @Callback() [, Window [, Object [, EventType]]])
Is it possible to have samples with Object and EventType?
BindEvent(Event, @Callback() [, Window [, Object [, EventType]]])
Is it possible to have samples with Object and EventType?
- Wed Sep 03, 2014 6:31 am
- Forum: Feature Requests and Wishlists
- Topic: My wishlist
- Replies: 1
- Views: 1458
My wishlist
FontFamily [/u]
ExamineFontFamily()
NextFontFamily()
FontFamilyName()
Device [/u]
ExamineDevice()
NextDevice()
DeviceFreeSpace()
DeviceTotalSpace()
DeviceDescription()
DeviceName() ;ext1,... D:,C:
Packer [/u]
PackEntryDate() ;Same options as DirectoryEntryDate() or GetFileDate()
CanvasGadget ...
ExamineFontFamily()
NextFontFamily()
FontFamilyName()
Device [/u]
ExamineDevice()
NextDevice()
DeviceFreeSpace()
DeviceTotalSpace()
DeviceDescription()
DeviceName() ;ext1,... D:,C:
Packer [/u]
PackEntryDate() ;Same options as DirectoryEntryDate() or GetFileDate()
CanvasGadget ...
- Thu Aug 14, 2014 1:58 pm
- Forum: Coding Questions
- Topic: AWPB-Tools
- Replies: 1
- Views: 1000
Re: AWPB-Tools
hi,
http://www.purebasic.fr/english/viewtopic.php?f=12&t=51959
HeX0R created a lib similar to AWPB. For deleting an email via pop3 :
Procedure.i __POP3_DeleteMail(*THIS._POP3_MAIN_STRUCTURE_, Index.i)
Protected Result, a$
;Mails will not get deleted immediately!
;They will be deleted ...
http://www.purebasic.fr/english/viewtopic.php?f=12&t=51959
HeX0R created a lib similar to AWPB. For deleting an email via pop3 :
Procedure.i __POP3_DeleteMail(*THIS._POP3_MAIN_STRUCTURE_, Index.i)
Protected Result, a$
;Mails will not get deleted immediately!
;They will be deleted ...