Finally I got it working!
The reason for the weird behavior was that the iImage-Index in the LVITEM structure didn't correspond to the index of the imagelist. After re-indexing ist worked!
Procedure ReIndex(ListIconGadgetID.i, hImageList.i)
n.i = ImageList_GetImageCount_(hImageList) ;number of ...
Search found 60 matches
- Wed Nov 16, 2016 5:13 pm
- Forum: Coding Questions
- Topic: ListIcon with big Images in report view
- Replies: 3
- Views: 2737
- Wed Nov 16, 2016 12:51 pm
- Forum: Coding Questions
- Topic: ListIcon with big Images in report view
- Replies: 3
- Views: 2737
Re: ListIcon with big Images in report view
Thanks Paul,
but this doesn't really solve the problem. If you have a closer look and change the ImageIDs to different values in both AddGadgetItem and the new ImageList, you will see they obviously interfere with each other...a very strange behaviour. It seems that the old ImageList is not fully ...
but this doesn't really solve the problem. If you have a closer look and change the ImageIDs to different values in both AddGadgetItem and the new ImageList, you will see they obviously interfere with each other...a very strange behaviour. It seems that the old ImageList is not fully ...
- Tue Nov 15, 2016 2:35 pm
- Forum: Coding Questions
- Topic: ListIcon with big Images in report view
- Replies: 3
- Views: 2737
ListIcon with big Images in report view
Hi!
I've been trying for hours to get a ListIcon In report view) with big images working - without success. I don't know why, but I get totally different Images in the ListIcon than expected. -What's wrong with this code?
;Icon size
iconW.i = 200
iconH.i = 200
;Create some images
zeroImg ...
I've been trying for hours to get a ListIcon In report view) with big images working - without success. I don't know why, but I get totally different Images in the ListIcon than expected. -What's wrong with this code?
;Icon size
iconW.i = 200
iconH.i = 200
;Create some images
zeroImg ...
- Fri May 20, 2016 8:35 am
- Forum: Coding Questions
- Topic: Print rtf formatted text from editorgadget?
- Replies: 38
- Views: 10676
- Thu Dec 05, 2013 5:25 pm
- Forum: Tricks 'n' Tips
- Topic: QuickPDF Library
- Replies: 6
- Views: 4503
Re: QuickPDF Library
Here is a PureBasic-Include update (for DebenuPDFLibrary v9.16 x86).
-> Please note that the function names and the name of the library have changed.
-> Please follow the directions in the Include file 'DebenuPDFLibrary0916.pbi'.
-> Now many functions are available as ANSI and UNICODE versions ...
-> Please note that the function names and the name of the library have changed.
-> Please follow the directions in the Include file 'DebenuPDFLibrary0916.pbi'.
-> Now many functions are available as ANSI and UNICODE versions ...
- Tue Aug 27, 2013 12:54 pm
- Forum: Tricks 'n' Tips
- Topic: QuickPDF Library
- Replies: 6
- Views: 4503
Re: QuickPDF Library
Here is a PureBasic-Include update (for DebenuPDFLibrary v9.11 x86).
-> Please note that the function names and the name of the library have changed.
-> Now many functions are available as ANSI and UNICODE versions. Compile your project in UNICODE mode to make use of the UNICODE versions.
The ...
-> Please note that the function names and the name of the library have changed.
-> Now many functions are available as ANSI and UNICODE versions. Compile your project in UNICODE mode to make use of the UNICODE versions.
The ...
- Fri Aug 02, 2013 2:29 pm
- Forum: Tricks 'n' Tips
- Topic: using dialog resources in PB
- Replies: 7
- Views: 6766
Re: using dialog resources in PB
I adapted TS-Soft's example and put it here just for reference...
Some remarks:
(1) The dialog was composed with 'ResEdt' (you can get it here: http://www.oby.ro/rad_asm/projects/ResEd.zip)
(2) As 'porc.exe' (distributed with PureBasic) doesn't compile the resource script (because of lacking header ...
Some remarks:
(1) The dialog was composed with 'ResEdt' (you can get it here: http://www.oby.ro/rad_asm/projects/ResEd.zip)
(2) As 'porc.exe' (distributed with PureBasic) doesn't compile the resource script (because of lacking header ...
- Tue Feb 12, 2013 9:01 pm
- Forum: Coding Questions
- Topic: Redirect console debugger output
- Replies: 2
- Views: 980
Re: Redirect console debugger output
I found a solution. I'm using RunProgram() to redirect the output into a logfile.
;Compile as "debuglogger.exe"
#LOGFILE = 0
progparamcnt.i = CountProgramParameters()
If progparamcnt = 2
progpath.s = ProgramParameter()
logpath.s = ProgramParameter()
If FileSize(progpath) > -1 And LCase ...
;Compile as "debuglogger.exe"
#LOGFILE = 0
progparamcnt.i = CountProgramParameters()
If progparamcnt = 2
progpath.s = ProgramParameter()
logpath.s = ProgramParameter()
If FileSize(progpath) > -1 And LCase ...
- Tue Feb 12, 2013 4:49 pm
- Forum: Coding Questions
- Topic: Redirect console debugger output
- Replies: 2
- Views: 980
Redirect console debugger output
Hi,
I have been crawling for hours through the PB board, but I haven't found a solution yet...
Is there a way to automatically redirect the console debugger output to a file on executable startup (without having to type in the "redirect" command) ?
The reason why I'm asking is: I have to track a ...
I have been crawling for hours through the PB board, but I haven't found a solution yet...
Is there a way to automatically redirect the console debugger output to a file on executable startup (without having to type in the "redirect" command) ?
The reason why I'm asking is: I have to track a ...
- Tue May 22, 2012 10:04 pm
- Forum: Coding Questions
- Topic: Returning a structure as procedure parameter
- Replies: 3
- Views: 1187
Re: Returning a structure as procedure parameter
Thanks netmaestro, this works well!
But now I try to change xrate.STRING after the procedure has returned...and again I get an IMA...
Import "xrate.lib"
Test.i(*Rate.STRING)
EndImport
Procedure Testit()
Static xrate.STRING
Test(@xrate)
xrate\s = "Changed"
Debug xrate\s
EndProcedure ...
But now I try to change xrate.STRING after the procedure has returned...and again I get an IMA...
Import "xrate.lib"
Test.i(*Rate.STRING)
EndImport
Procedure Testit()
Static xrate.STRING
Test(@xrate)
xrate\s = "Changed"
Debug xrate\s
EndProcedure ...
- Tue May 22, 2012 8:31 pm
- Forum: Coding Questions
- Topic: Returning a structure as procedure parameter
- Replies: 3
- Views: 1187
Returning a structure as procedure parameter
Hi,
When I pass a pointer to a structure as procedure parameter I get an IMA.
I've been playing around for hours with the following code, but I can't figure out what's the problem...I'm stumped...
Dll Code:
ProcedureDLL.i Test(*Rate.STRING)
Protected retval.i
*Rate\s = "Hello"
ProcedureReturn ...
When I pass a pointer to a structure as procedure parameter I get an IMA.
I've been playing around for hours with the following code, but I can't figure out what's the problem...I'm stumped...
Dll Code:
ProcedureDLL.i Test(*Rate.STRING)
Protected retval.i
*Rate\s = "Hello"
ProcedureReturn ...
- Sat May 12, 2012 5:17 pm
- Forum: Coding Questions
- Topic: Window that behaves like a popup menu
- Replies: 4
- Views: 1340
Re: Window that behaves like a popup menu
Thanks again, Rashad
I haven't seen the wood for the trees...
@Nituvious:
Thanks for your suggestion, but I really want to close the window...
I haven't seen the wood for the trees...
@Nituvious:
Thanks for your suggestion, but I really want to close the window...
- Sat May 12, 2012 4:17 pm
- Forum: Coding Questions
- Topic: Window that behaves like a popup menu
- Replies: 4
- Views: 1340
Window that behaves like a popup menu
Hi,
I need a window, that more or less behaves like a popup menu. That means a click somewhere outside of the window (i.e. the window loses its focus) will close the window.
I know that sounds easy to do, but I'm not able to get my testcode running without an IMA (when I try to open the window again ...
I need a window, that more or less behaves like a popup menu. That means a click somewhere outside of the window (i.e. the window loses its focus) will close the window.
I know that sounds easy to do, but I'm not able to get my testcode running without an IMA (when I try to open the window again ...
- Thu May 10, 2012 3:01 pm
- Forum: Announcement
- Topic: Arctic reports (reporting system - Windows)
- Replies: 201
- Views: 125987
Re: Arctic reports (reporting system - Windows)
Hi srod!
Just a brief question: Is it possible to specify a certain printer tray without using the Printer-Dialog? Or do you know a workaround?
Thanks,
javabean
Just a brief question: Is it possible to specify a certain printer tray without using the Printer-Dialog? Or do you know a workaround?
Thanks,
javabean
- Thu May 10, 2012 2:43 pm
- Forum: Coding Questions
- Topic: Transparent Toolbar
- Replies: 2
- Views: 1018
Transparent Toolbar
I can to put a toolbar into a container gadget. But then the toolbar loses it's transparency.
Any ideas how I could restore toolbar transparency?
Demonstration code:
Procedure StopToolbarAutoAlign(Toolbar)
T = ToolBarID(Toolbar)
SetWindowLongPtr_(T, #GWL_STYLE, GetWindowLong_(T, #GWL_STYLE ...
Any ideas how I could restore toolbar transparency?
Demonstration code:
Procedure StopToolbarAutoAlign(Toolbar)
T = ToolBarID(Toolbar)
SetWindowLongPtr_(T, #GWL_STYLE, GetWindowLong_(T, #GWL_STYLE ...