Search found 13 matches

by kiwidave
Wed May 21, 2014 10:38 pm
Forum: Coding Questions
Topic: Programatically Resizing Windows
Replies: 2
Views: 847

Re: Programatically Resizing Windows

Awww, seriously! How on earth did I miss that? Thanks so much and my apologies for my documentation-blindness :)
by kiwidave
Wed May 21, 2014 10:18 pm
Forum: Coding Questions
Topic: Programatically Resizing Windows
Replies: 2
Views: 847

Programatically Resizing Windows

Hi all,

This one's got me stumped I'm afraid, and I suspect that there's a real simple answer to it but it's simply eluded me, so if anyone would be so kind as to point me in the right direction I would be so very grateful...

What I want to do is, when a user pushes a toggle button, the window ...
by kiwidave
Tue Apr 15, 2014 1:56 pm
Forum: Coding Questions
Topic: Writing Reports
Replies: 4
Views: 1103

Re: Writing Reports

Hi all,

Thank you very much for your suggestions, and especially srod for the fantastic additional support outside of this topic. My original problem was, as srod suggested, using the 32bit dll on PB64 bit. I deleted and reinstalled as PB32 and all worked ok.

David
by kiwidave
Sun Apr 13, 2014 9:11 am
Forum: Coding Questions
Topic: Writing Reports
Replies: 4
Views: 1103

Writing Reports

Hi all,

Firstly my apologies if this has been answered elsewhere, but I couldn't find much in my forum or online searches...

I am writing an application using SQLite as the database (although I could use a different one if needed), and need to create a moderately complex report from this data ...
by kiwidave
Fri Mar 14, 2014 7:20 am
Forum: Coding Questions
Topic: LostFocus event with Scrollbar gadget
Replies: 3
Views: 1233

Re: LostFocus event with Scrollbar gadget

I don't think it's a bug as clicking/moving the scrollbar doesn't (and shouldn't) change the currently focused gadget. If you go from an editor or string to a scrollbar the active gadget is still the same. Focus is not lost, hence no LostFocus event. Remember, a scrollbar is a kind of 'helper ...
by kiwidave
Fri Mar 14, 2014 5:42 am
Forum: Coding Questions
Topic: LostFocus event with Scrollbar gadget
Replies: 3
Views: 1233

LostFocus event with Scrollbar gadget

Hi,

I have come across behaviour which I would classify as a bug. In simple terms, if I have a string or editor gadget (there may be others, but these are two examples I am sure of) on a window with a scrollbar, if I move between the string and editor gadgets the LostFocus event on these is fired ...
by kiwidave
Fri Mar 14, 2014 5:34 am
Forum: Coding Questions
Topic: Event handling with scrollbar
Replies: 4
Views: 1552

Re: Event handling with scrollbar

Hello kiwidave. idle's suggestion to trap the #PB_EventType_Change event is quite preferable as the changes are tracked "real time". However, I can't seem to get a lost focus event by simply clicking on the ScrollBarGadget()

Thank you TI-994A, your example is exactly what I'm seeing - clicking ...
by kiwidave
Thu Mar 13, 2014 11:00 pm
Forum: Coding Questions
Topic: Event handling with scrollbar
Replies: 4
Views: 1552

Event handling with scrollbar

Hi all,

I've just come across something interesting with the scrollbar gadget. It's a very simple scenario, there is an edit box on my form and a scrollbar (other stuff as well of course, but these are the only two of relevance here). I have some code in the LostFocus event for the edit box that ...
by kiwidave
Sun Mar 09, 2014 12:04 pm
Forum: Coding Questions
Topic: Button events are mislinking...
Replies: 8
Views: 2628

Re: Button events are mislinking...

Thanks again for the suggestion, I'll do that.

I did some investigating (actually I thought I posted that but can't have submitted it, silly me), and when I put a "Debug EventWindow()" statement above the Select statement, it turns out that the window number being returned doesn't match the window ...
by kiwidave
Sun Mar 09, 2014 11:30 am
Forum: Coding Questions
Topic: Button events are mislinking...
Replies: 8
Views: 2628

Re: Button events are mislinking...

This is my event-handling code in the main startup routine:


Repeat
intEvent = WaitWindowEvent()
Select EventWindow()
Case winMain
winMain_Events(intEvent)
Case winEnv
winEnv_Events(intEvent)
Case winEnv_Location
winEnv_Location_Events(intEvent)
Case winEnv_Products
winEnv_Products ...
by kiwidave
Sun Mar 09, 2014 11:28 am
Forum: Coding Questions
Topic: Button events are mislinking...
Replies: 8
Views: 2628

Re: Button events are mislinking...

I've just done some more testing. It's not restricted to this button, it seems definitely to be a problem with handling of events. If I go in and out of one form, add some data, save etc...no problem. If I then simply open up another form, close it then go back to the original, all event handling ...
by kiwidave
Sun Mar 09, 2014 11:21 am
Forum: Coding Questions
Topic: Button events are mislinking...
Replies: 8
Views: 2628

Re: Button events are mislinking...

Thank you for that code, TI-994A. I'm using the form designer to put together the windows, so the code used is thus...

From the button to open the window:

OpenwinEnv_Clients()
SetGadgetText(txtTitle_Organisation1_3,fnAESDecode(fnAESEncode(stcOrganisation\strName)))
SetGadgetText(txtTitle ...
by kiwidave
Sun Mar 09, 2014 9:39 am
Forum: Coding Questions
Topic: Button events are mislinking...
Replies: 8
Views: 2628

Button events are mislinking...

Hi all, hoping someone here might have an idea what is going on. I have an application that consists of a number of windows. There is one 'main' window that has 8 image buttons on it, which when pressed open up another window for data entry. Each of these data entry windows has an Exit button on it ...