blocking actions when window opens
Posted: Sun Jan 13, 2008 6:30 pm
I'm relatively new to PB and am very much a novice with Linux. I am writing a cross-platform application that will interface with an embedded device that, in turn, interfaces with some 50-75 devices via RS232, RS485, wireless, I/O pins, etc. Currently it is about 5000 lines and has 16 windows, each with it's own event handling procedure. I've been writing it under Windows, where I'm much more experienced having used VB for years. I have used API calls only where there was no alternative. Yesterday, I tried my code under Linux and was very impressed that it only required about 15 minutes of editing to get it to run. My compliments to the chefs.
I'll be 66 in a few days and have 3 serious health problems for which I take about 30 pills daily - lifting them to my mouth is my only exercise. Some of the meds affect short term memory and mental acuity so RTFM is not very useful advice - I eat dessert first these days.
One window tracks the device configuration. It has about 50 OptionGadgets, CheckboxGadgets, SpinGadgets, etc. When this window opens, the current gadget states are taken from a preference file. When changes are made, flags are set to prompt the user to download the changes to the device and update the preference file when the window is closed. I do not want the initial changes that occur when the window opens to set these flags. Under Windows, this is not a problem as the associated window events procedure doesn't appear to be activated until after the window open procedure completes. This is not the case under Linux - the initial changes do set the flags.
How can I interlock this so the flags are only set when the user makes changes by manually clicking the gadgets?
I'll be 66 in a few days and have 3 serious health problems for which I take about 30 pills daily - lifting them to my mouth is my only exercise. Some of the meds affect short term memory and mental acuity so RTFM is not very useful advice - I eat dessert first these days.
One window tracks the device configuration. It has about 50 OptionGadgets, CheckboxGadgets, SpinGadgets, etc. When this window opens, the current gadget states are taken from a preference file. When changes are made, flags are set to prompt the user to download the changes to the device and update the preference file when the window is closed. I do not want the initial changes that occur when the window opens to set these flags. Under Windows, this is not a problem as the associated window events procedure doesn't appear to be activated until after the window open procedure completes. This is not the case under Linux - the initial changes do set the flags.
How can I interlock this so the flags are only set when the user makes changes by manually clicking the gadgets?