Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. C

    setting focus on EXE run

    Btw, what I suggest was also suggested by Mike Lewis here: https://www.tek-tips.com/threads/login-screen-question.1578281/ He's using a private variable to store the login status, your choice. But after Mike Lewis suggestion this prg should look like this: Public loginsuccessful...
  2. C

    setting focus on EXE run

    The focus of the first control was the problem, not the form minimizing. In post #4 it was solved by taborder, in post #8 it came back. No idea what he's doing. Without any code at hand hardly doable, isn't it? What you want, ravicoder, only needs two lines of code in the main startup.prg...
  3. C

    Need some help with "nicegui"

    Well, kudos for SoftwareRT's timer example, which surely is the main ingredient for that change for an automatically updating chart. I admit I'm actually not using nicegui, my professional work is much more database backend related and not even involving Python, but I like to use it for private...
  4. C

    Bar Code Printing in Micro Size on Label

    No. Your only solution seems to be a barcode font instead of creating barcode images. Well, that can be used in context with a label too, A label is just a specialized form of a report. But there's no need for a barcode font when you use the foxbarcode library. The LABEL FORM command mstrcmtr...
  5. C

    Bar Code Printing in Micro Size on Label

    You're still not getting the role of foxbarcode, it's not to create a label or report, just an image. That's used as the value for a picture/olebound control. And indeed, that can be in a label or a report, doesn't matter. foxbarcode is not fixated on labels. Labels just make printing label...
  6. C

    Bar Code Printing in Micro Size on Label

    Not at all, the FoxBarCode library creates an image based on the properties given, i.e. using Arial font within the image. For the report or label it only is an image, doesn't matter what's in it. The image size should just depend on the settings of the report picture/olebound control regarding...
  7. C

    setting focus on EXE run

    The read event hopefully is not in the form init or load, is it? You have to have the read events after the DO FORM call in the startup.prg
  8. C

    How to interactively change control source of a grid at runtime?

    You have to hope for someone else do make an online appointment. That just makes things easier, so you don't have the problem of changing a running grid - your question title literally suggests that's what you want. So you don't need to, fine, still SET PATH is wrong and CD is the lesson to...
  9. C

    Need some help with "nicegui"

    Notice this line: ui.button('Update', on_click=update) It means the button labeled Update will cause the function update to run, when clicked. So all you need to do to get some data instead of a random number is change the code of the update function, i.e. the lines after def update(). The...
  10. C

    setting focus on EXE run

    I don't know what you're solving with the wait window, but if you got everything going now, that seems to be fine. If you don't have a main.prg now to do the READ EVENTS after stariting the main top level form, you should consider that, though. Because anything else should not work and if it...
  11. C

    Cursor in Data Environment

    That's true. Though a) SitesMasstec explicitly asked for a cursor and b) in the DE. Of course nothing speaks against suggesting something better than what's asked for. He's free to pick up what he thinks works best for him.
  12. C

    Cursor in Data Environment

    2) Making a parameter a form property. Fine, how do you set the form property before even starting the form? Remember a view used in a DE will even be used/queried before the init of the form. So you have to use private variables. Not a foeign concept to legacy fox developers, not even against...
  13. C

    Cursor in Data Environment

    I'll even give you some arguments against my argumentation: 1. There are thousands of error messages about anything and that's no reason to not use VFP 2. You always start with something sometimes. And lurking problems may not ever become real. 3. It would make sense to have an overview of all...
  14. C

    Cursor in Data Environment

    Should I point out a list of problems you can have with views (and all solve with experience) that will each pose a problem to SitessMasstec simply based on how I know his forum history, alone? 1. Views first need a DBC. Already have one? Fine. Better use a separate for views, because views...
  15. C

    setting focus on EXE run

    You can't have controls without any taborder, I wonder how it was to not work, if taborder fixed it. Because even if the textbox has taborder 2 and a label before it has taborder 1 the focus will go to the textbox, as a label can't have focus. Tore hit the reason for your second problem, you...
  16. C

    Bar Code Printing in Micro Size on Label

    Steve, labels are in fact quite the same as reports, just with lbx file extension and by default a format that fits label sheets. with several columns and rows. The designer designs one label of a sheet only. Many use endless paper labels instead of sheets when it comes to mass label printing...
  17. C

    How to interactively change control source of a grid at runtime?

    ...to cursors or views or cursoradapters. A cursor can stay as is and just be populated with data from one or the other directory as you can always stick to it and let the grid stick to it, empty it with ZAP and refill it with INSERT INTO cursor SELECT * from other.dbf or with APPEND FROM other.dbf.
  18. C

    Cursor in Data Environment

    The data environment can contain: 1. Tables 2. Views 3. Cursoradapters So the direct answer is no. You can create a view that queries the data, you can create a cursoradapter that queries the data, but I doubt you'd want that, as it has much overhead and not just the query. Instead, just write...
  19. C

    setting focus on EXE run

    Usually you only set the taboder of the element you want to have focus first to 1 and that's it. Is the focus nowhere on the form? Then something is strange about the EXE as the primary form and it's primary control (with taborder 1) should be focused, also the main form of an EXE itself is...
  20. C

    How to interactively change control source of a grid at runtime?

    Regarding your general idea of having a directory per store. Well, it won't solve the question you have per title, changing directory the grid won't change to the same table name in that other directory, just because you changed directory. Next time you start a form that does USE some.dbf after...

Part and Inventory Search

Back
Top