Search found 102 matches

by Fenix
Sat Mar 22, 2014 6:03 pm
Forum: Coding Questions
Topic: SplitterGadget: Odd behaviour when resizing
Replies: 5
Views: 1533

Re: SplitterGadget: Odd behaviour when resizing

Found some very old post (http://www.purebasic.fr/english/viewtopic.php?f=13&t=9286&hilit=resize+splittergadget).
When I just resize the splitter gadget that holds the second splitter, all works fine. That's really odd :shock:

Is there any chance to size the gadgets within a splitter? I really ...
by Fenix
Sat Mar 22, 2014 5:44 pm
Forum: Coding Questions
Topic: SplitterGadget: Odd behaviour when resizing
Replies: 5
Views: 1533

SplitterGadget: Odd behaviour when resizing

Hi @ all,

I was looking for a possibility to have three gadgets combined by two splitter (http://www.purebasic.fr/english/viewtopic.php?f=13&t=58809). Thanks to skywalk, I found the solution.

When I resize the window (I check for WM_EXITSIZEMOVE ) they get drawn just fine. When I MOVE the window ...
by Fenix
Fri Mar 21, 2014 6:37 pm
Forum: Coding Questions
Topic: SplitterGadget()
Replies: 3
Views: 1474

Re: SplitterGadget()

skywalk wrote:Link the 1st splitter gadget # in your 2nd splitter and play around with your
Never thought of using a splitter gadget insider another spliter :idea:
It work's exactly how I wanted it :D

Thanx skywalk!!
by Fenix
Fri Mar 21, 2014 6:11 pm
Forum: Coding Questions
Topic: SplitterGadget()
Replies: 3
Views: 1474

SplitterGadget()

Hi @ all,

I want to use three gadgets combined by two splitter gadgets (one gadget is used in both splitters). But this has some ugly effects, in other words: it doesn't work :(


OpenWindow(0, 10, 10, 510, 300, "SPLITTER", #PB_Window_ScreenCentered | #PB_Window_WindowCentered | #PB_Window ...
by Fenix
Wed Mar 12, 2014 3:40 pm
Forum: Coding Questions
Topic: [Windows] Listview background image
Replies: 6
Views: 1496

Re: [Windows] Listview background image

@ts-soft: YES!! :mrgreen: That's it. Thank you!

[And I had the right suspicion, it's been the structure (well, the datatypes on 32/64 bit)]

Greetz,
Fenix
by Fenix
Wed Mar 12, 2014 1:53 pm
Forum: Coding Questions
Topic: [Windows] Listview background image
Replies: 6
Views: 1496

Re: [Windows] Listview background image

Sorry Fenix :mrgreen:
I noticed it later
Try the next code and make sure that your image is loadable first
and tell us the result
Tested with 5.20 x86 win 8.1 x64 with another image


I did, but still it's a no show :? (I tried with two different pictures and also tried two jpeg [then of course ...
by Fenix
Wed Mar 12, 2014 1:01 pm
Forum: Coding Questions
Topic: [Windows] Listview background image
Replies: 6
Views: 1496

Re: [Windows] Listview background image

RASHAD wrote:Add

Code: Select all

UsePNGImageDecoder()
Hi RASHAD,

I do (right before i catch the image) :wink:

Greetz,
Fenix
by Fenix
Wed Mar 12, 2014 12:32 pm
Forum: Coding Questions
Topic: [Windows] Listview background image
Replies: 6
Views: 1496

[Windows] Listview background image

Hi @all,

I'm trying to set a background image to a listview (PB: listicon). But it won't work :evil:
I'm pretty sure I got the LVBKIMAGE structure right, I also implemented the CoInitialize_() but still the picture's a no show.

Structure LVBKIMAGE
ulFlags.l ; ULONG
hbm.l ; HBITMAP
pszImage.l ...
by Fenix
Thu Feb 20, 2014 3:18 pm
Forum: Coding Questions
Topic: Dialog commands: Use existing window
Replies: 0
Views: 757

Dialog commands: Use existing window

Hi,

as the OpenXMLDialog command provides a "ParentWindow", I wonder if it's possible to use the dialog commands with an EXISTING window (instead of opening a new one)?

If not, will this feature be available in the future?

Thanx,
Fenix
by Fenix
Fri Jan 31, 2014 10:36 am
Forum: Coding Questions
Topic: Windows - Listview changing footer
Replies: 0
Views: 562

Windows - Listview changing footer

Hi,

I'm stuck with changing existing footers of a group. The initial setting works fine, but changing doesn't.

FillMemory(@_lvGroup, SizeOf(LVGROUP1)) ; clear the structure
iNumberOfEntries = ListSize(LVGrouplist()) - 1
_lvGroup\mask = #LVGF_FOOTER
For iCounter = 0 To iNumberOfEntries
sItem ...
by Fenix
Wed Jan 29, 2014 3:00 pm
Forum: Coding Questions
Topic: Listview (listicon) with groups freezes
Replies: 12
Views: 1961

Re: Listview (listicon) with groups freezes

srod wrote:Well, the problem fields are the two string fields which need to be 8-byte aligned as all other fields are defined to be 32-bit, even on x64.
Okay, than I know where to look at, if I encouter a bug and strings in a structure are involved.
Learning by doing :)
by Fenix
Wed Jan 29, 2014 2:44 pm
Forum: Coding Questions
Topic: Listview (listicon) with groups freezes
Replies: 12
Views: 1961

Re: Listview (listicon) with groups freezes

Works fine here too. Thanks again, srod! :D

As far as I understand the Align token, it means, that each element of the structure get's aligned to the C standard? But in the PB defined structure are paddings as well. Why don't they work?
Is it possible, that other PB defined structures (at least ...
by Fenix
Wed Jan 29, 2014 2:15 pm
Forum: Coding Questions
Topic: Listview (listicon) with groups freezes
Replies: 12
Views: 1961

Re: Listview (listicon) with groups freezes

Seems to be a structure / structure alignments problem...
Hm... odd. I'm using the structure delivered by PB. There's an alignment padding in it.

What'S curios, ist, that I found a working example (http://www.purebasic.fr/english/viewtopic.php?f=13&t=54153&hilit=listicon+group) that compiles fine ...
by Fenix
Wed Jan 29, 2014 1:47 pm
Forum: Coding Questions
Topic: Listview (listicon) with groups freezes
Replies: 12
Views: 1961

Re: Listview (listicon) with groups freezes

Works fine here (am using PB x86 mind).

Wouldn't bother with a bug report since you are using API here, i.e. groups are not a supported feature of PB listicons. :) Okay, I trashed the post :)

I compiled the code with and without unicode, but it's still a no show. Although I checked the items ...
by Fenix
Wed Jan 29, 2014 1:26 pm
Forum: Coding Questions
Topic: Listview (listicon) with groups freezes
Replies: 12
Views: 1961

Re: Listview (listicon) with groups freezes

Thanks srod :D

Seems to be a bug with ListView groups and gridlines. Remove the grid lines and it all seems to work here. PB custom draws the grid lines and so there is probably a problem with PB's message handling here. If you confirm this then post a bug report.
Same here too: With gridlines ...