Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommandButton.PictureCaptionArrangement missing from export #565

Open
HughWarrington opened this issue Nov 23, 2024 · 6 comments
Open

CommandButton.PictureCaptionArrangement missing from export #565

HughWarrington opened this issue Nov 23, 2024 · 6 comments
Labels
need more details Further information needed to understand issue

Comments

@HughWarrington
Copy link
Contributor

HughWarrington commented Nov 23, 2024

I think the title says it all really.

I have a CommandButton with PictureCaptionArrangement set to Right.

image

On export, this property is missing from the form's .bas file. Then when I rebuild, the CommandButton doesn't get that property set and has just the default.

As a stab in the dark I tried adding the line manually to the .bas file:

image

But the import fails with an error here:

image

Microsoft Access encountered an error while importing the object 'Subjects'.

Error encountered at line 565.
This property does not apply to this control.
@hecon5
Copy link
Contributor

hecon5 commented Nov 25, 2024

This is similar to #170, which turned out to be an Access version issue. I'm not sure if it's identical, but it looks quite similar.

@joyfullservice
Copy link
Owner

Just for reference, I can do a full round-trip export/build with different caption alignments...

image

You might try creating a test database to see if you can pinpoint the issue... You could also copy and paste the button to see if it will generate the missing properties... I have seen a few cases where certain properties were missing from controls that were created in earlier versions of Access. (That's what inspired the "Repair Colors" tool in Advanced Tools.)

@HughWarrington
Copy link
Contributor Author

@joyfullservice thanks for looking into this. Can I clarify, in your test after you ran an export, did your source file contain the PictureCaptionArrangement line?

@joyfullservice
Copy link
Owner

Yes, it does.

image

Attached is the complete file. (Added a .txt extension to attach it directly, since .bas is not supported by GitHub.) If you want, you could try importing this into a project. (Just drop the file into the source folder, remove the extra extension, and build from source.)

Form1.bas.txt

@hecon5
Copy link
Contributor

hecon5 commented Dec 19, 2024

Is this still broken for you or did you find more information out @HughWarrington ?

@HughWarrington
Copy link
Contributor Author

Thanks for the feedback guys. I've been waylaid with other aspects of the project I'm working on but will get back to the coding side early next year. This ticket will be on my list to investigate. Happy holidays :)

@joyfullservice joyfullservice added the need more details Further information needed to understand issue label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more details Further information needed to understand issue
Projects
None yet
Development

No branches or pull requests

3 participants